Service update in relation to the dynamic Action

Hello

Oracle 11 g 2, APEX4.2.4, Oracle HTTP Server 10g

I have a report:

SELECT empno, ename, sal, APEX_ITEM. POPUPKEY_FROM_QUERY (1, deptno, 'SELECT dname, deptno FROM dept') department.

saveme null

WCP

Image 2.png

I want to click on the link "saveme" and update the value of the Department of this record with AJAX. (Execute the pl/sql in DA)

Can I get the primary key of the record and assign an element with DA. (P24_EMPNO)

can I run a PL/SQL in DA and want to update the value of the Department which has been changed.

It's my PL/SQL in DA (PL/SQL execution):

Start

because me in 1... apex_application.g_f01. Count

loop

Update emp

Set deptno = apex_application.g_f01 (i)

where empno =: P24_EMPNO; -I can gee the value of PK and place it in this article

;

end loop;

end;

Image 003.png

Any idea please?

rayanico wrote:

I get the EMPNO value like this:

Add the attribute for link attributes: id = "" #EMPNO # "so my link looks like this:"

then I get this by javascript and set it on the P24_EMPNO.

so, I have KP. current

Hmmm. I expected that you would be using jQuery crossed...

but, on my Popup LOV:

Edit users and I should get the current value of popup LOV.

as you know, is not an ELEMENT, and I can't do it like EMPNO.

How can I get the value of that?

Using the route above jQuery in a dynamic action step Execute the JavaScript Code :

var deptNo = $(this.triggeringElement).closest('tr').children('[headers="DEPARTMENT"]').find('input[name="f01"]').attr('value');
apex.item( "P24_DEPTNO" ).setValue(deptNo);

Tags: Database

Similar Questions

  • Cannot perform the insert/update on the form of tables, due to the dynamic action

    Hi all

    I created a dynamic action that calculates multiple cells in a table.

    This feature works well, when I change the value of the associated cell then the computed value is changed by the dynamic action.

    But I am not able to insert or update the line in a table when the dynamic action is enabled. When I put the condition 'Never', then the line is inserted or updated without any problems.

    All guess where is the problem?

    Apex version: 4.1.1.00.23

    Jiri

    Nina wrote:

    I don't know why the 123,40 value (or other) is set to the next item in line (f09, fsc, etc.)
    >

    What is hidden and generated Apex elements are always included in the last cell (td) of the line. Thus, it has nothing to do with the next item, only the last cell.
    If you see the last cell of the 888 Page you will see probably the same type = "hidden" entries here also.

    Your problem is not related to the HTML fragment to the last cell in the row showing all those extra items, it's somewhere else.

    Oh, here comes the jQuery selector:

    var clickedRow = $(this.triggeringElement).closest('tr');
    
    $(clickedRow).children('td[headers="SAL"]').find("input").val(myCalculatedTotal);
    

    SAL, COMM, w/e. here you will find the TD with headers = "COMM" and all the input fields and the value of all the entries in total calculated. Your selection is not precise enough in this case.
    So, target the specific entry.
    With the code example:

    
    
    
    
    
    
    
    
    

    change the switch on

    $(clickedRow).children('td[headers="SAL"]').find('input[name="f08"]').val(myCalculatedTotal);
    
  • Navigation of the page with the dynamic action button.

    Hi all

    I use apex 4.2.6 on windows 8.1

    I create a button with the dynamic action.

    When the end user, click on the button, I want to access a page.

    How to do this?

    I created a branch of this button to access the page 10 on SUBMIT AFTER TREATMENT CALCULATION VALIDATION.

    but no navigation happens.

    they code plsql works well that is put into the dynamic action, but the page is not navigate.

    kindly guide me.

    Kind regards.

    Maahjoor wrote:

    I create a button with the dynamic action.

    When the end user, click on the button, I want to access a page.

    How to do this?

    I created a branch of this button to access the page 10 on SUBMIT AFTER TREATMENT CALCULATION VALIDATION.

    but no navigation happens.

    they code plsql works well that is put into the dynamic action, but the page is not navigate.

    If you want to run the PL/SQL code and creates a branch to another page, why do you use a dynamic action? The easiest way to do this is the button send page, the PL/SQL to run as a process after submit (potentially conditional, click on the button) and the page navigation to achieve using a plug (once again, perhaps conditional on the button that is clicked).

  • Confirm the dynamic action does not not as expected in the APEX 4.2.5

    This looks like a bug in APEX 4.2.5.  I have a page with a "Cancel" button that redirects to another page.  There is a dynamic action that fires on the button with a confirmation action and the text ' are you sure?  However, if the user selects OK or cancel in the confirmation dialog box makes no difference - the redirect is always performed.

    I found this question after the migration of a page that worked to 4.1.1-to-4.2.5.00.88 APEX and were also able to replicate on apex.oracle.com here:

    https://Apex.Oracle.com/pls/Apex/f?p=19896:2

    (Press the Cancel button in the top right of the page redirects to page 1, regardless of the user's response to confirm the popup.)

    I don't need someone to suggest the alternative code, I know how to build my own confirmation processing.  I want to just raise this as a bug as possible and see if there is a solution to make the dynamic action works as it should.

    NB I found this in the patch notes for 4.2.5.00.88 on a fix for a similar problem:

    http://www.Oracle.com/technetwork/developer-tools/Apex/application-express/Apex-425-patch-set-notes-2186274.html

    15984978

    Dynamic action front-Submit with a confirmation message does not

    Hi Tony,.

    I think the problem is that the action of the button is defined as 'Redirect page in this Application', but it must always be "defined by the dynamic Action" as soon as you have set dynamic actions 'click' to a button. Normally, which is automatically changed as soon as you create your first dynamic action of a button, and I just confirmed by creating a test button in your application that has been defined as «Redirect...» ». After that I created a dynamic action the action of the button is set to "defined by the dynamic Action.

    Is it possible that you have modified the action of the back button to «Reorient...» » ? The question why «redirect...» "does not work, it's that we cannot guarantee in what order the browser will process click on events defined with onclick in the tag button itself and those events attached as a click event handlers. This is why it is necessary that everything is defined as dynamic actions. Only in this case you will be able to cancel the treatment.

    Concerning

    Patrick

    Member of the APEX development team

    My Blog: http://www.inside-oracle-apex.com

    APEX Plug-Ins: http://apex.oracle.com/plugins

    Twitter: http://www.twitter.com/patrickwolf

    Post edited by: Patrick Wolf

  • Redirecting to a page after the dynamic action

    I stated a dynamic action of a button (its dynamic action of pl/sql). After its been pressed it fills a line in a table.

    I want to redirect it to another page, once completed the dynamic action. How can I do?

    PL/SQL D.A. have an indicator expected result, make sure that is selected.

    Then, action of true of JavaScript:

    Window.Location.href = ' & APP_ID.: 1: & APP_SESSION. :::'

    or simply add a real action of page submit and manage the re - run by a branch of the page?

  • Redirect button AND perform the dynamic action

    Hello

    I use Oracle 11 g and Apex 4.2.2

    It could be a matter of beginners (but that's what I'm ;-)) but I'll ask anyway.

    I created a button and can "redirect to the Page in this application" in the section "Action when the button clicked" or select "defined by the dynamic Action."

    Is there a way to select "Redirect."... "AND run the SQL Code?

    This is exactly the situation that I was considering. You start at the apex (which means don't not offensively or anything like that) and so the concept of session state can still be fresh for you. Telling me where you're just complicates things for yourself.

    Why do you, or makes you think, that you need to run plsql in dynamic action first and then redirect the page?

    Running code plsql already involves tracking session state and would require the value of the required items on the server. Running WHAT PLSQL is on the side server, if a call should be made. Given that you want to redirect afterwards, the call should happen synchronously, IE make the browser wait the result in order to continue to the next step. A redirect will just tell the server to send the new page to you.

    So why would not just use a send page? A page sent will submit all values of item on the server and thus session state. You can use the values of calculation and validation processes and never worry about having properly put it. You can filter out inappropriate process etc. According to the values of query (for example submit) so no problem there. Finally, a branch should redirect you to the target page. Remember, a branch is a part too and is essentially a redirect server-side. Find yourself on your new page without problem really and just send 1 page (send page, get another back essentially).

    That said, I simply don't consider a dynamic action. It is useless to laregely here and creates more problems than is useful to review more.

    What you have now is to redirect the client to another page, but in the process, you have lost everything from the original page. No values are stored in the session to all State: no save manual to submit State or session page. Add the element to the redirect link doesn't work either, as the link is built during rendering and is not dynamic (so no ' regenerated' link when you click it).

    Again, I advise you to:

    -put the button to send the page

    -create a process after you submit and run your plsql code

    -create a branch to a point after the process and set it to redirect to the target page

    or

    -put the button to send the page

    -create a branch set up to redirect to the target page

    -create a process on the target page and run your plsql code (but be aware that it may have to be executed conditionally)

    There are several traps on session state, so when you feel better grasp it. Page submits are not all that bad.

  • 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)

  • helps with the update of tabular form using dynamic Action

    Hello world

    I'm trying to simplify a tabular presentation based on a collection so that it uses more dynamic actions that will be ultimately more easy for us to debug.

    Our tabular presentation is based on the query:

    SELECT
    apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow",
    seq_id,
    seq_id display_seq_id,
    c003,
    c004,
    c005,
    c006,
    apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit,
    apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0','  -- Select Favorite --  ','f08_'||seq_id,'') Disposition,
    apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear,
    apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity,
     
    apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price,
    
    apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice
    ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars,
     decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished,
    c014,
    c015,
    c016,
    c017 additional_measure_flag,
    decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY,
    decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT,
    c024 fins_attached,
    apex_item.textarea(28,c028,3,null,'class="hms_info"','f28_'||seq_id,'') Explanation,
    decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','class="hms_info"''onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale,
    c030,
    c031,
    c032,
    c033,
    c034,
    c035,
    c036,
    c037,
    c038,
    c039,
    apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;" class="hms_info"
    ',null,null,null,'f40_'||seq_id,'')  HMS_AREA_CODE,
    c020 hms_flag,
    apex_item.text(41,TO_NUMBER(c041),5,null, 'class="hms_info"','f41_'||seq_id,'') Sale_Price,
    c042,
    c043,
    c044,
    c050 shark_flag
    from apex_collections
     where collection_name = 'SPECIES_COLLECTION' order by seq_id 
    

    Note that many of the fields referenced are c0xx... and really serve as place holders so that the c0xx = fxx.  It's awkward, like every time that a movement or move a column, it upsets the fxx value.   So, I tried to use the CLASS if possible.

    I have a dynamic action that had worked perfectly, until I moved one of the columns... and now, it seems not to work when I'm trying to update anything with the HMS_INFO or SHARK_INFO class.  Grrr.

    dynamic action: CHANGE COLUMN

    event: CHANGE

    selection type: JQUERY SELECTOR

    jQuery selector: input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], input [name = "f24"], textarea [name = "f28"], select [name = "f40"], input [name = "f41"]

    true action1: defined value, expression javascript, set P110_ID = this.triggeringElement.id

    true action2: defined value, expression javascript, set P110_VALUE = this.triggeringElement.value

    true action3: run pl/sql,.

    declare
      v_attr number;
      v_seq number;
    begin 
      v_attr := TO_NUMBER (SUBSTR (:p110_id, 2, 2));
      select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
     
      safis_collections.update_column(v_seq,
                                      v_attr,
                                      :p110_value);
    end;
    

    the safis_collections.update_column package is:

    procedure update_column(v_seq in varchar2,
                            v_attr in number,
                            v_value in varchar2)
    is
    begin
       apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION',
                         p_seq => v_seq,
                         p_attr_number => v_attr,
                         p_attr_value  => v_value);
    apex_debug.message('updated column. seq='||v_seq||' attribute='||v_attr||' with '||v_value);
    
    end;
    

    I wonder if there is a way to make the CLASS in my JQUERY SELECTOR, so something like reference entry [class = "HMS_INFO"], input [CLASS = "shark_info"]... and if so, what happens if a single item in the class is an option button and the other is a selection list and the other an element?

    is it possible to not have to rely on the fxx.  Currently, my collection columns map to the investment in the form of tables... sense, c024 = f24... because I placed c024 to be the 24th editable column, but this seems crazy.  Is there a simpler way?  I'm just learning class, then maybe there is something extra, or rather that I could use...

    any help is appreciated.   Thank you!

    I think I have solved the problem.

    dynamic action: CHANGE COLUMN

    event: CHANGE

    selection type: JQUERY SELECTOR

    jQuery selector: input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], .shark_info, .hms_info

    true action1: defined value, expression javascript, set P110_ID = this.triggeringElement.id P110_VALUE POINT KEYS

    true action2: run pl/sql code

    begin
    null;
    end;
    

    items to submit page: P110_ID

    true action3: defined value, expression javascript, set P110_VALUE = this.triggeringElement.value P110_VALUE POINT KEYS

    true Action4: value: PL/SQL expression, the value P110_SEQ = rtrim (substr(:P110_ID,5,4),'0 ') CONCERNED POINT: P110_SEQ

    true Action5: run pl/sql code

    declare
    
      v_attr number;
    
    begin
      v_attr := TO_NUMBER (SUBSTR (:P110_id, 2, 2));
    
      apex_collection.update_member_attribute
                       (p_collection_name      => 'SPECIES_COLLECTION',
                        p_seq                  => :P110_SEQ,
                        p_attr_number          => v_attr,
                        p_attr_value           => :P110_VALUE);
    
    end;
    

    items to submit page: P110_ID, P110_VALUE, P110_SEQ

    true action6: refreshment area

    I think it is the combination of the use of pl/sql expression to calculate P110_SEQ and also your tip on TRUE ACTION2 to submit the item that did the trick.

    Thanks Kofi, for your patience and help!  It was great.

    Ugh... on the next issue.

    Karen

  • Show / hide the dynamic Actions does not work in Windows 7 IE10 and APEX 4.2.1

    Hello

    I have a page in the APEX 4.2.1 reactive Blue theme, where show or hide page elements based on changes to other page elements and their values, in terms of JavaScript expression.

    It's that everything works well in Chrome 31.0.1650.63 m and 25.0.1, Firefox but not Internet Explorer 10. I thought it might be linked to this solution to the problem of Ajax IE10 | Code of Jason and tried their recommendation, but appears not to have contributed.

    Help please!

    Thank you

    Alex.

    I found the problem and it was my fault. One of my dynamic actions using JavaScript expression conditions was missing quotes in $v ("P1_ITEM1"), breaking the rest of the related JavaScript code. Chrome and Firefox did not care, but IE seems to be less tolerant of mistakes like that.

    Scott, thanks anyway. It is useful to know that I have that option as well.

  • Show only the value not save to the database based on the dynamic action

    Nice day
    I have a select box with products and dynamic action that updates a single display element with the price, based on the selection of products.
    Once the selection is made and the page is submitted, I noticed that the price is not stored in the database. If I change the display
    only the value of a text box, the data is saved. This is expected behavior? If so, can I add something to the text box to make it uneditable?

    Thanks for any help you can provide.

    Version is Application Express 4.1.1.00.23

    Steve

    stmontgo wrote:
    Hello
    Thanks for your advice. I changed the STATE of SESSION SAVE Yes with the other values remains the same, as they met to your recommendations.
    When I change the value, I get the error below. It's maybe because the value is taken from a dynamic action?

    Yes. That would mean there isn't an item "view only". The value is changed by the browser.

    You might change view as textitem and set read-only by adding the ReadOnly attribute to the property attributes of HTML form elements .

  • With the help of JavaScript condition in the dynamic action of JQuery selector

    Hi guys,.

    I have a Setup master detail on a page.

    The detail section, I have a tabular presentation.  One of the fields is a selection list.  The first record in the select contains the value * not * that has a value of primary key for the 1.  I have a distinct region with a simple text field where the user can insert a value into the table if the value does not exist.

    I want than the region of text element to only appear if the value * not listed * is selected.

    I managed to make it work when the value is selected with the help of dynamic action with a bit of JQuery and JavaScript by setting the ID on the selection list to 'create' and have the following in JavaScript $(this.triggeringElement) .val ()! = 1 in the JavaScript for dynamic action condition shows it or hides the region of 'create' and that works well.

    However, if the secondary table is empty before the detail records were created (nothing selected in triggering jQuery Selector) the region of create is displayed when I don't want it.

    I guess I need some sort of NVL in JavaScript condition?

    I use APEX v4.2.

    Any advice would be appreciated.

    Chris

    Cashy wrote:

    I have a Setup master detail on a page.

    The detail section, I have a tabular presentation.  One of the fields is a selection list.  The first record in the select contains the value * not * that has a value of primary key for the 1.  I have a distinct region with a simple text field where the user can insert a value into the table if the value does not exist.

    I want than the region of text element to only appear if the value * not listed * is selected.

    I managed to make it work when the value is selected with the help of dynamic action with a bit of JQuery and JavaScript by setting the ID on the selection list to 'create' and have the following in JavaScript $(this.triggeringElement) .val ()! = 1 in the JavaScript for dynamic action condition shows it or hides the region of 'create' and that works well.

    However, if the secondary table is empty before the detail records were created (nothing selected in triggering jQuery Selector) the region of create is displayed when I don't want it.

    I guess I need some sort of NVL in JavaScript condition?

    I use APEX v4.2.

    Simple solution is to hide the region containing the element of text by default, using the style = "" view: no ' in the property of the attributes of the area in the region. " It will be always hidden when the page initially, but its visibility will be controlled by the DA subsequently.

  • Validation against the dynamic Action

    Hi all

    I have a Submit button which is dynamic in Action, when we click on this button, that pl/sql code is executed.

    Also, I wrote a validation on text box saying that it can not be null. But when I press Submit button dynamic action only to run but not Validation.

    Here is the page, it includes two regions, first region button does not have a dynamic Action, so it is prompting validation error, where, as the second region button is not. Help, please

    https://Apex.Oracle.com/pls/Apex/f?p=9055:2:3349793619276:

    Workspace: KUMAR82

    User: Kumar62

    Pass: Kumar #1

    Thank you

    Kumar.

    Hi Kumar62,

    Kumar62 wrote:

    I have a Submit button which is dynamic in Action, when we click on this button, that pl/sql code is executed.

    Also, I wrote a validation on text box saying that it can not be null. But when I press Submit button dynamic action only to run but not Validation.

    Here is the page, it includes two regions, first region button does not have a dynamic Action, so it is prompting validation error, where, as the second region button is not. Help, please

    Check your 9055 Application-> Page 2. Your problem is solved for the button 'submit for approval '.

    Here are the changes made on page 2:

    • Added real action in your dynamic action to send the page with the query 'SUBMIT' with the following settings:

    Action: Send the Page

    Application/button name: SUBMIT

    See the process facility: No.

    Note: Postings are only performed after the page. The release of DA button was running just your logic, but in order to process the postings you submit page.

    • Changed condition for validations:

    Condition of removed the "when Button Pressed" and game

    Condition type: request = Expression 1

    Expression 1: SUBMIT

    Kind regards

    Kiran

  • A collapsible region with the dynamic Action of the collapse

    Hi all

    in my Apex 5.0 - application, I have a button that shows a masked area when you press. I wish also that the current developed a collapsible area collapse when this button is pressed. Since collapse a collapsible region is not native as a dynamic action I must find a custom way (JavaScript) to do. Anyone know the best way to do this?

    Kind regards

    Arjan

    Hi Sunil,

    Thanks for your reply. I already found a solution, just a JavaScript code very simple:

    document.getElementById("div1").classList.remove("is-expanded");

    document.getElementById("div1").classList.add("is-collapsed");

    Thanks anyway!

    Best regards, Arjan

  • Pop - up before the dynamic action of confirmation

    Hello, Im using Apex 4.2.4.00.08

    and I would add a pop-up message when my button is pressed.

    Currently the button 2 true dynamic action on him, 1 pl/sql and 1 is javascript. The are two trigger when the button is clicked.

    I wish I had a popup that asks if the user wants to continue his application or to cancel it.

    How can I do?

    In the properties of the button (say PROCEED) at stake for the DA.

    Action: Redirect URL

    Target of the URL: javascript:apex.confirm ("do you want to continue?', 'CONTINUE');

  • The dynamic action of javascript

    Hello

    Good evening.

    I am aware, that we can trigger dynamic actions in multiple ways, based on events of the DOM.

    can someone help me triggering a dynamic javascript action.

    But not based on events.

    Ex: name action dynamic, based on its name or sequence or in any other way.

    There are situations where I have to call dynamic measures to avoid hand-written Ajax calls.

    Thanks in advance

    Hello

    The correct answer to this post:

    Not sure why the following code lines failed to trigger a dynamic action

    $("#P0_SIGNAL").val (123) .changes (); --Also failed
    $("#P0_SIGNAL").trigger ("change");  --Also failed

    This line would trigger a dynamic javascript action.
    Apex. Event.Trigger ($("#P3_TEST_ID"), "change","" ");


    Steps to make it work.


    I need to trigger a dynamic action when a value is set to hidden JavaScript element


    P3_TEST_ID is a hidden item.

    Create a dynamic action to shoot the P3_TEST_ID change event.

    Setting the value of p3_test_id of javascript wouldn't trigger a dynamic action.

    Run the following code to fire the javascript DA

    Apex. Event.Trigger ($("#P3_TEST_ID"), "change","" ");

Maybe you are looking for