custom not pulling dynamic action

Using Apex 4.2.2 on 11g

I have a standard report A1

There is a link to the A1 report column which updated the action dynamic table C1 using a custom.

The link of the report A1 column has the value javascript URL: $.event .trigger ('RefreshTrend_2', [{key_2:' #COL01 #'}]);

and there is a dynamic action RefreshTrend_2 D1, which sets the value of the graphic filter P17_KEY_2 to the value of the key_2 variable javascript and then refresh table C1

Dynamic action is customized with a type DOMObject of the document and no condition

It works fine, but when I add another combination of State/chart (report A2, table C2) with a similar dynamic action (D2), D2 is a copy of D1 with the values for the variables and chart area has changed.

The A2/C2 feature works very well on its own, D2 is fired when I click on the link in the column, but not when there are 2 dynamic actions customized / document on the page.

This column on A2 link triggers the dynamic action D2 if dynamic action D2 contains a higher than D1 sequence (if I move over D1 in the list, it will trigger, but then D1 will not fire for the link in the column on the A1)

Am I missing something?

Thank you

Kathryn

It turns out that dynamic action set to fire on the loading of the page made reference to a javascript variable not defined (page element is not filled yet at the time of the loading of the page), so everything after that is ignored and the second dynamic action does not occur.

I turned off the fire on loading the page for dynamic and all actions work

Tags: Database

Similar Questions

  • Custom not pulling field TrackwheelClick

    Hey all,.

    I have a custom field that extends to the field. I want to know when we click on the control, so I outweigh the trackwheelClick method.  However, when I use the debugger, the trackwheelClick method is never triggered.  What Miss me? Thank you.

    public class MyControl extends Field
    {
        public MyControl()
        {
        }
    
        protected boolean trackwheelClick(int status, int time)
        {
            // Never gets here when control clicked.
        }
    }
    

    Your domain is active? AFAICS in your code snippet, it is not. How do you choose the field of non-Focus?

    public MyField(){        super(Field.FOCUSABLE);}
    

    Change your constructor as in the code above, I can handle click in navigationClick in my 4.2.1 Simulator. trackwheelClick is not called because navigationClick returns true (for example, it shows that he has consumed the event).

  • APEX dynamic action - how to hide an element after the loading of the page

    Hello

    I have a form with the element Type, lesson and page.   I want to create a dynamic as action ' on page load "If Type = x don't then see the lesson and the elements of the page. .

    How can I know if Type = x don't see the lesson and the page. It does not show them.

    Please note the dynamic, action = Page load event

    Thank you

    Try adding

    When the Condition "Javascript expression."

    Value: $v ('P1_TYPE') == 'x')

  • Page cancel submission using Javascript not dynamic Action

    I build features requiring little Javascript to validate the page before being submitted and prevent sending if there are errors in treatment.  I got this job with the help of dynamic action that fires before Page submit to a condition of firing of Javascript and an action to cancel the event, and it works fine.  However, the intention is to use this feature in several pages and it would be nicer if the functionality could be implemented in Javascript (for example, the code in the page template).

    According to https://api.jquery.com/submit/ this should be possible:

    $( "#wwvFlowForm" ).submit(function( event ) {

      alert( "Handler for .submit() called." );

      event.preventDefault();

    });

    However, I can't make it work in the APEX.  Can anyone suggest a solution?

    during the presentation of the page using apex.submit () (which is probably all cases?), you can use submit it before event like this:

    $(document).on("apexbeforepagesubmit", function(){ alert("before submit"); apex.event.gCancelFlag = true; });
    

    You can find this by looking at the source code:

    page.js

    // Trigger a 'Before Page Submit' event for the document, and pass the current request value for convenience.
    lCancelSubmit = event.trigger( apex.gPageContext$, "apexbeforepagesubmit", lOptions.request );
    // Cancel submission, if the apex.event.trigger function says so (with a true return value).
    if ( !lCancelSubmit ) {
    

    Event.js

    event.trigger = function( pSelector, pEvent, pData ) {
    
          // Default to false, event cancelling should only be done if an event handler says so
          // (by setting this flag to true).
          event.gCancelFlag = false;
    
          // Trigger event
          $( pSelector, apex.gPageContext$ ).trigger( pEvent, pData );
    
          // Return the value of gCancelFlag
          return event.gCancelFlag;
      };
    })( apex.event, apex.jQuery);
    

    Also found in dynamic_actions.js

    /**
     * cancelEvent function
     * Cancels event processing...
     * */
    da.cancelEvent = function() {
    
        /* Set cancel flag in the apex.event namespace to true. This value can be used to cancel subsequent
           processing, such as in page submission to stop the page from being submitted. */
        apex.event.gCancelFlag = true;
    
        /* Set cancel actions flag in apex.event namespace to true. This value is used in dynamic
           actions processing to stop further actions firing. */
        da.gCancelActions = true;
    
        /* Call the event method stopImmediatePropagation. This prevents any event handlers
           bound to the current event from executing. It also calls stopPropagation to stop the
           event from bubbling up the DOM (if it supports bubbling), so any event handlers bound
           to ancestral DOM elements will not fire either. */
        this.browserEvent.stopImmediatePropagation();
    
        /* Call the event method preventDefault. This prevents the default behaviour of the
           event (for example prevents going to the URL of a link, if a link is clicked). */
        this.browserEvent.preventDefault();
    }; // cancelEvent
    

    It could change, but it would be weird. It works, but it is not really written in other than the one in the code documentation.

    Notice also that the event 'submit' is pulled (it would be strange if she didn't)

    //Submit the current form, defaults to "wwv_flow" if not provided in option map
    $( "form[name=" + lOptions.form + "]", apex.gPageContext$ ).trigger( "submit" );
    

    Thus, binding to 'submit' will work, and work, but note that Event.preventDefault () may NOT work depending on the browser used. For me it works in FF, does not check the others. You can try to use "return false;" instead.

  • Comparison of 2 numbers in dynamic action does not work

    Hello
    I am trying to create a customer validation between the 2 items (type number). If item1 > item2 then alert (the value of item1 should not exceed item2).
    So I created a dynamic action (lose focus) about item1 with pl/sql expression: p_item1 >: p_item2 as the condition.

    the problem is that the dynamic action never fires. When you set the condition never, he shoots very well. When I put the condition of value in the expression 1 = expression2, he never fires
    but when the value of expression1! = expression2, he shoots very well. It seems to me little matter what values I use they never match. is this a problem of format because I have no relative model
    the two elements.

    any idea on what is happening?

    Thank you

    Published by: ICeT on August 16, 2011 13:18

    Hello

    You may notice that the item values are always STRING. So comparing: P1_ITEM1 >: P2_ITEM2 is a string comparison.

    If you want to compare only the numbers that you need to explicitly type conversion: TO_NUMBER(:P1_ITEM1) > TO_NUMBER(:P2_ITEM2)

    brgds,
    Peter

    -----
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • Dynamic action does not not with the Date

    Hi all

    In my form, I created a dynamic action to be pulled on losefocus on the date of the birth column. The action returns the age in the age column. It only works if I use the date of birth hard-coded as follows:

    SELECT
    SYSDATE - AGE TO_DATE('01-JAN-2007','DD-MON-YYYY')
    OF THE DOUBLE

    It does not work if I use the actual date of entry as follows:

    SELECT
    SYSDATE - AGE TO_DATE(:P2_DOB,'DD-MON-YYYY')
    OF THE DOUBLE

    My version of the apex is 4.02 and database 11g.

    Could someone point out what I'm missing.

    Thank you
    Zahid

    Hi Zahid,

    When you want to use the values of the element of the page in a dynamic action of pl/sql, you must go to the section "Articles to submit the Page.

    brgds,
    Peter

    -----
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • Dynamic action real action is not available in the APEX 5.0

    Hi all

    We did the/import export of APEX 4.2 to version 5.0 of the APEX, but I am unable to find the real Action of dynamic Action in APEX 5.0. Can someone help me on this.

    Dynamic_Action_True_Action_Not_Available_APEX_5.jpg

    LnTInfotech wrote:

    We did the/import export of APEX 4.2 to version 5.0 of the APEX, but I am unable to find the real Action of dynamic Action in APEX 5.0. Can someone help me on this.

    Assuming that this refers to you being unfamiliar with the default constructor of app UI Page Designer in APEX 5.0. See "dynamic Page Designer action management" for more details. True/false actions appear as nodes in the dynamic Action of the left pane of the designer of Page navigator tab:

    If you do not use the Page Designer, you can move on to the familiar view of the component:

  • APEX 5: Dynamic Action do not run on DEMAND Condition = VALUE

    After migration from APEX to APEX 5 dynamic action 4.2.5 which performed in 4.2.5 won't work in 5 APEX.

    Event DA: BEFORE the PAGE is SENT

    Condition: Ask = value

    Value: SAVE

    Page contains the button SAVE, in the debug REQUEST window appears like SAVE, but DA does not occur.

    When the condition is not defined, DA works correctly in the APEX 5.

    Is this a bug in 5 APEX?

    Hey Bozo,

    Bozo says:

    How to have this in mind, can be made to run before Page submit DA specified button click?

    It depends on what you want to achieve a click of button and what you want to achieve with DA.

    The purpose of the button and DA can be combined in a javascript function or in the DA himself.

    How this can be achieved in the DA itself is:

    • Instead of shooting the DA "before submit Page', fire the DA to the click event of button. (to do this change the button action to listen for events from DA)
    • In the first real action, run everything you want to achieve with DA.
    • Write another real action, to submit the page and set the application to any value you want. (ensure that the processes we submit are conditional on the overall application, instead of the State of the button)

    Kind regards

    Kiran

  • value of the element is not common when used in dynamic action

    I'm learning the 5 apex and I wanted to create a page that would update the fields in a record by entering the unique id of the recording using a dynamic action with plsql.

    When I click on the button update the value of the element of the text uses the previous value and not the input current. The 'works' update, but the ID values are not appropriate.

    How can I make sure that when I click on the update button, the dynamic action will get the current value of the text element and not the previous (when the page was submitted)?

    I created a quick demo or what I was testing in apex.oracle.com and always gives me the same result.

    dacoellov wrote:

    I'm learning the 5 apex and I wanted to create a page that would update the fields in a record by entering the unique id of the recording using a dynamic action with plsql.

    When I click on the button update the value of the element of the text uses the previous value and not the input current. The 'works' update, but the ID values are not appropriate.

    How can I make sure that when I click on the update button, the dynamic action will get the current value of the text element and not the previous (when the page was submitted)?

    I created a quick demo or what I was testing in apex.oracle.com and always gives me the same result.

    What dynamic action event and what types of action are involved here? Provide details, or better yet share identification information of developer comments for the apex.oracle.com workspace so that we can see the demo.

    If the dynamic action executes an SQL statement or a PL/SQL process on the server that requires page updated element values in session state, specify these items as part of dynamic action Page to submit items .

  • APEX 5. Dynamic action on the CHANGE event does not work after applying the filter on IR.

    APEX 5.

    Dynamic action for the CHANGE event does not work after applying the filter on IR.

    Event: Change, selection Type: jQuery Selector, jQuery Selector: td [header = 'abc'] entry

    Real action

    Selection type: jQuery Selector, jQuery Selector: td [header = 'abc'] entry, Action: run the Javascript Code

    Is TI WHEREAS behavior?

    I know, I can work around this problem by using the Refresh event and javascript, but I prefer DA and if possible Change event.

    Concerning

    mdyla

    mdyla wrote:

    It is, how to force them reallocate dynamic Action in the event of CHANGE of the input elements after refresh of IR region.

    Set the dynamic scope of the event action to Dynamics.

  • Dynamic action: apexafterrefresh not firing

    See https://apex.oracle.com/pls/apex/f?p=57688:32

    See the discussion on Cascading LOV - dynamic action time-out

    I extended this approach to a report and another list cascading and things do not work as expected. Here are the components

    1. the list of values for X 1 is 1,2,3

    2. the list of values for X 2 is X1.1/.2/.3, cascade parent's X 1

    3. the list of values for X 3 is X 1. X 2, cascade of parents are X 1 and X 2

    WHAT SQL statement is

    with 
     l1 as (select level l from dual connect by level<=3),
     l2 as (select level l from dual connect by level<=3)
    select
     l1.l l1,
     l1.l||'.'||l2.l l2,
     l1.l||'.'||l1.l||'.'||l2.l l3,
     null link
    from l1,l2
    order by l1.l,l2.l
    

    "Link target page attributes column and the current link class = 'find' x: l1 =" "#L1 #" x: l2 = "#L2 #" x: l3 = "" #L3 # " "

    Dynamic action D1 is on fire on jQuery selector a.search with the following real click

    1 setpoint: Javascript expression $(this.triggeringElement).attr("x:l1"). Affected item: P3_X1. Remove the change event: no

    2. run Javascript code:

    $("#P3_X3").one("apexafterrefresh",function () {
      $s("P3_X3",$(this.triggeringElement).attr("x:l3"));
    });
    

    3 setpoint: Javascript expression $(this.triggeringElement).attr("x:l2"). Affected item: P3_X2. Remove the change event: no

    4 cancel the event

    In my real example, there are reports configured to refresh when X 3 changes and that part works when I change X 3 manually. I'm just unable to set X 3 with these series of dynamic action of shooting.

    Here's what I expect to happen

    1. true action 1: this sets X 1, which is updated X 2

    2. true action 2: This defines a unique event set on fire after the update to set its value X 3

    3. true action 3: this sets X 2 and updates X 3.

    This is supposed to raise the apexafterrefresh event and set the value from X 3 to x: l3, but it remains empty.

    What Miss me? I tried all sorts of things as defining the change event to delete Yes and triggering events manually. change(), change the order of actions, but nothing works. I just can't do the value of X 3 when the dust settles.

    Help? Thank you

    Hello

    had a look at your 57688:32 and copied on app # 19453 playing around.

    1. P32_X3 must only specify P32_X2 as 'Cascading LOV Parent article (s)' otherwise it will refresh when P32_X2 is changed and when P32_X1 is changed. But P32_X1 will trigger a change in P32_X2 anyway (which causes a refresh of P32_X3). I changed P32_X3 and to P32_X1 'Elements of Page to submit' in order to access the value of the LOV.
    2. You code referenced JavaScript P3_... instead of P32_... I changed to P32_...
    3. I also changed the order of the actions in your dynamic action
      1. First register your handler "apexafterrefresh" otherwise you can run into problems of synchronization
      2. Removed your action 'Set value' for P32_X2. See below.
      3. I also created a "apexafterrefresh" for P32_X2, because the definition of P32_X1 clears the value of P32_X2 and you must wait for the update cascading
      4. I also changed the JS code to use the variable auto instead of this, because within the apexafterrefresh, this will point to your agenda of the page list selection and not to the original report column.
    var self = this;
    $("#P32_X2").one("apexafterrefresh",function () {
    console.log(this, self);
    $s("P32_X2",$(self.triggeringElement).attr("x:l2"));
    });
    
    $("#P32_X3").one("apexafterrefresh",function () {
    console.log(this, self);
    $s("P32_X3",$(self.triggeringElement).attr("x:l3"));
    });
    

    Hope that gives you a direction to fix it in your application.

    Concerning

    Patrick

    Member of the APEX development team

  • dynamic action sets the value of the element, but not save to DB on submit

    I'm working on a page where the value of several to show only the page elements are defined using a dynamic Action.  They are set when the user selects a value in a list of selection (and is based on the value of the selection list).  Dynamic action is triggered on a list selection change event and then runs the real action "set the value.  The selection list displays the names of sales representative.  The three fields dynamically filled are the org structure (that is, their chain management).

    For the action to set the value, I use a defined Type of SQL statement:

    Select VP, DIR, MGR

    of SALES_ORG where SSR =: P20_SSR

    In the affected elements, I have fixed Type of selection to the 'item (s)"and the value of the Item (s) for 'P20_GVP, P20_DIR, P20_MGR.

    Dynamic action works fine for the display of the page (that is, when I select a sales representative in the selection list dynamic action properly updated only display value fields three).  This page is a form in which the user submits information relating to the rep.  When the page is sent, all fields are filled in a new record of DB with the exception of three that were populated dynamically above.  These fields get the values NULL.

    When the dynamic action updates the values in the three fields is - it does not set the value of session?  Why these fields don't are not taken into account in the submit other ideas > process Page?

    I use 5 APEX with Chrome on Mac (Yosemite).

    Thanks for the note.  I didn't only display the items could not be used in this way.  I think I'll take a different approach with the design; given that the org structure is in another table that I can simply refer to that by rep when necessary rather than saving the information uploaded to the page of the form.  The reason why I have not fill the screen only the points of loading the page is because I don't know what the values should be until the user selects a sales representative in the selection list.

    I'll change the design to one of the following:

    1) change the display only items of standard text field.  NOTE: if I make the text read-only field that causes other problems when loading (I get the message "violation of protection Session state").

    OR

    2) do not include org structure in the download folder and just refer to table org Rep when necessary.

    Thank you!

    Steve

  • Dynamic action does not not on the first attempt to load page. Work after refreshing the page

    4.2.1

    Hello

    I have a page with a list of selection Order_id and a display _item Product_name.  There is action dynamic PL/SQL that fills the element displayed when the order_id is changed. The problem is that when I opened the page for the first time, if I change the select order_id list, nothing happens. But if I refresh the page once, and then it starts work and the display_item is filled.

    No idea what could be the problem?

    Thank you

    Ryan

    ryansun wrote:

    On a more serious note,.

    1 when you load the page for the first time and try selecting the order_id, nothing don't be past, try refreshing the page once and you will see the option to display with the null value. What I do is. I have two tables

    Orders

    1

    2

    3

    Products

    1A

    2B

    2 Z

    3 C

    When I select the command 1, then since there is only one line of products, the displayed item will indicate A populous. If I select 2, since there are two product lines, I should see the list box.

    Doesn't seem to work and I'm sure, I'm doing something wrong.

    Difficult to be certain that as it appears that someone has been editing the page before you start watching (rather than copy the page experience their own copy). Your article P1_PRODUCT_NAME_DISPLAY he a point value / Expression 1 column = Expression 2 condition P1_HIDE_SHOW = 1 condition on that? Or any other condition of rendering?

    These conditions do not match the dynamic actions. They are applied only during the page see the transformation when the page is displayed first; When it is linked to another page; or after a branch to him. They are not applied dynamically during the activity of the user on the page. In this case, that the status is set to false when the page is rendered first, the same element does not exist in the page sent to the browser. If you want these items to appear conditionally because of the interaction with another user control, then you must initially return the elements and control their visibility using hide/show the dynamic actions.

  • Alertify Plugin - how to call via Javascript and not by a dynamic Action

    Hello

    Environment: Oracle APEX v4.2.1 | Oracle 11g R2 | IE8 Web browser

    Hoping someone can help, I use the plugin Alertify via a dynamic Action, but my question is, instead of use this via a dynamic Action, I actually want to make the same call I do via a dynamic Action but rather using javascript.

    So, by using a shape any JavaScript API in the Alertify plugin, I want to call an alert notification standard with the message and the delay effect until it disappears once more.

    Is it possible to call this plugin in this nature using javascript?

    Thank you.

    Tony.

    You can always use the plugin and a custom event.

    Create a dynamic action:

    • Event: Custom
    • Custom event: ALERTIFY_DELAY
    • Selection type: jQuery Selector
    • Selector: body
    • 1 real action:

    Add the following code to the section "run when Page Loads:

    window.setTimeout(function(){
      $('body').trigger('ALERTIFY_DELAY');
    }, 3000);
    

    This will cause the "ALERTIFY_DELAY" event fires after three seconds.

  • Dynamic action to execute PL/SQL that calls a JavaScript alert - does not

    Greetings,

    I'm stuck!  I use the Apex Version 4.2.2.  I have a requirement that, when the user fills Field1, I check the database to see if the value of field1 has already been used.  If it was used, I have to inform the user, but the user is allowed to reuse the value - that is to say, duplicates are allowed.  My thought is to use a dynamic action to check the onchange of value running pl/sql to check (via a function in the database) and if it returns true, use a javascript alert to inform my user value is used.  They can then close the alert and change (or not change) the duplicate value

    I did the following:

    1 wrote a PL/SQL function in my utility package in the database - we'll call it apps.my_utils.check_value_use (p_my_val in varchar2) return Boolean - it works.

    2. created a dynamic Action with the following properties for P1_FIELD1:

    Event: change

    Selection type: item (s)

    Product (s): P1_FIELD1

    Condition: is not null

    3. the dynamic Action has an action - real Action

    Action: Execute the PL/SQL Code

    Page items to submit: P1_FIELD1

    PL/SQL code:

    BEGIN

    IF apps.my_utils.check_value_use(:P1_FIELD1) = TRUE THEN

    HTP.p ("< script type =" text/javascript "> '");

    HTP.p ("alert (" this value is used ""); ")

    ');

    HTP.p ("< /script >" ");

    END IF;

    END;

    When I run the page and fill in Field1 with a value that I know is in use, I get the following error:

    Error: parsererror - SyntaxError: JSON.parse: unexpected character

    Help, please.  I already spent too much time on this apparently simple requirement.

    Thank you

    J.

    BEGIN

    IF apps.my_utils.check_value_use(:P1_FIELD1) = TRUE THEN

    HTP.p(' ');

    END IF;

    END;

    Avoid doing this. Try the following method:

    (1) create a dummy hidden element to store the result of your validation of PL/SQL. Lets call it P1_DA_ERR

    (2) in your PL/SQL block put this point hidden in the field "Page point back.

    (3) in your PL/SQL block placed the result of your validation in this element hidden as

    DECLARE
    l_err PLS_INTEGER := 0;
    BEGIN
    -- An example
    IF 1=1 THEN
    l_err := 0;
    ELSE
    l_err := 1;
    end if;
    :P1_DA_ERR := l_err;
    END;
    

    (4) add a true other "Run Javascript code" type action. The could should look like:

    if(parseFloat($v('P1_DA_ERR'))==1)
    {
    alert('Error occurred');
    }
    

Maybe you are looking for

  • Messages.app Hello fresh white Prefs 10.11

    I can't activate Messages.app Hello. It is a fresh out of the box MBAir. At run a migration of users and applications. Messages.app account prefs looks to below; Hello accounts preference is totally empty. Here's what I've tried so far... -deleted al

  • 4.0 Microsoft Math does not show me equations

    Hello. I have problems with Microsoft math 4.0, because when I click on "formulas and equations, in the Tools group on the Home tab, I don't see an equation or formula and to see them is so important. Can someone help me? How can I see them?

  • Black border - 2040ed HP Pavilion DV7 - windows 7 ultimate x 64 - (Maplestory, other games)

    Hello I played a maplestory game called for a long time as well as other games. I saw this problem several times, including with my Dell laptop. I think I got this problem since I use Windows 7 and I regret it sort of grace to these black borders. I

  • Integrated video GMA 4500 - Dual monitors?

    I recently bought an optiplex 780 through our new sales representative.  I told her that I had to be able to use two monitors with it.  In the past, we always ordered this with our other rep.  The PC came with a VGA port at the back and attaching a Y

  • 7940 phone AND IP Communicator for Agents?

    We use the IPCC Express 3.5.3. Our call centre agents currently 7940 phones with a 2nd line of the agent. They would like to keep their physical phone and also have IP Communicator on their laptops in case they need to work from home and take calls.