Dynamic javascript in APEX 5 trigger action

Hello

Return to the era 4.2, I triggered some dynamic Actions in javascript using: apex.event.trigger (document, 'Testing_Custom');

Dynamic Actions has been defined as:

  • Event: Custom
  • Custom event: Testing_Custom
  • Selection type: DOM object
  • The DOM object: document
  • Condition:

Today, the APEX 5 DOM object as the Type of selection option is no longer available.

Instead, I used these settings:

  • Selection type: jQuery Selector
  • jQuery Selector: document

It does not work.

Any suggestions?

Thank you

Jos

Just use the "Javascript expression" type, as say the docs Kiran. It has exactly the same result. That's what says the help on this:

Specify the JavaScript Expression must be evaluated to return a DOM object, an array of DOM objects or object jQuery as the dynamic action.

Tags: Database

Similar Questions

  • Fire of action first and then dynamic javascript

    Hello

    I use Oracle Apex 4.1.

    In one of my fields of data in reports, there are a few fields with hyperlinks.

    Ex: I report and one of the field shows 'Enter Code', so when the user clicks on 'Enter the Codes' URL it triggers a javascript that sets the hidden item-specific value and opens a modal form to enter the codes.

    When the form opens, if there is no value for the codes, I need to show the codes in the form so I want to write a dynamic action that sets the values once the form opens.

    My requirement is:

    When you click on a link, call javascript set on the page and then call a dynamic action.

    I need to call javascript from the url that I need to set some parameters is passed to javascript.

    Hello

    I found something, what would be interesting to launch dynamic javascript actions.

    But make sure that you do not change the order of dynamic actions.

    Make a call to it from your javascript code

    Apex.da.actions ($("#P5_HID_TEST"), apex.da.gEventList [1], "change", null);

    actions : function(pSelector, pEvent, pBrowserEvent, pData)

  • How to create a trigger action - content reveal

    Hello.

    I'm developing a simple curriculim portfolio as site on Muse. I wanted to do with the content revealed after a trigger action: in the example images, click on the 'about' button, it makes go it any content down to reveal the text. Then I click once again, and all other buttons back to its original position, theefore hide text previously displayed (see images below).

    My question is: How can I do? Should I create another page for the text of comments and then insert a transition between it and the House? Thanks in advance!example-01.jpgexample-02.jpg

    This is the default behavior for container Accordion with different labels and content area. You can create separate Accordion for different content or use the composition as a ToolTip which can be configured to reveal content to the overview or mouse click action.

    Thank you

    Sanjit

  • Access to the element in a dynamic PL/SQL trigger Action?

    Hello

    I have a form that is used to calculate the volume of a (large) number of tanks based on the heights of tank is entered.

    I have a PL/SQL procedure that performs the calculation: it receives the name of the tank and the height and calculates the volume (each tank may have different physical characteristics).

    I didn't create a dynamic Action by tank (I'm lazy and the number of tanks is important!). I currently have a dynamic Action that is triggered whenever one of the heights of the tank on the form changes. The PL/SQL action called the calculation for each tank. FOR EXAMPLE

    :P1_TANK1_VOL := tank.vol('TANK1', :P1_TANK1_HEIGHT);
    :P1_TANK2_VOL := tank.vol('TANK2', :P1_TANK2_HEIGHT);
    ...
    :P1_TANK50_VOL := tank.vol('TANK50', :P1_TANK50_HEIGHT);
    
    

    This works, but is to perform calculations of 50 whenever one is necessary, and can seem slow.

    Is there a way to identify the trigger for the action of PL/SQL? FOR EXAMPLE

    IF TriggeringElement = 'P1_TANK1_HEIGHT' THEN
    :P1_TANK1_VOL := tank.vol('TANK1',:P1_TANK1_HEIGHT);
    END IF;
    
    

    Any ideas?

    No PL/SQL directly. You could do a JavaScript action before your PL/SQL and write the id (which is the name of the element in the APEX), the item trigger in a hidden item, submit it to your PL/SQL action and now you know how it started.

    Kind regards

    Joni

  • Pop - up using javascript in dynamics of the Actions

    Hi all

    Before you begin with the question, I want to share the below of the details on the application

    Table creation script

    create table status_dashboard (ID number, name varchar2 (10), varchar2 (10) State, varchar2 (1000)) URL;

    Insert the script

    insert into status_dashboard values 1, 'A1', 'up', 'www.ibm.com';

    insert into status_dashboard values 1, 'B1', 'up', 'www.hp.com';

    "insert into status_dashboard values 1, 'C1', 'up', ' www.msn.com";

    insert into status_dashboard values (1, "D1", "low", "www.yahoo.com'");

    insert into status_dashboard values 1, 'E1', 'up', 'www.oracle.com';

    insert into status_dashboard values 1, 'F1', 'up', 'www.facebook.com';

    insert into status_dashboard values (1, 'G1', 'down', 'www.twitter.com');

    "insert into status_dashboard values 1, 'H1', 'up', ' www.google.com ';

    insert into status_dashboard values 1, 'I1', 'up', 'www.apex.oracle.com';

    Report query

    SELECT max (case when mod (rn, 3) = 1 then end name) col1

    , max (case when mod (rn, 3) = 2 then end name) col2

    , max (case when mod (rn, 3) = 0 then end name) col3

    , max (case when mod (rn, 3) = 1 then decode (status, 'down', 'red', 'green') end) The_color1

    , max (case when mod (rn, 3) = 2 decode (status, 'down', 'red', 'green') then end) The_color2

    , max (case when mod (rn, 3) = 0 then decode (status, 'down', 'red', 'green') end) The_color3

    , ceil ((rn) / 3)

    (select name, status, row_number() on rn (order by name) of status_dashboard)

    Group by ceil ((rn) / 3)

    order by ceil ((rn) / 3)

    Report link on Oracle Apex

    https://Apex.Oracle.com/pls/Apex/f?p=54850:1

    I created a matrix report, enabled the conditional formatting. The only problem I have right now is to go to a link in the report.

    I use 3 text elements Apex - P1_ID, P1_NAME and P1_URL.

    I use also 3 dynamic actions

    1. DEFINE NAME - will set the P1_NAME field with the value clicked in the report.

    2 SET ID & URL - define the fields P1_ID and P1_URL of the DB using the P1_NAME field.

    3-pop-up-appears the P1_URL using javascript.

    Problem statement:

    The pop up page is a blank page, although I can see that the value for the P1_URL field is defined using dynamic measurements.

    Could someone please take a look at this example and help me with the same.

    PS: The example was developed using sample data.

    Hello

    When you use the substitution in JavaScript string, the value is used when page and is pretty hard-coded in the document value.

    Even if you change the value of the element or the element value in session state, it will not happen to the HTML document.

    In dynamic action, try something like

    popupURL($v("P1_URL"))
    

    Who will choose the value of the item and pass it to the popupURL function.

    Yes, you have created, sample, but how we can view source if we are unable to connect your workspace?

    Kind regards

    Jari

  • Apex 5 refresh action prevent IR

    Hello

    We must prevent the search and update the function of an international registration based on the validation of the input elements.

    In earlier versions, we used to validate the entry points of the page and if everything was ok and then refresh the IR with the greport.

    But with Apex 5 we have no idea to stop processing research and update the IR function. Even trigger us the fuction (jquery) validation error or write DA on before the refresh of the IR function, I have found no way to stop treatment once you press the button 'go '.

    Any help is very appreciated,

    Tolga BODUR

    Hello

    You should indeed be able to use a DA set fire "before Refresh' of the IR region, you must also use the action type"Cancel the event", which will prevent the report to be refreshed. This is possible under certain conditions according to your validation criteria, you can define in the when > Condition of your DA.

    Kind regards

    Anthony.

  • How does the APEX 5 'Refresh' Action? Unable to refresh the page items.

    Hello

    I'm 5 APEX developed a page with both regions. Goal is to show the number of cells on the main area and allow to update the same number of cells from another region on the same page.

    Region 1: Added a view-only point P2_CELL_NUMBER_SHOW seen source of sql return the unique value. Like "Select cell_number of user_cell."

    Region 2 (hide this region during the loading of the page): adding an item of text P2_CELL_NUMBER_UPDATED. This region has added a button "Apply Changes". During the click on added dynamic actions in the following order:

    (a) PLSQL: Null; Submit article: P2_CELL_NUMBER_UPDATED

    (b) PLSQL: the UPDATE call sql statement to update the number of cells in the database table.

    (c) masking region 2 and region 1 via java script list.

    (d) refresh region 1 (here I expect at this point P2_CELL_NUMBER_SHOW should show the new update on the step value b). But get the old value that was earlier on region 1. But when submitting the page then region 1 get the new value.

    So, does send the page or set the session state to get the new value on region 1? Will update no help in this situation?

    Thank you

    Ankit

    Hi Pierre,.

    The dynamic Action of the type "Refresh", does not work on the elements and entry areas with elements of entry. It is intended for regions of report with PPR (partial Page Refresh) allowed namely interactive reports, classic and graphic regions.

    Kind regards

    Kiran

  • Can we change the type of field dynamically in the Apex

    Hi all

    Using Apex 4.0;
    Is it possible to dynamically change the type of field from one to the other? I have a list of selection; If the user selects a particular value, I need to display the next filed a tabled text, and if a different value that he chose the need to view it as a selection list.

    Please guide me,

    Thank you

    If these two form elements are two different columns in your table, just use the regular treatment.
    Otherwise, you can either
    -Create a view on top of your table that contains two columns (thus duplicate), use the regular treatment of APEX and doing the real work to instead - relaxing on your view or
    -Choose elements to map to your table.column and (when the other field is shown and modified) copy the value to the first element with dynamic Action.

  • Hide a dynamic button with check boxes and actions.

    Good, everyone.
    Now I'm trying to do is create a dynamic action to hide a button
    When a box is selected. It would be simple if the checkbox
    created dynamically.

    I have a report that contains a dynamically created checkbox column hollow
    the apex_item.checkbox command. I want to be able to hide a button if no
    that the boxes have been checked, but I don't know how to make a reference to
    This point when creating a dynamic action.

    You guys could help me once again?
    Thanks for the attention.



    Best regards, Leandro Freitas.

    Try this:
    1 put a class on the checkbox example
    apex_item. CheckBox (p_idx-online 1, p_value => NOM_PAPEL, p_attributes => "class ="mycbclass"onChange = hideRevoke ();', p_checked_values-'UNCHECKED' online")

    2. create a dynamic action:
    Event: change
    Type of selector: jQuery Selector
    JQuery selector: input.mycbclass
    Condition: Expression JavaScript
    Value: $('input.mycbclass:checked').length > 0

    Action: hide
    Create opposite: checked
    Selection type: Elements (s)
    Article (s): click on your button

    Maybe I should point out that if you use a model button then you will need to ensure that the model has a button id so that the dynamic action allows to identify the button.

    Rod West

    Published by: Rod West February 24, 2012 13:52

  • Case statement in the dynamic JavaScript code

    Dear friends,

    Using the version 4.2.6

    I applied this code in dynamic action to change the color of the intractive report rows of base on the State of the column.

    In my report, I have three columns VIP_GUEST, CANCEL_FLG, APPROVE_FLG.

    If cancel_FLG = "Y", then the color of the line should be red.

    IF VIP_GUEST = 'Y' AND CANCEL_FLG = 'n' then line color should be Orange

    If VIP_GUEST = 'n' AND CANCEL_FLG = 'n' then line color should be green

    How can I set the conditions in the code below. From ways below how to use the above code condtions.

    {$('td[headers="VIP_GUEST"]').each (function ()}
    If ($(this) () .text = ' don't) {}
    $(this) .find ('td').css({"background-color":"#FFFF99"});).closest('tr')
    } ElseIf ($(this) () .text = 'Y') {}
    $(this) .find ('td').css({"background-color":"#EEA196"});).closest('tr')
    } else {}
    $(this) .find ('td').css({"background-color":"#C6EA91"});).closest('tr')
    }
    });

    Hi Maxence,

    CORINE wrote:

    I changed condition in your code, and I have to set a condition more

    IF VIP = 'Y' AND APPROVAL = 'Y', THEN the color should be orange, once again.

    How can I set this condition in the code below.

    Try the following code:

    $('td[headers="CANCEL_FLG"]').each(function() {
          if ( $(this).text() === 'Y' ) {
            $(this).closest('tr').find('td').css({"background-color":"red"});
          } else if ( $(this).text() === 'N' ) {
              var vipflg = $(this).closest('tr').find('td[headers="VIP_GUEST"]').text();
              var aprflg = $(this).closest('tr').find('td[headers="APPROVED_FLG"]').text();
              if ( vipflg === 'Y' && aprflg === 'Y' ) {
              $(this).closest('tr').find('td').css({"background-color":"orange"});
              } else if ( vipflg === 'N' ) {
              $(this).closest('tr').find('td').css({"background-color":"green"});
            }
          }
    });
    

    Kind regards

    Kiran

  • report interactive apex 5, pivot action does not display columns in the application developed on 4.2.6

    I just installed apex 5.01 on apex 4.2.6.

    When I want to use the pivot of the action on an interactive report developed on 4.2.6 the names of the columns does not appear.

    If I add a new column, it seems

    calculated columns displayed

    Thank you

    Hello

    The pivot must be enabled for these columns.  To do this, you can upgrade the application developed in 4.2.6 as follows:

    -Click on the application

    -Click utilities

    -Click on the Application upgrade

    -Activate the IR Pivot should appear.  Click on the number of candidate object

    -You can select some or all of the IRs to upgrade

    Kind regards

    Christina

  • Apex 5 ir action menu does not work with the 15 theme

    I'm trying to apply for apex 4.2 using the 15 theme in apex 5, but the IR Action menu does not work.

    Any suggestions?


    concerning

    Saverio

    the problem has been resolved; It was due to incompatibility with the jquery.menu plug-in.

    concerning

    Saverio

  • Dynamic LOV in apex

    Hi all

    I have a requirement in which I have two point LOV. In 1 LOV 'Country', 'State' will be displayed. In 2nd LOV 'India', 'Karnataka' will be displayed.

    My requirement is

    In 1 LOV when 'Country' is selected "India" and "Karnataka" must display in LOV2

    In 1 LOV the 'State' is selected only "Karnataka" should display in LOV2

    1st LOV query table is different from the 2nd table LOV and there is no relationship between these two tables.

    I wrote under request in the

    IF: P9_SOURCE = 'Country' THEN

    RETURN

    "Select the name of the COMMUNE. PRODUCT_TYPE ';

    ON THE OTHER

    RETURN

    "Select the name of the COMMUNE. PRODUCT_TYPE where id = 1'; "-" where the condition is added to display "Karnataka which is having the ID = 1.

    end if;

    This query runs well with no error. but still go to the Else part. If I check the same code in query TOAD work very well according to my condition.

    Can someone help me on this.

    Thanks in advance

    Ravi

    : P9_SOURCE has the value NULL until the Page is sent. That's why its not always goes Else.

    So, you will need to submit this question once the value is dynamic Action change.

    BR,

    Patrick

  • Trigger action when a picture is open

    Hi, I have a software that can work with photoshop (with an order, it can take a picture of a digital SLR camera, save and open it in PS, its called Pro DSLR of BreezeSys), and I need to apply an action at the moment that an image is loaded on PS.

    Is there any configuration of trigger?

    Ty!

    You can try to define an open document event using the script event handler. It may be triggered when the image opens in Photoshop.  It will be triggered whenever you open a document via Photoshop UI. I don't think it will be triggered when documents are opened by a Photoshop Action, Script, or plug-in.  If your software Photoshop passimf opens a file setting. I am convinced that the Open Document event would be triggered.

  • How can I make javascript - entry via the console action/target - easier to navigate?

    Hi all

    Someone find that navigate the continuous and uninterrupted lines constituting the blocks/paragraphs of the text in the JavaScript code, entered through the console of the target/action, is of a daunting task, especially when making some amends?

    Other than the obliques, which seem to cause problems when published and displayed through some browsers - does anyone have a cross-platform solution for separating the code in lines sensible and readable for ease of navigation?

    Thanks much for any help.

    Edge 2014.1.1

    Mac OS 10.7.5

    Cross-platform IE10 upwards browsers

    I would like to make a table of the name of each item and a table for the text.

    Example:

    Enter the code to run when the composition is fully charged here

    panels of var is ['panel_1_text', 'panel_1_text_2', 'start_text', 'panel_2_text'];.

    var = [] info

    "Through Phase 3...",

    "appropriate here text."

    "appropriate here text."

    "appropriate here text."

    ];

    for (i = 0; i<>

    SYM.$(panels[i]).html (info [i]);

    }

Maybe you are looking for

  • WARNING: iCloud library deletes the original photos on Mac

    Recently, I turned on the library to iCloud in the Photos app preferences. I chose the option "Download this Mac originals," not "optimize Mac memory" so all my original full quality photos will remain on my Mac and probably be safe. After uploading

  • 2000 2202tu my laptop become slow

    I have a hp laptop of 2202tu 2000 for 1 year, I did a restore on my laptop through the partition recovery OEM 6 months ago. But now I see that my pc is running slow too. How can I do it fast as it was when I bought the same. I use my pc for personal

  • Why should I buy my Windows XP after having been forced to restart my computer by an automatic update?

    I was forced to restart due to an update of the grubbing-up, and now it says I have to buy or sign up for my Windows XP. It comes from * I bought this years back when I built my computer. Why in the * I have to get my house for my stuff for you. I pa

  • Connection with PC and TV problems

    I have attached my Dell windows 7 PC via HDMI to my TV.  They do not communicate.  How do I please you?

  • Identify the SVCHost service with high CPU usage

    I am wanting to know how to connect to the CPU for service usage. I have a Server 2008 R2 that has a CPU spike randomly, once during a period of 24 to 36 hours. I am trying to identify what is causing this CPU spike solve problems more far. With the