Call for dynamic action of an interactive report

Hello
I'm on APEX 4.1, 11 GR 2, Windows 7 and the latest version of Firefox.
I have an interactive report. I want the end user to have the ability to click on a link to line level and launch a modal pop up on another page. Ideally, I would like to be able to use the Skillbuilders plug-in. I can make it work if I just go the road full page but I can't find a way to make it work like a modal pop up.
I have tried different methods, which work, but I think that I should follow that is using a page-level dynamic action that fires when a found JQuery element selector is selected.
The problem I have is that I can't find the proper JQuery selector syntax for the column. My report has a static ID of the IDN and my column a header of PARTS.
The best I can manage is not to see something happen as a page refresh (if the link is on the same page). I don't see no errors in console and firebug.

I replaced the dynamic action modal page appeal by an alert, which is not displayed, to make sure that it is not the configuration of the plug-in which is the cause of the problem.

Someone would be kind to give me an idea of what I should be completed in the JQuery selector field of the DA and what should be the attributes of link? Because I want to redirect from page 1 to page 2, what should I put in the other fields in link?
I've been chasing my tail with this for hours and read all the posts in this area, I could find, but I can't make it work. Any help would be much appreciated.
Kind regards

Danny

That's what I did on my column link of an international registration:

Link icon: (choose something)
Link attributes: class = "btndetails" onclick = "return false;"

(the onclick is vital, it prevents the default anchoring action does not happen)
Implement the details of the target page that you want in your popup modal

Create a dynamic action

Event: click on
Selection type: jQuery Selector
jQuery Selector: .btndetails

Advanced > scope of the event: live

Real action:

Modal Skillbuilders page:
Location of the URL: attribute of the triggering element
Attribute name: href

Who should appear in the page without problem. The onclick is the key here, and probably why you were chasing your tail so far.

Tags: Database

Similar Questions

  • Call a dynamic action automatically on a regular basis

    Hello
    We have a classic report which we would like to refresh that page every X minutes. We did this by using setInterval and $a_report but as I understand it, it is a unsupported feature... So I would go down the road of the dynamic action.

    But my question is this... How can I call the dynamic action automatically say every 3 minutes, with no user interaction?

    Hello Dev,

    You can use [url http://www.oracle.com/technetwork/developer-tools/apex/application-express/apex-plug-ins-182042.html] Plugin Timer

    Best regards
    Fateh
    ----------
    If you believe that my answer is correct or helpful to you, then please check the response as helpful or appropriate.

  • How to add the action button for each column in the interactive report

    Hi all

    I'm new in APEX, so pls forgive my question, if it's simple, but I am struggling with this problem for days now. I have interactive report and you want to add button in each row. What I want to do with this button is the following:

    1. to execute some stored procedure in need of that particular line item values

    2. returns a (id)

    3. go in another page in the application by passing the value out of the procedure (id).

    and I'm not find the way to do it. I tried now means:

    1. If I add the link of the column, so I can refer to the value of the current row, I don't know how to call the stored procedure and perform actions of rest I need

    2. If I add the button to the region, I do not know how to reference the values in column of a particular line of the interactive report...

    and I'm stuck...

    I just forms and global report and probably still think the "wrong" way .

    Any help would be appreciated!

    Thank you!!!


    user3253917 wrote:

    Please update your forum profile with a real handle instead of 'user3253917 '.

    I request of the company: there is a customer who always orders the same standard product orders (always order the same products, fair amount is different). I want to make it simple for the user: instead of retyping the command (master and few records details every time yet) I want to copy selected command (copy of the master record and record details) so that the user will only change date order (in master record) and amount fields in record details).

    So, in order to give him:

    1. the user must be able to choose the order in which I would copy (at page 4), select it,

    2. I need to make PL/SQL procedure to insert the new master record (order) and a few record details (order_items) (copy of the order/order_items chosen in step 1)

    3. navigate the user to page 29, where the master account at stage 2 insterted appears, so that the user can change the date and quantities.

    Any solution will be highly appreciated! Thank you very much!!!

    In simple terms:

    1. Add a link to column "Command copies" in the report on page 4, which sets the COPY request and passes the order ID on page 29.
    2. On page 29, create a process before header, sequenced to be the first process executed and conditional on REQUEST be EXEMPLARY, which creates a new order as a copy of the order with the ID from page 4 and returns the ID of the new order in the PK command ID of 29 page element.
  • Call the dynamic Action of the link

    Hi guys,.

    I'm sure that there is a super easy way to do it and I'm missing the obvious.

    All I want to do is call a DA for a HTML link, is it possible? Call the function DA like I do with JS?


    Help, please.

    Thank you

    Spam

    Hello

    I do the following to call a DA my link of the report column.

    1. in the link attribute, set the following parameters:

    onclick="return false;" class="my_link_class";
    

    2. in DA, set the 'event' that ' click on ', 'Selection of the Type' "jQuery Selector". "JQuery Selector", enter the name of the class (with the dot) as:

    .my_link_class
    

    You can then define your actions of true/false in the DA.

    Thank you
    Rohit

  • Need help call a modal window of an interactive report

    Version 4.1.1.00.23

    Hello

    I have an interactive report I need to have a column in the report as a link to call a modal window that allows to display a report containing details of the clicked column.

    I have a page created with the report to view the details. I need help with the appeal of the page and display it as a modal window.

    I tried the modal Skillbuilders plugin, but it does not work because of an error that a.colorbox is not a function, and I don't know what to do about this.

    Can someone help me?

    Can what information I provide?

    Thank you

    Joe

    Greg,

    I felt that it was a separate subject than this thread.

    The thread was about a question I had with the plugin not show and this thread is more a general question.

    I referred to the plug-in here to avoid time wasting people telling me to this topic.

    I'm closing this thread.

    Thank you

    Joe

  • Obtain / use value radio in Apex plugin for dynamic action button

    Apex 4.2

    I'm working on a plugin that you run a dynamic action based on the value of a selected option button. I think its more so the syntax that is causing me problems.

    I have a point page (P127_DISPOSITION) reprsented as a group of radio buttons. There are three cases for the Group of radio buttons: CREATE, update, and THROW. The LOV source for the element on the page is:

    STATIC2: create new Inspection; CREATE, update of existing Inspection; Updated, throw; IGNORE

    I have a plugin that displays a map and a few other neat, tools and toolbars other clever tricks. When a user clicks on the radio button under the UPDATE, the card must hide some of these tools. This part is not so bad that I have the code for this. Here's what I or tried so far:

    $("#P127_DISPOSITION").change(function() {
    if ( $("#P127_DISPOSITION").val == 'UPDATE' )
    $("#draw_point").hide();
    $("label[for=\draw_point\"]").hide();
    } else if ( $("#P127_DISPOSITION").val == 'CREATE')
    $("#draw_point").show();
    $("label[for=\draw_point\"]").show();
    } else {
    $("#draw_point").show();
    $("label[for=\draw_point\"]").show();
    }
    });
    

    The statements in the IF statements are not the problem. I tested and been using these statements in my plugin for other reasons. These statements just to show or hide the toolbar. But I'm doing this action happens dynamically on a radio button is selected. So I know there must be some problems in the way I use the onChange function or the statement real himself.

    Any help on this would be greatly appreciated. Thanks in advance.

    NewApexCoder

    I don't think that your problem is with dynamic action, but how the html code that is generated when the plugin looks like.

    If the generated html code is not a type of entry right front, you need to write your own javascript code that overrights the apex.item () .getValue (default).

    To explain what I mean lets take a look at the native radiogroup and popup lov.

    A radiogroup of point P40_DISPLAY_RETURN of the page html code looks like

    Different display and return value


    As you can see the element with the id P40_DISPLAY_RETURN is the set of fields. Because the set of fields is not a value attribute neiter $x('P40_DISPLAY_RETURN').value and $('P40_DISPLAY_RETURN').val)

    the value will give you. Apex. Item ('P40_DISPLAY_RETURN'). GetValue() will return the C.

    And for the lov contextual element P40_POPUP_LOV of the HTML page looks like

    
    

    Now the P40_POPUP_LOV element is an input element, but the value is the value to display. So $x('P40_POPUP_LOV').value and $('P40_POPUP_LOV').val () will give you the display value ' OHare, Edward "Butch" While apex.item('P40_POPUP_LOV').getValue () returns the return value 4.

    Take a look at the getValue for both javascript code, you see that the functions are actually different and depend on the widget that is the element.

    getValue : function() {
      // get checked input value, in the context of the fieldset
      // note: can't use $lRadios here because this is a reference
      // to the initial state
      var lReturn, $lRadio;
      if ( pType === "checkbox" ) {
          // checkbox will return an array
          lReturn = [];
          $( ":checked", lFieldset).each( function() {
              lReturn[ lReturn.length ] = this.value;
          });
      } else {
          // radio group should return a single value
          $lRadio = $( pSelector + " :checked", apex.gPageContext$ );
          if ($lRadio.length === 0) {
          // check if the length of the jQuery object is zero (nothing checked)
          // if so return an empty string.
              lReturn = "";
          } else {
              // otherwise return the value
              lReturn = $lRadio.val();
          }
      }
      return lReturn;
    }
    
  • Is possible to save the user who uses the download action in an interactive report.

    Hello

    In my application I want to save that downloads information from the interactive reports in any format, is this possible?

    Concerning

    Hi Eva,

    The event would be onClick of one of the download buttons (either CSV, HTML, PDF). Al of these download buttons have an id that starts with 'apexir_dl_' but including the suffix of ASD file extention (so the Download CSV link would be "apexir_dl_CSV").

    The PL/SQL procedure for the actual record is accurately described in the link Tony posted.

    Kind regards

    Vincent

  • Refresh an inputText after the call for immediate action = 'true '.

    Hello

    I use JDevelopper 11.1.2.4, I have a table with a column of 3 2 of them are mandatory and a button with the immediate attribute set to true to ignore validation rules.

    the button call action from bean to support that restore the current row by using the code below:

    {} public void actionAnnulerException (ActionEvent event)
    insertAutorise = true;
    editionAutorise = true;
    UtilityBean.executeMethodFromBinding ("Rollback");
    DCIteratorBinding iter = (DCIteratorBinding) UtilityBean.getBindings () .get ("ExceptionActivite1Iterator");
    Line = iter.getCurrentRow ();
    Whole EntityState = (Integer) row.getAttribute ("entityState");
    if(EntityState==0) row.refresh (row. REFRESH_REMOVE_NEW_ROWS);
    else row.refresh (row. REFRESH_UNDO_CHANGES | line. REFRESH_WITH_DB_FORGET_CHANGES);
    AdfFacesContext.getCurrentInstance () .addPartialTarget (inputDateFin);
    return;

    }

    But even if I add a partialTarget to the date. MinValue value are not updated after the action.

    Thank you;

    KHALIL

    Hello

    Please check this:http://adfpractice-fedor.blogspot.com/2012/02/understanding-immediate-attribute.html

    Kind regards

    Habib

  • Management of errors for dynamic Actions (4.1.1)

    Hello

    I'm trying to create a function to handle all possible errors, but errors generated by DA are not fished.
    Is it possible to caught? How?

    My function is based on:
    http://www.inside-Oracle-apex.com/Apex-4-1-error-handling-improvements-part-1/
    http://docs.Oracle.com/CD/E23903_01/doc/ doc.41 /e21676/apex_error.htm#autoId4

    and I'm doing my tests in apex.oracle.com


    Thank you

    Hello

    Unfortunately this is currently not passing through the central error handling. It's something that we intend to set at the APEX 4.2.

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

    Published by: Patrick Wolf on April 24, 2012 18:30

  • Interactive report Javascript Refresh, working only the first time

    Hello

    I'm trying to implement a dynamic action on an interactive report that fires a pl/sql procedure and then reload the IR.

    I have something like this:

    Select par.*,
    CASE
    WHEN (SELECT 1 OF THE AddressBook ch WHERE ch.usr_id = (select id where email = usr: APP_USER) AND ch.address_id = par.id) IS NOT NULL
    THEN ' < img src = "" #IMAGE_PREFIX #wwv_cancel.gif "class alt"Y"="delAddressFromBook"id =" "| par.ID | "" / > "
    ELSE ' < img src = "" #IMAGE_PREFIX #add.gif "alt ="N"class ="addAddressToBook"id =" "| par.ID | " » / >"
    Mapped END
    of nominal addresslist

    My dynamic action uses the '.addAddressToBook' jquery selector, and it fires properly the first time I click Add image. My pl/sql code runs correctly and ist updated IR.
    It is, when I click the second time in another entry, nothing happens. Looks like the javascript works always something.

    Updating of the IR ist done with javascript gReport.pull ().

    Thanks in advance.

    Florian

    Florian,

    If you bind an event javascript on an element that is get updated then after that it gets updated, it will no longer be bound to her event. It is possible to use the event to this situation (http://api.jquery.com/on/) delegation, he took advantage of event bubbling (http://www.quirksmode.org/js/events_order.html) and handles the event to an element that is not updated to a kind of AJAX call.

    Edit
    The following code binds the event listener for the document, but it does that raise the event handler if the initiator of the event matches the selector ".addAddressToBook". I chose the document object, because each page has a document, but you can consider using a parent element that is much closer to the initiator of the event.

    //jQuery 1.7+ use "on"
    $(document).on("click", ".addAddressToBook", function(event){
        alert('addAddressToBook Clicked');
    });
    
    //jQuery1.4.2+ use "delegate"
    $(document).delegate(".addAddressToBook", "click", function(event) {
        alert('addAddressToBook Clicked');
    });
    

    Good luck
    Janet Tyson

    Published by: Tyson Janet on January 23, 2012 07:27

  • ORA-01461: can bind to a LONG value only for insert into a LONG column of dynamic Action

    I try to apply the condition to display items in a table with the following error code.its dynamic action when him save the day.

    event: click on

    Selection type: button

    name of the button: P23_ADD_MORE_ROW

    condition: no strings attached

    //P23_NAME_BY_CAT,P23_HOW_MANY as LOV  in apex form
    var l_no_rows;
    l_no_rows = apex.item("P23_HOW_MANY").getValue();
    for (var i=0; i<l_no_rows; i++){
      apex.widget.tabular.addRow();
    
    if  ($v("P23_NAME_BY_CAT")==1) {
    $("#WORK_QTY").show();
    $('td[headers=WORK_QTY]').show();
    $("#WORK_LOCTION").hide();
    $('td[headers=WORK_LOCTION]').hide();
    $("#MY_LOCTION").hide();
    $('td[headers=MY_LOCTION]').hide();
    //with morethan 25+ entry
    }
    else if ($v("P23_NAME_BY_CAT")==2) {
    $("#WORK_QTY").hide();
    $('td[headers=WORK_QTY]').hide();
    
    $("#WORK_LOCTION").show();
    $('td[headers=WORK_LOCTION]').show();
    
    $("#MY_LOCTION").hide();
    $('td[headers=MY_LOCTION]').hide();
    //with morethan 25+ entry
    }
    else if ($v("P23_NAME_BY_CAT")==2) {
    $("#WORK_QTY").hide();
    $('td[headers=WORK_QTY]').hide();
    $("#WORK_LOCTION").hide();
    $('td[headers=WORK_LOCTION]').hide();
    
    $("#MY_LOCTION").show();
    $('td[headers=MY_LOCTION]').show();
    //with morethan 25+ entry
    }
    else {
    alert("no  count");
    }
    };
    
    

    dynamic action above can ignite if you level column, it means when I choose LOV value so that specified columns will show only rest in a column will be hidden. up to 10 input works fine.

    Hi Ramani_apex,

    Is the action of javascript executed in the dynamic action of the code you posted above or more code?

    You seem to have exceeded a 4000 or 32 K bytes on a column of metadata for dynamic action when you set the dynamic action.

    function f_mybuttonAction () {
    //P23_NAME_BY_CAT,P23_HOW_MANY as LOV  in apex form
    var l_no_rows;
    l_no_rows = apex.item("P23_HOW_MANY").getValue();
    for (var i=0; i
    
    • Call the action javascript function run the dynamic action javascript code:
    //mybutton action
    f_mybuttonAction();
    

    Reference:

    I hope this helps!

    Kind regards

    Kiran

  • Dynamic position in interactive report

    In standard reports, it is possible to create dynamic topics using PL/SQL.

    Does anyone know a way to do it for interactive reports?

    I have a report that must change the date items depends on the selected start date.

    Thank you

    Jon

    Hi Jon,

    It's a little different from what you expect.
    What you can do, is to refer to an element hidden for ex. In your interactive report you're & P1_ITEM. that contains your dynamic position (PLSQL code)

    Kind regards
    Dimitri
    ----------------------------------
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • Tips: APEX 5 r IR by a dynamic action after the text fields complete

    Hello I hope I can get assistance on this matter and thank you in advance for any information.

    I have an APEX 5 screen, that has 4 fields of entry of text and under this one IR that has these 4 parameters in its SQL where clauses.

    Now if I create a button that submits page or redirects to this page my report can be updated with the values of user entered without problem, basic stuff.  If I create the settings section as a dialog box model once again that I can get the update report as this dialogue submits the page as well as the report can refresh according to closed dialog option.

    What I struggle to reach is to allow the user to enter values in the text fields click on a button called 'submit' and there all stages of implementing dynamic action without page reloading.  I want user to P1_A, P1_B, P1_C, P1_D press on "submit" input, dynamic action that links the values entered into the fields, then fire another dynamic action that updates the State when the button is clicked / modified values what works the best.

    I am struggling to get this to work and I even tried to copy these settings and do them as hidden for example bind input P1_A to P1_A_Hidden by a dynamic action and have the report where clause =: P1_A_HIDDEN, but have not managed to get this working.

    It's possible?  I know its easy to simply send the page and make it work, but I want the experience to be quite uniform for the user and act as you never leave the page.

    I saw on the packages of the app in the chart example.  The bubble chart has a list selector (salary) and the table updates dynamically, it seems so that the process can occur, but I need the user to enter text and not use selection lists.

    My apologies if I missed any, but I can give you more if it helps.

    Concerning

    1972903b-5166-494e-8355-08d9d4006e96 wrote:

    Hello I hope I can get assistance on this matter and thank you in advance for any information.

    I have an APEX 5 screen, that has 4 fields of entry of text and under this one IR that has these 4 parameters in its SQL where clauses.

    What I struggle to reach is to allow the user to enter values in the text fields click on a button called 'submit' and there all stages of implementing dynamic action without page reloading.  I want user to P1_A, P1_B, P1_C, P1_D press on "submit" input, dynamic action that links the values entered into the fields, then fire another dynamic action that updates the State when the button is clicked / modified values what works the best.

    The button simply trigger a unique dynamic action of refreshment on the IR region. Session state for page elements must be processed automatically by specifying them in the property Page to submit Items of the IR region.

    Please ensure that you have updated your forum profile with a recognizable username instead of "1972903b-5166-494e-8355-08d9d4006e96": Video tutorial how to change username available

  • Change the color of line in an interactive report in version 4.2 # Apex

    Hi team,

    I have done following things in my interactive report to reflect changes in color, but these changes do not appear. Could you please help where I'm missing.

    Apex Version 4.2 #.

    Theme-100 light blue

    1. to light under the screen if active_flag is "N", then the entire line, I would like to show in a different color.

    2. then create a dynamic action like this

    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="Active_Flag"]').each(function() {  
      if ( $(this).text() === 'N' ) {  
        $(this).closest('tr').find('td').css({"background-color":"#FFFF99"});
      } else if ( $(this).text() === 'Y' ) {  
        $(this).closest('tr').find('td').css({"background-color":"#EEA196"});
      } else {  
        $(this).closest('tr').find('td').css({"background-color":"#C6EA91"});
      }  
    });
    

    But it does not reflect anything, you can offer me if I wrong anywhere.

    Kind regards

    Sruthitamiri

    Sruthi Tamiri wrote:

    I have done following things in my interactive report to reflect changes in color, but these changes do not appear. Could you please help where I'm missing.

    Apex Version 4.2 #.

    Theme-100 light blue

    1. to light under the screen if active_flag is "N", then the entire line, I would like to show in a different color.

    2. then create a dynamic action like this

    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

    1. {$('td[headers="Active_Flag"]').each (function ()}
    2. If ($(this) () .text = ' don't) {}
    3. $(this) .find ('td').css({"background-color":"#FFFF99"});).closest('tr')
    4. } ElseIf ($(this) () .text = 'Y') {}
    5. $(this) .find ('td').css({"background-color":"#EEA196"});).closest('tr')
    6. } else {}
    7. $(this) .find ('td').css({"background-color":"#C6EA91"});).closest('tr')
    8. }
    9. });

    But it does not reflect anything, you can offer me if I wrong anywhere.

    Interactive report region that model is set to Model No.? If so, that means that is missing an ID attribute that is required to bind a dynamic action after refreshing the report. Use a region template that contains id="#REGION_STATIC_ID#" , as the region without buttons or title.

    The number of standard theme for the theme of blue light is 15. Have numbered it 100 would indicate that it has been customized, exported and re-imported. In an application updated through previous versions of APEX, it can actually be an older version of this theme earlier at APEX 4.x, when a number of models in legacy issues, missing this attribute altogether.

  • How can I rearrange the columns in the not displayed section of the interactive report.

    Hello

    My interactive report contains 185 columns and requieres users to build its reports with some columns, but he gets lost between this amount of columns, it would be easier if the columns in the do not display the interactive report section would be automatically sorted, is it possible?

    Thank you very much

    Hi Eva,

    A solution would be to order the column names in alphabetical order. You can create a dynamic JavaScript action to manage the sort.

    The shuttle of the attribute IR "Select columns" have the ID "apexir_SHUTTLE_LEFT" or hidden columns and 'apexir_SHUTTLE_RIGHT' to the displayed columns.

    The function that you create might look like:

    var options = $('select#apexir_SHUTTLE_LEFT option');
    var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get();
    arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; });
    options.each(function(i, o) {
      o.value = arr[i].v;
      $(o).text(arr[i].t);
    });
    
    var options = $('select#apexir_SHUTTLE_RIGHT option');
    var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get();
    arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; });
    options.each(function(i, o) {
      o.value = arr[i].v;
      $(o).text(arr[i].t);
    });
    

    You need to find the right timing for dynamic action to run, I suppose the click on the button "Select columns" would do the trick.

    Kind regards

    Vincent

    http://vincentdeelen.blogspot.com

Maybe you are looking for