can a column of 'link' (classic) report trigger a dynamic action?

In order to avoid a complete package and following flicker,

can the link associated with a column of the classic report

somehow trigger a dynamic action?

Something along the lines of

  1. run few PL/SQL (some parameter passing along)
  2. refresh a page region to reflect the changes brought about by the (1)

In practice, I have a page that emerges already, master/detail

with the need to manage another set of detail records.

I can collect a bunch of fields that are not related to the db.

and generate an insert + update via a button 'Add '.

Then the report containing the details is updated

provide visual feedback that a new record has been added

Indeed, with a column 'delete '. The integrated link is

currently a javascript that saves the underlying m and

Removes the secondary details, but it involves a shipment

and refresh the entire page. It can be avoided?

(running apex 4.2.1)

You can use the onchage event to create your dynamic action. Make sure that there is a hidden page element (value not protected). From your link to classic report column, set the value of the page element hidden by using the JavaScript API $s () that will trigger the dynamic action of the onchange event.

javascript:$s('P1_HIDDEN_PKEY_ID',#ROW_PKEY#);

Thank you!

JMcG

Tags: Database

Similar Questions

  • How to trigger a dynamic action of the dynamic list entry?

    Hi experts,

    I use the apex of oracle database 12 c 4.2

    I'm creating an application on jquery mobile theme 50 I need to create a script as I've shown in photo

    post.PNG

    select it user a floor and the ground must be highlighted and region tables should be updated and the corresponding

    floors tables must appear only without submitting the page

    I tried something else, but can not make it work

    I created the floor using dynamic lists how do I trigger the dynamic action to update the region of the table in the list of the selected floor

    question any help will be appreciated thanks in advance.

    Hello

    something to inspire:

    Dynamic JavaScript action

    http://www.eberapp.com/pls/Apex/f?p=blog:read:0:article:1695400346724960

    concerning

    J

  • How to create dynamic action of the link column in the classic report

    I have an apex page to display a modal window using jquery. In the modal window, I have a classic report with a column of link I want to capture its click event.
    I thought I could create a dynamic action with selection of type = jquery selector. Not sure if I need to do anything on the link column and do not know the syntax
    jquery selector. Would appreciate help or direction?

    Always zip code using .

    ...\
    

    tags as described in the FAQ.

    I created a region of report with the following query:

    Select empno, ename, 'SELECT' from emp
    where (ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%'
    or :P2_SEARCHPU is null)
    

    There is no alias specified for the "SELECT" column, Oracle uses so the content of the column as a default alias. It comes

    'SELECT'
    

    Instead of

    SELECT
    

    The necessary jQuery selector would be:

    td[headers="\'SELECT\'"] a
    

    However the need to release the single quote everywhere is a ticking time bug. SELECT an Oracle reserved word means use it as any type of identifier is either too smart.

    You should always use a valid Oracle identifier as an alias explicit when a column contains a literal value or a complex expression:

    select
        empno
      , ename
      , 'SELECT' link_text
    from
        emp
    where
        (  ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%'
         or :P2_SEARCHPU is null)
    

    APEX will use the column alias LINK_TEXT as the ID attribute of the column header and the cells in the column will reference it in their headersattributes. The jQuery selector is:

    td[headers="LINK_TEXT"] a
    
  • Sort a hyperlink column in the classic report

    4.2.1

    THM2:

    Hi I have a classic report with a hyperlink column. And I need enable sorting on this. What I did is

    Select '< a href = "somelink" >' | party_name | "< /a > ' party_name party_name table.

    However, I just need to show the hyperlink column in the report. Couple of questions

    1. How can I create party_name-based sorting logic using the updated classic sorting standard? Given that all a hyperlink names begin with < - sorting is random. I added the second party_name column an active by default sort on it, but given that the column can not be shown, is not a good way.

    2. I was wondering if there is another way to sort this classic report hyperlink column as shown in the hyperlink and sorting is enabled on the report?

    Thank you!

    ryansun wrote:

    Hi Fac586 - Yes, the requirements are not of the same report. We have several pages with the same type of aspect, however, some of them have a different feature. In this case, Yes, I too simplified it so that easier to understand. I use the hyperlinks on query sql rather that the link of the column is because we have about 5 unions in this query from different sources and each of those interviewing him, having a hypertext link and additional formatting like "BOLD", color etc, under certain conditions. Query1 will return only the party_name, the second query United would have hypertext links, the third would fat etc. The union of the request is not made to take into account this feature, but because of the nature of the data.  While the apex feature works very well, the only question I hit is the hyperlink column sorting in a classic report. Where the simplified question. Individual responses, I've had have been very useful and have been applied successfully.

    In this case, the request for a classic report that has column link, how to sort would work it would be on a regular character column.

    Option 1 (deeply inelegant): Generate an HTML comment containing the sort at the beginning of the column value. The value must be sortable using the character comparison semantics, so dates must follow the format YYYYMMDD, numbers padded to the same length with zeros etc: Re: problem with the Date command

    Option 2A: Expand the Expression HTML technique described in your previous thread (marking dynamically of columns in a "BOLD" for the highest value report) to include the tags.

    Option 2b: Use the HTML Expression technique described in the previous thread to include custom data attributes and use these to add links to dynamic actions.

    If this is done on several pages, and then create a view all the necessary logic and the columns which you can keep it in one place.

  • onMouseOver displays the ToolTip of hidden column of the classic report

    What: The goal:
    Access more information that fits on a single line of the screen without using multiple fixed lines.

    Background:
    Classic report with 18 data elements (columns) visible. At the search box, and the user can choose the number of rows displayed.
    Some data elements can be long (20 to 30 characters) compared to the width of the screen. The element more right data risk of 100 characters.

    Proposed strategy:
    (1) display the n first characters of the item (s) long in the report.
    (2) display the entire item onMouseOver.

    Proposed approach:
    (1) for each column with the data of type long, contain the integer value in a hidden item.
    (2) value of (hidden) long display in tooltips (bubble? / ball?) on this value onMouseOver.

    Note: It is not framed to help/Help for a column but the display of the value of long type for a particular element in the line of a column.

    Search feature:
    (1) to reduce maintenance, wants to set up for several columns using a single common block of code.

    Question:
    In view of the other approaches, you know, it's a good approach to achieve the goal? Alternative approaches?

    Howard

    Well it took some time, and you really made me work for it. :)

    For flight hover end result on the job column Ln Nm.
    http://Apex.Oracle.com/pls/Apex/f?p=991202:1

    I added some old code, I had laying around. It adds a bubble that will stay for 5 seconds or until you click Next or move to another record.

    What I would do at this point, it is simply truncate the length of the Nm long to something short (with a substr). Use any indicator wished to hover. Like for example these glasses it's really up to you.

    You will see there is a PLSQL AJAX callback where you can retrieve and format the content of the pop-up window to everything you want. You can make it real.

    Here's what I did:
    1. the new procedure of ShowJob javascript.

    function ShowJob(pThis,pId){
         this.dTimeout;
          clearTimeout(this.dTimeout);
          this.dGet = dGet;
          this.dShow = dShow;
          this.dCancel = dCancel;
          var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=FULL_LONG_NAME',$v('pFlowStepId'));
          this.dGet();
         return;
    
         function dGet(){
               this.dTimeout = setTimeout("this.dCancel()",6500);
              get.addParam('x01',pId);
               get.GetAsync(dShow);
         }
    
         function dShow(){
               $x_Hide('rollover');
               if(p.readyState == 1){
               }else if(p.readyState == 2){
               }else if(p.readyState == 3){
               }else if(p.readyState == 4){
                     $x('rollover_content').innerHTML = p.responseText;
                     $x_Show('rollover');
    
                var l = findPosX(pThis)+pThis.offsetWidth+5;
                     var t = findPosY(pThis);
    
                $x_Style('rollover','left',l + 'px');
                     $x_Style('rollover','top',t + 'px');
    
    // This math would center on the vertical
    //                 $x_Style('rollover','left',findPosX(pThis)+pThis.offsetWidth+5);
    //                 $x_Style('rollover','top',findPosY(pThis)-($x('rollover').offsetHeight/2)+($x(pThis).offsetHeight/2));
                   document.onclick = function(e){
                   dCheckClick(e);
                   }
               }else{return false;}
         }
         function dCheckClick(e){
              var elem = html_GetTarget(e);
              try{
                        var lTable = $x_UpTill(elem,"DIV");
                        if(lTable.id!='rollover_content'){dCancel();}
                        else{}
              }catch(err){dCancel();}
         }
    
         function dCancel(){
               $x_Hide('rollover');
              document.onclick = null;
               get = null;
         }
    }
    

    2 rollover div on the page footer (div id = "reversal"...). Of course, this could also be a region.

    < div id = "reversal" style = "display: none;" color: black; background: #FFF; border: 2px solid #369; width: 290px; position: absolute; padding: 4px; » >
    < div id = "rollover_content" > < / div >
    < / div >

    3 PLSQL AJAX callback. : FULL_LONG_NAME

    -- select your value with apex_application.g_x01
    
    htp.p('You hover over ' || apex_application.g_x01 || '
    '); htp.p('Here is the Full Long Name: XXXXXXX XXXXXXX XXXXXXX 1234565');

    4 changed the Nm of Long column to have a link with the onmouseover call that calls the new procedure ShowJob. I made the assumption that with the NUM parameter, you could go the full record of what you need.
    onmouseover = "ShowJob(This,#num#) '"

    This should be it.

    Let me know what you think.
    -Jorge

    Published by: jrimblas on April 22, 2013 13:05: added code to validate for the completion

  • Need help to sort a column in the classic report

    Hi I'm creating and classic report and I need to sort on the columns. I also use a selection list to filter the records in the column. When I do not use the list selection sorting works but when I'm on the selcet list and select the sort option, then it is showing error. If anyone can help...

    Thnaks,
    Rik

    Hello

    Is it possible see the source code?
    If you create the developer user to your workspace and post login information.
    Or you can send information to connect to me by e-mail. My email is in my profile

    Kind regards
    Jari

  • Wrap the text in a column of the classic report

    In a classic report, I want to wrap the text in a column, and I need to control where to wrap. For example:

    That's what I need:

    Performance test
    -Classic report

    That's what I have now:

    Performance
    test - Classic
    report

    The length of the text is dynamic and where wrap them should also be dynamic.
    Can I wrap ColumnHeadings too?

    Thank you
    Yivon

    A solution would be to fix the width the column by wrapping and then in a span such as:

    #COl_VAL #.

    If you want to encapsulate the data then put a
    in it! ;)

  • How can I change display [15] classical report?

    Hi all

    How can I change the display in a maximally classic report? and remove the label of "display"?


    Thank you very much

    Hello

    Your sample works very well for me.

    I have add below at the request of the State for more than 14 ranks to report

    CONNECT BY level < 3
    

    It is not necessary that in your original app. It was just to test and get more rows to the report.

    But as this element P1_ROWS you control the number of lines is displayed?

    Kind regards
    Jari

  • Apex 4.0 interactive report row view dynamic action "after Refresh.

    Hello

    It seems that interactive report view row do not trigger the event "after refresh.
    I have not tested other events.

    I have taste.
    https://Apex.Oracle.com/pls/OTN/f?p=40323:76

    There is a dynamic action that show the alert by region "after updating' event.

    When you see a row, the alert is not displayed.
    Change record show no alert ether.

    Is it bug or missing feature?

    Kind regards
    Jari

    Hi Jari,

    I consider this a bug/feature missing as well. I filed bug # 10376989.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Trigger a dynamic action of another dynamic action

    Hi - Maybe is there a better way to do it - but what I wonder how I can trigger something as part of the page to show or hide based on an event driven dynamic action...

    Let me explain:

    I have a page element which is a popup LOV. He selects a value (of course). It is ITEM1.
    I have a second element of the page. It is ITEM2.

    I have a dynamic action, based on the evolution of the value of ITEM1 - it searches of db (sql query/plsql function call) to extract a value related to this selected value of ITEM1 and dynamically sets the value of the ITEM2 with what is returned.

    So far so good.

    But I also have a third element of the page, ITEM3. What I want to do now is to show or hide ITEM3 based on the value of the ITEM2 (which has been defined by the dynamic action on changing ITEM1). So essentially, I need dynamic action on the evolution of the value of the ITEM2 so I can show/hide ITEM3.

    However, it seems that the dynamic action does not pull on the change of ITEM2, by the dynamic action of ITEM1.

    If you got this extreme grace, following! :-)
    Any thoughts on how to get there (even in completely other/better way)?

    Thank you
    David

    Hello David,.

    In the second dynamic action that's on fire when the value of the ITEM2 is changed, the scope "of the event ' to 'live '.

    Thank you
    Machaan

  • Need help incorporating a little a Hyper link in report based on dynamic SQL

    I try to have a column in my report to link to a document on my network, when you click on the column in the report. I have a table that contains a row for each document that I want to link to. The URL of the document is stored in a column named NDDL. DOC_LINK. I would like the text "Linked" to appear as a value in the column of the report and to be a hyper link to the document.

    The report is a 'classic' function PLSQL retune an unfavourable SQL. I'm on Apex version 4.2.1.00.08

    I am struggling with the "' stuff and may not work. stuck to the line in question, but I can't see it properly, so I hope someone can help out.
    ...
      q := q || '  NDDL.DOC_TITLE as FILE_NAME, '; 
      q := q || '  NDDL.DOC_DESC, ';
      q := q || '  ''<a href="http:'' || NDDL.DOC_LINK || ''target="_blank"> </a>'' as LINKED , ';
      q := q || '  NDDL.MOD_DATE, ';  
    ...
    The # in the above line must be:
    {code}
    http: "| NDDL. DOC_LINK | target ="
    Thanks!
    
    Edited by: Sky13 on Mar 7, 2013 12:45 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    You've got several problems if I remember right. First of all, your PL/SQL is not work properly. Then, he has not shown what you expected to see. At the last, he did not open the location that you should open. I have solved at least two of these three issues. Now, I see that you have a third number and try to use this report to provide direct access to some resources within your network. Something like:

    \\kgi002.kgisystems.com\development\dba\dba_support\DBA_Support_Schedule.xls

    In fact, you can't do it this way and wrap this path within the < a href = "" tags to make it work. " You probably expect the click on this link to open the referenced document. :) It is a security problem and this problem has been discussed several times in this forum - search on three words "open the path to the document" would lead you to many answers:

    Re: open Windows Explorer with the path of IR? (would it might work)
    Open the interactive report document

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Classic report SQL with BLOB column not refreshing with jQuery Trigger Apexrefresh call

    Hello

    Really hoping that someone can help me, but for some reason that I try to report updated in dynamic Action to help:

    jQuery('#my-report').trigger('apexrefresh');

    on a simple SQL query report classic. I have used this many times on other parts of the report but the only difference with the report region where it is not refreshing, is that the table contains a BLOB column as it is essentially a report of downloaded files that users have made to the page by using the file browse.

    Would really appreciate help with that basically, I don't want to perform a full page refresh, because it currently operates.

    It has to do with the fact that this report is the question about a BLOB column, which is a link to the uploaded file?

    Thank you.

    Tony.

    Hello

    Check this area of report model have id.
    You should have id = "" #REGION_STATIC_ID # "in the model of the region"

    Make sure you have correctly write the id of the report in JavaScript. JavaScript is case-sensitive

    Kind regards
    Jari

  • change the color of line based on the value of column 5 Apex in the classic report

    Version of the apex 5.0.0.00.31

    Standard universal theme

    Page theme default template

    Classic report

    Foldable report template

    Hello

    I know this question has been asked several times here, but I'm working on 5 Apex and need to know the correct way to do it in this version.

    I need to change the color of the text of the entire line (no background color) based on the value in one of the columns of the classic report. I have just two conditions, if the value of column = Yes, color should be red, otherwise it must be green.

    I am new to jscript and css, so appreciate if someone can tell me the solution with steps.

    I have already checked this link that changes the value of the column, need to do something similar to the whole line.

    https://tylermuth.WordPress.com/2007/12/01/conditional-column-formatting-in-apex/

    Hi coolmaddy007-Oracle,.

    Here's an example set up on the apex.oracle.com according to the specifications you gave: https://apex.oracle.com/pls/apex/f?p=35467:1

    Version of the apex 5.0.0.00.31

    Standard universal theme

    Page theme default template

    Classic report

    Foldable report template

    Here is how it is done:

    Create a dynamic action with the following specifications:

    Name: Give the appropriate name

    Event: After refresh

    Selection type: region

    Region: select your region classic report

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $('td[headers="JOB"]').each(function() {
      if ( $(this).text() === 'MANAGER' ) {
        $(this).closest('tr').find('td').css({"color":"red"});
      }
      if ( $(this).text() === 'SALESMAN' ) {
        $(this).closest('tr').find('td').css({"color":"green"});
      }
      if ( $(this).text() === 'CLERK' ) {
        $(this).closest('tr').find('td').css({"color":"blue"});
      }
    });
    

    NOTE: Download the selector appropriate for your knowledge $('td[headers="JOB"]') case using firebug/browser development tools.

    Items concerned: leave blank.

    PS: Changed the example to change the color of text instead of the background color.

    I hope this helps!

    Kind regards

    Kiran

  • Reduction "between the column" space in a classic report

    To cram more on a screen, I want to reduce by half the spacing between columns in a classic report. Is this possible with these default settings? (I know, it can probably go negative.)
    <tr><td><table cellpadding="0" border="0" cellspacing="0" ... 
    Is these same control spacing inter-colonne? The space can be reduced? What is required?

    Howard

    Howard (in training) wrote:
    @joe,

    If you log in here
    http://Apex.Oracle.com/pls/Apex/f?p=4550:1:2807482452656:

    WS: APEX_EXAMPLES_01
    USER: demo
    PW: demo

    Application BPS_f991202 page 1 shows where I'm trying to reduce the spacing between the columns.

    For the region of report, I gave her a static ID

    Ok. It is useful/necessary to provide a selector for a style target for a specific region and to provide greater specificity selectors to override the theme style.

    and I placed the style in the header of the region as suggested.

    Do not do this. The HTML specification requires that the context of the elements ofstyle elements without scope attribute is the head of page element. APEX 4.2 provides the property CSS File URL/Inline especially page for the style information can be correctly located in the page header. The header HTML property page must be used in previous versions.

    I reduce all the '1px' to '0px '. I even cut the police but he seems to have no effect.

    It has no effect because the CSS pasted from the above posts contains no selectors for theme/templates that you use:

    
    

    Structures HTML class and ID attributes are not consistent or interchangeable in most themes APEX (more still more backward in time go you to your templates). Therefore the CSS selectors required to style the elements are not consistent or interchangeable. Your page contains a region with ID RR_COLLATERAL_SUMMARY, but it doesn't have a tbody.uReportBody or a table.uReportStandard , and therefore these rules are not applied to each of the elements on the page.

    If you look at the HTML templates in the theme you are using (17 Sapphire), or inspect the page rendered with even low web Inspector IE8, required selectors can be determined, and the required stylesheet created in the HTML Header page:

    
    

    That's why I keep going the importance of providing model information and its theme, and/or examples on apex.oracle.com when asking questions about the layout and Visual formatting. Without this information, proposed "solutions" are random speculation that produce only nets long and winding, time-wasting. As I said above, if you had 15 minutes creating an example on apex.oracle.com Thursday, you would have been answered in the night, instead of 4 days later.

  • Column width classic report apex 5.0

    Hello

    Using the latest version of the Apex

    version: 5.0.0.00.31

    Information of the database: Oracle Database Enterprise Edition Release 12.1.0.2.0 12 c - 64 bit

    Theme: Universal Theme,

    Models Page and the region: Standard

    I wanted to know what is the correct way to set the width of a column on a classic report in the new theme.

    I have two columns in the classic report and uses the form fields Stretch on model options in region I need the report to take the entire length of the region.

    I want to control the width of the first column to take less bandwidth. Currently, each column is set to 50% each.

    Please provide your suggestions.

    Hi Madhu,

    Go to the Page attribute

    under CSS-> Inline-> put the code below

    td[headers="JOB"] {
        width: 200px !important;
    }
    

    Here, instead of WORK put the column heading that you want to increase the width

    Kind regards

    Jitendra

Maybe you are looking for