Dynamic Action set value

Hello

anyone explain why does not accept DA 'Set value' value & P_ITEM. the format when you use the static Type of the value assignment?

Thank you.

Hello
Have you tried using $v ('P_ITEM') in place of the ampersand - dot notation?

Kind regards

Tags: Database

Similar Questions

  • Oracle apex dynamic action set value action does not

    Hello

    I have two questions, that I am trying to solve. This is the scenario:

    (i) 4.0 on oracle 10 g oracle apex
    (II) created a form with the following page:
    -P526_SES_DET_ID
    -P526_VESSEL_ID (selection list)
    -P526_JOB_DATE (date picker)
    -P526_DAY_TYPE (list of selection with values DAY ORDINARY (if P526_JOB_DATE is a day from MONDAY to FRIDAY),)
    SATURDAY (if P526_JOB_DATE is SATURDAY) and SUNDAY/PUB. HOLIDAY (if JOB_DATE is SUNDAY)
    -P526_LABOUR_TYPE (selection list)
    -P526_SHIFT (selection list)
    -P526_NO_OF_LABOUR
    -P526_RATE
    -P526_SES_TOTAL

    (1) I created a dynamic action of the value set on the P526_JOB_DATE page element to set the value of P526_DAY_TYPE to one of the three values above depending on the day
    P526_JOB_DATE falls. Parameters are the following:

    -Action: Value set
    -Set type: SQL statement
    -SQL statement:
    Select case when (to_char (to_date(:P526_JOB_DATE,'DD-MM-YYYY'), 'DAY')
    like ' % MONDAY % ") then" DAY ORDINARY. "
    When (to_char (to_date(:P526_JOB_DATE,'DD-MM-YYYY'), 'DAY')
    like ' % TUESDAY % ") then" DAY ORDINARY. "
    When (to_char (to_date(:P526_JOB_DATE,'DD-MM-YYYY'), 'DAY')
    like ' % WEDNESDAY % ") then" DAY ORDINARY. "
    When (to_char (to_date(:P526_JOB_DATE,'DD-MM-YYYY'), 'DAY')
    like ' % THURSDAY % ") then" DAY ORDINARY. "
    When (to_char (to_date(:P526_JOB_DATE,'DD-MM-YYYY'), 'DAY')
    like ' % FRIDAY % ') then ' DAY ORDINARY. "
    When (to_char (to_date(:P526_JOB_DATE,'DD-MM-YYYY'), 'DAY')
    like ' % SATURDAY % ") then 'SATURDAY '.
    When (to_char (to_date(:P526_JOB_DATE,'DD-MM-YYYY'), 'DAY')
    like ' % SUNDAY % ") then ' SUNDAY/PUB. HOLIDAY"
    end DAY_TYPE
    of the double

    -Page article to submit:
    -Select the Type: Item (s)
    -Article (s): P526_DAY_TYPE

    The SQL statement sets the value of P526_DAY_TYPE that when I replace: P526_JOB_DATE with a date like January 11, 2010 format ' and a date is taken to
    Duration otherwise it doesn't.

    (2) want to be able to maintain the values of P526_VESSEL_ID, P526_JOB_DATE, P526_DAY_TYPE, P526_LABOUR_TYPE, P526_SHIFT after an insert action as default values for the next create another form operation.

    Like all the ideas on how to implement or to solve problems (1) and (2) would be very appreciated.

    If you want to use P526_JOB_DATE in your SQL statement add P526_JOB_DATE to the "referred to submit Page:" field.

  • 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 - set a value of element based on the selection of lines of report

    Hi people,

    Does anyone have an example how to set up a dynamic action, which could fill an element with the selected ID based on the selection of line of the report on the same page?

    Demo:
    http://Apex.Oracle.com/pls/Apex/f?p=19543:2

    If I select an item in the report, then I would fill in 'Selected ID' element with the value of the selected report EMPNO line.


    Later, I would use it for the display of parts of master / detail on the same page.

    Thank you very much
    Tomas

    For this sample page, add the following JS code to run when the page is loaded.

    $('.highlight-row td').click( function(){
      //fetch record id from the cell contents of first column in row
      id = $(this).parent().children('td:eq(0)').text();
      //set page item to selected id
      $('#P2_SELECTED_ROW').val(id);
    });
    
  • Tabular form using dynamic Action set

    I have a tabular presentation created using APEX_ITEM.

    That is to say. APEX_ITEM. SELECT_LIST_FROM_LOV(3,NVL(D.FK_ATTENDANCE_CODE,'%null%')

    I want to use a dynamic Action to set the value based on the value of a hidden page element.
    I created a Page element 'P1358_HOLD_ATTENDANCE_CODE', and I can see he's up to the correct value.

    I tried to create a dynamic Action (run Javascript) to set the form of tab selection list item (f03), but it does not work.

    Here is what I tried:

    var line = $x_UpTill (this.triggeringElement, 'TR');
    var otherElement = $(' input [nom = "f03"]', ligne) [0];
    otherElement.value = $x('P1358_HOLD_ATTENDANCE_CODE').value;

    Any ideas?
    I know, as a backup, I could put the ID = when creating elements in a tabular form so that all the lines are different, but I hope that the JQuery can do it more easily.
    Thank you

    Did change selection that I said fix the prob?

    If this isn't the case, him DA is without a doubt was fired at your event?

  • dynamic action - hide values if the element in the array?  syntax error (I think).

    Hello world

    I have an application page that contains a lov (gears).  If a particular device is selected, I want to hide other fields.   The value of the machine could be one of many.  I created a dynamic action using javascript... but I'm really not familiar with javascript and can't seem to make it work.   Note, there is a line below commented that compared to gear to the value of "500".  This line works and mask fields... but I need to make it work for all possible values.  Any help would be really appreciated!

    Thank you, Karen

    var no_size is ["000", "300", "320", "400", '500', '501', '550', "620", "630", "650", '662', '700', '750', '760', "803", "811"];.

    $(". {Gear") .each (Function (index)}

    If ($v (this) == '500')
    If ($.inArray ($v (this), $no_size)) >-1
    {
    var rowTR is $x_UpTill (Thi, 'TR');.
    $(rowTR).find(".) G_SIZE"). Hide();
    $(rowTR).find(".) Stretch"). Hide();
    $(rowTR).find(".) Mesh"). Hide();
    }

    });

    This seems to do the trick.

    var no_size is ["000", "300", "320", "400", '500', '501', '550', "620", "630", "650", '662', '700', '750', '760', "803", "811"];.

    $(". {Gear") .each (Function (index)}

    If (no_size.indexOf ($v (this)) > - 1).
    {
    var rowTR is $x_UpTill (Thi, 'TR');.
    $(rowTR).find(".) G_SIZE"). Hide();
    $(rowTR).find(".) Stretch"). Hide();
    $(rowTR).find(".) Mesh"). Hide();
    }
    on the other
    {
    var rowTR is $x_UpTill (Thi, 'TR');.
    $(rowTR).find(".) G_SIZE"). Show();
    $(rowTR).find(".) Stretch"). Show();
    $(rowTR).find(".) Mesh"). Show();
    }
    });

  • Dynamic action - item value passed is null

    Hello

    I use 4 Apex and having a problem with a DA. I need to get a new registration, based on a category number.

    Here is the code:
    begin
    wwv_flow_api.create_page_da_event (
      p_id => 4693110888588071 + wwv_flow_api.g_id_offset
     ,p_flow_id => wwv_flow.g_flow_id
     ,p_page_id => 2
     ,p_name => 'Get Next Scheme Number'
     ,p_event_sequence => 5
     ,p_triggering_element_type => 'ITEM'
     ,p_triggering_element => 'P2_SCHEME_CAT_CODE'
     ,p_bind_type => 'live'
     ,p_bind_event_type => 'change'
      );
    
    wwv_flow_api.create_page_da_action (
      p_id => 4693422739588087 + wwv_flow_api.g_id_offset
     ,p_flow_id => wwv_flow.g_flow_id
     ,p_page_id => 2
     ,p_event_id => 4693110888588071 + wwv_flow_api.g_id_offset
     ,p_event_result => 'TRUE'
     ,p_action_sequence => 10
     ,p_execute_on_page_init => 'Y'
     ,p_action => 'NATIVE_SET_VALUE'
     ,p_affected_elements_type => 'ITEM'
     ,p_affected_elements => 'P2_SCHEME_NO'
     ,p_attribute_01 => 'FUNCTION_BODY'
     ,p_attribute_06 => 'return SR.GET_NEXT_SCHEME_NO (:P2_SCHEME_CAT_CODE);'
     ,p_attribute_08 => 'Y'
     ,p_attribute_09 => 'N'
     ,p_stop_execution_on_error => 'Y'
     ,p_wait_for_result => 'Y'
     );
    null;
    end;
    /
    The function call connects to the DB and here is the result indicating that a NULL value is passed:
    Timestamp        Package          Unit                     Typ Log Message
    ---------------- ---------------- ------------------------ --- ---------------------------------------------
    20.00.29.067     SR               GET_NEXT_SCHEME_NO       I   Begin - 1
    20.00.29.068     SR               GET_NEXT_SCHEME_NO       D   Get next scheme no for:
    20.00.29.068     SR               GET_NEXT_SCHEME_NO       E   NDF: Could not find a sequence for scheme prefix
    Just so you see that it works:
    sr:plj-Bld@XE> select sr.get_next_scheme_no('SchCatSub') from dual;
    
    SR.GET_NEXT_SCHEME_NO('SCHCATSUB')
    ----------------------------------
                                213501
    
    1 row selected.
    And the newspaper:
    Timestamp        Package          Unit                     Typ Log Message
    ---------------- ---------------- ------------------------ --- ---------------------------------------------
    20.22.09.532     SR               GET_NEXT_SCHEME_NO       I   Begin - 1
    20.22.09.534     SR               GET_NEXT_SCHEME_NO       D   Get next scheme no for: SchCatSub
    20.22.09.534     SR               GET_NEXT_SCHEME_NO       D   Returning: 213501
    20.22.09.535     SR               GET_NEXT_SCHEME_NO       I   End - 1
    Any ideas why Apex does not pass the value of the element to the function call?

    Thank you
    P

    You must set 'Page to present' to be 'P2_SCHEME_CAT_CODE '.

    This takes the value from the browser and affects it in session state, which makes available to your PL/SQL

    Kind regards
    Scott

    blog: [base url - oracle.com] base - oracle.com
    Twitter: [url twitter.com/swesley_perth]@swesley_perth

  • APEX 4.2 limiting size of the value dynamic Action

    Hi all, I'm using ApEx 4.2.5 with 11 g BD and stumbled on this problem.

    I'm trying to set the value of a div within an HTML region. To do this, I use one set dynamic Action launched by a custom event "search" when user press enter or click OK to a search bar. I also use the PL/SQL function as set type body.

    I tested it and it works fine except if the content of the value is large enough (about 30,000 characters or more). I can't find any information about a size limitation for the return value of this type of package. I get this error code: ORA-06502 when I'm looking for a big content, and it seems that this error may occur when "you attempted to assign a value to a numeric variable, but the value is greater than the variable can handle", but I'll be back a PL/SQL CLOB variable in a div, so I don't see any kind of limitation. I think the limitation can be in the call made by apex in the background AJAX...

    I need help on this, thanks in advance.

    Gaël

    Hi gados12,

    gados12 wrote:

    OK, I tried something and the result is weird.

    I created a pakaged function to retrieve the right HTML content that is stored in my CLOB column (because I reached the limit of characters for PL / SQL code in dynamic action)

    So I called my function (allows to name it FNC_GET_SEARCH) my previous dynamic Action Set value. I still get the same error with large HTML content. However... it is there, it's weird.

    So that means the error is not my FNC_GET_SEARCH function, but the dynamic Action itself... So there must be some kind of limitation with this kind of dynamic action?
    Is it because the dynamic action to set the value using the package HTP in the background?

    The DA type 'Set Value' is for session state implementation and display the value of an element of page APEX value that is defined internally as VARCHAR2 (4000).

    As a result, you get the above error. Use the approach mentioned above to manage CLOB based rendering html.

    Also of your FNC_GET_SEARCH function for the display unit test error message.

    Kind regards

    Kiran

  • How do dynamic actions using work to set the value in all browsers?

    I'm having a problem of incompatibility between browsers with dynamic actions to help to set the value.  Dynamic action works like a charm on Chrome but has no effect on IE or Firefox.  The code in oracle.apex.com and here are the credentials:

    Workspace: DDBA

    Username: [email protected]

    Password: redtruck12

    These codes is on page 3 and here are the details:

    There are two lists of report (Standard and special) and some reports require additional information provided in the lists of selection or text boxes.

    If the user selects a report select Standard requiring a list/text box, then the dynamic action sets the value of the special reports to NULL (and vice versa).

    Dynamic action is to prevent a simultaneous Standard reports and special selection.  To see how it works on Chrome, follow these steps:


    1. Run the Page 3
    2. Select the "Search report" option in the list Report Standard .  A text 'Search criteria' box
    3. Select the option 'Release report' in the list of special reports .  A selection list appears and disappears from the text box 'search criteria '.

    If you do the same on IE or Firefox, the text box does not disappear.

    Hi Edward,.

    Please check page 4 of your app, I made a copy of your page and made a few changes:

    I have set up an example of dynamic action 1 this hanles the report and special report selection list.

    Dynamic action games, select the value of the selection list and he accompanies in detail the report lists to null and then submits the page.

    For this I have deleted the page submit events to the time the report and special report select lists. Instead I handed them a HTML class. The dynamic action is triggered by a change of this category of html.

    When the trigger is the report selection list, select special report is set to null. Also underlying selection sub lists are set to null.

    When the trigger is the special report selection list, the selection of the report is set to null. Also underlying selection sub lists are set to null.

    The two end of the action with a "Send" page to manage the show and hide appropriate items. Note that there is a lag in time due to the submission of the page. As I have suggested, it would be treated better by a refresh of the region. On the other hand you depend on now submit for the continuation of the treatment of your page. With the help of an update of the region would require a work more javascript and cost more redisgn of your page. If you need IE8 support, additional javsascript likely to cause other unexpected behaviors. In other words, a page is maybe in your case probably better then an update of the region after all.

    I checked this page 4, Chrome, Firefox and IE (latest version) and I get the same behavior in all browsers.

    Kind regards

    Vincent

    http://vincentdeelen.blogspot.com

  • Dynamic action to set the value to select the text box list

    Hello

    I want the value in the list box select text box i.e list selection with 5 static values and on the user's selection, this value must be added in a box.

    I am using dynamic measurements. I tried with dynamic action and created the change list box select evnent but now how to set the value of the selection list to
    text box that I don't know.

    Help, please.

    Thanks in advance

    Hello

    I changed the dynamic on this page action to make it work now. I changed the "value Type" action 'Set value' 'Expression JavaScript' and "JavaScript Expression" do the following:

    $v(this.triggeringElement)
    

    This example gets the value of the page element 'DESPROGES', bypassing the server for nothing, as you did before.

    I hope this helps. Let us know if you have any other questions.

    Kind regards
    Anthony

  • Dynamic action - defining the value of affected parts

    Hello

    I'm a little trouble trying to set the value of several items affected in dynamic Action (refresh the number of the part to Page 2). Page 2 I want the user to select the order number and fill in the items combines automatically, for example part number Descr. I can make it work for Part_Number, but the same value appears when I add P2_DESCR to items assigned to set the value. I'm probably doing something really stupid!

    http://Apex.Oracle.com/pls/Apex/f?p=11536:2

    Kind regards

    Mickey

    Hi Mickey,

    It is not as easy as it should be, even. You certainly do not make something stupid at all!

    Currently the action 'Set value' support only 1 distinct value. You might have other 'Action' within the same dynamic action that returns the other element you want, but it's inefficient, you need to make 2 round trips to the server to retrieve each value. We are looking for the opportunity to put multiple values without needing more trips to go back out of the box in a future release, but for now I think the best approach is to use a custom mix of dynamic measurements, JavaScript and a level of page AJAX callback.

    For this example, I use the EMP table, where the user selects the number and the name of the employee and employment are returned, but the technique can be used for your situation.


    1. Add a page 'AJAX Callback' called 'GET_EMP_INFO', make the type "PL/SQL" with a "Point of process" of "On Demand - run this process when requested by AJAX ' and add the following code:

      begin
          for c in (select ename, job from emp where EMPNO = to_number(:P1_EMPNO)) loop
           apex_util.set_session_state('P1_ENAME', c.ename);
              apex_util.set_session_state('P1_JOB', c.job);
              /* Add more set_session_state calls here if you want to return more item values */
          end loop;
          apex_util.json_from_items('P1_ENAME:P1_JOB');  /* Add more here for returning more values */
      end;
      

    2. Create a dynamic action "Advanced" (because we need to use the action "Run JavaScript Code"), with the following attributes:

      • 'Change' - to the fire of the dynamic action every time the number value used change event.

      • Selection of Type 'Article (s)' - to be able to select the element of page employee number.

      • Article (s) "P1_EMPNO" - the page employee number element.

      • Real Action "to execute JavaScript Code. If you want details on the loading of the page as well, make sure that the 'Fire when loading the Page' checkbox is checked. Add the following "Code":

        var get = new htmldb_Get(null, $v('pFlowId'), 'APPLICATION_PROCESS=GET_EMP_INFO', $v('pFlowStepId'));
        get.add('P1_EMPNO', $v('P1_EMPNO'));
        gReturn = get.get();
        json_SetItems(gReturn)
        get = null;
        





    So, basically, that's all. I recommend this approach for now, until better support us in native mode to set multiple values, or a plug-in dynamic action arises that does just that!

    Hope that helps.

    Kind regards
    Anthony.

  • How the dynamic Action to update several items based on a JavaScript Expression producing a table?

    Using APEX 4.2.

    I have the list of selection using a LOV which returns a display value and a value separated by a comma e.g. return 'reserved to items' and "66,88" or "Available items" and "90,23".

    I want that return values for example "66,88" to be assigned to two my form fields.

    I have a dynamic action that fires when the field with the changes of the list/select-LOV. I am using an action of 'Set value' and set 'Expression JavaScript' with the expression itself type value ' $v("P1_MY_SELECT_LIST").split(",") and using Type "Article (s)' selection and listing the two points that I want to set as the items in question (from the description of the JavaScript expression field it appears that a table of the results would be assigned to the changed items , in the order.

    However, the original value of the LOV return value is passed to the first of the elements concerned (complete with the comma if the original return value was of the form '10')

    If I add more REAL action of the JavaScript "alert (" HELLO "+ $v ("P1_MY_SELECT_LIST") .split (", ") [0] +" WORLD "+ $v("P1_MY_SELECT_LIST").split (", ") [1]" ") I * see two expected values.»

    Any ideas what I could do wrong?

    The action 'Set value' affects the value specified to all affected elements: a value to one or more items. To set a different value at different points, you need several actions "Set value", or simply use javascript to do it in one.

    Even if you use a javascript expression that corresponds to a table, the table is just being converted to a string again. It creates a mapping of some sort. That is why for example with '10', she also translated as such. Actually you set this value to these two elements: ' 10, ".split(",").toString () (implicit in the chain of course).

    The code makes it very obvious that it doesn't handle values, as described in the help of the element. Aid is not correct or is the implementation simply not here yet?

    Just look at the javascript for dynamic actions, images/libraries/apex/dynamic_actions.js, service da.setValue directory file:

        function _setValue( pValue ) {
            lAffectedElements$.each( function( i ) {
                // Set all affected elements to the value passed
                $s( this, pValue, null, lSuppressChangeEvent );
            });
            /* Resume execution of actions here and pass false to the callback, to indicate no
            error has occurred. */
            da.resume( lResumeCallback, false );
        }
    

    And when you use a javascript expression:

        } else if ( lSetType === "JAVASCRIPT_EXPRESSION" ) {
            _setValue( lJavaScriptExpression.call( this ));
    

    It's pretty simple. (and this is checked on apex 5. It's the same on 4.2)

  • 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

  • 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

  • Dynamic action problem

    Hello

    I am creating a dynamic action that should fire when a certain value is selected in a Select list. If the value selected is equal to a value from the database, then should display a checkbox. If it is not equal to a value from the database then the box should not show.

    I have the list select (PItem) which is filled by the LOV:

    Select the tableA orderby id id;

    Then I have a checkbox (PCbox) I created.

    I created a standard dynamic action on PItem with a condition that the element must be equal to the output of a select query:

    Select the id from tableA where id =: PItem and other = "Y";

    I applied this to the PCbox.

    If the check box to display only when an id is obtained from the database via the select query. However, this does not work. When I put a value such as 8 in the box of 'value' for the condition "equal to", it works fine. If the box never displays.

    Any ideas on how to solve this problem?

    Thank you

    Hello

    You can accomplish this by creating an item of assistance PItem2.

    Fill it with dynamic action "set" using the query
    Select the id from tableA where id =: PItem and others = 'Y '.
    to change your selection PItem list event.

    Then create a Show/Hide dynamic action on the change event of the item of assistance PItem2 to a condition of 'not null' that will allow to show or hide the PCbox checkbox.

    Kind regards
    Erik-jan

Maybe you are looking for