actions dynamic apex 5.0

I have upgraded an apex 5.0 application and have some bugs related to the dynamics of the actions.

It seems that even when the field 'referred to submit page' was filled in the value / elements of session state is not updated and therefore cannot be used in the dyamic action.  (its possible I had set this manually via js in html attributes but if so then it was lost due to the possible conversion, but it seems less likely).

Anyone had the same experience or know a way to solve this problem?

Hello

as already pointed out above code isn't really a JavaScript Expression, because it returns nothing. APEX 4.2 and earlier versions where more forgiving, because they were using eval to run this dynamic JavaScript code. EVAL is very tolerant and also accepts code that does not return anything. Due to security best practices, APEX 5.0 is not making more use of eval and expects that the JavaScript expression is really an expression and not a block of JavaScript code. Please see the documented change in behavior ' 4.24 dynamic Action Set Value Action Set Type JavaScript more strict Expression "in our Notes to the https://docs.oracle.com/cd/E59726_01/doc.50/e39143/toc.htm#HTMRN310

In my opinion the dynamic action above should actually be of type 'Execute JavaScript Code' instead of 'set '. It's what he's doing.

You can execute the statement following SQL in the SQL commands to get an idea of what dynamic actions could be affected by this change in behavior. He's looking for multi line JavaScript Expressions.

select page_id,
       page_name,
       dynamic_action_name,
       action_name,
       attribute_05
  from apex_application_page_da_acts
where application_id = 96695
   and action_code  = 'NATIVE_SET_VALUE'
   and attribute_01 = 'JAVASCRIPT_EXPRESSION'
   and instr( attribute_05, chr(10) ) > 0
order by page_id, dynamic_action_name;

Sorry for the inconvenience, this change of security has caused for you.

Concerning

Patrick

Member of the APEX development team

Tags: Database

Similar Questions

  • Action dynamic apex on popup lov

    Hello

    I have a popup lov in apex 4.1.1.00.23, I want to put some values after the selection of an item from the LOV. That is, select a certain customer and set variables based on customer ie customer...

    I created a dynamic value on the evolution of the popup lov, but we note the change on the selection of a different value.

    If I save the form and then come back shows the correct data, not just directly after changing the value after the value in the LOV POP.

    Dynamic value is triggered on the evolution of the LOV POP to set some values, but it does not work!

    Any help appreciated.

    Thank you

    David

    Thank you

    I managed to get this working:

    Solution for anyone interested:

    Create a dynamic action advanced popup lov

    Event: change

    Select a Type: element

    Element was the popup lov

    No condition

    Now to update the items, I used the set value

    Action: value

    Parameters: Sql statement

    SQL code

    In page items to submit (popup lov name), it's the part that I had not before!

    Item is updated.

  • Dynamic action in Apex - automatic text field display based on the definition of value

    Hello

    I have two text elements. Need to create dynamic action for what follows,

    1 Order_number

    2 Order_type

    When a user enters an order number starting at 1, the order type should type should automatically posted as CONSUMER.


    When a user enters an order number starting with 2, the order type should type should be automatically displayed as COMPANY to another display null.

    Can anyone help please have solved this issue.

    Thanks in advance!

    Hi 2932464,

    2932464 wrote:

    Please change your login username of "2932464" to something meaningful. Reference: Video tutorial how to change username available

    I have two text elements. Need to create dynamic action for what follows,

    1 Order_number

    2 Order_type

    When a user enters an order number starting at 1, the order type should type should automatically posted as CONSUMER.

    When a user enters an order number starting with 2, the order type should type should be automatically displayed as COMPANY to another display null.

    Can anyone help please have solved this issue.

    Hereby you mean something like this: https://apex.oracle.com/pls/apex/f?p=52380:11:129938442406997:

    If Yes, then create dynamic action as follows:

    • Create a dynamic action on the Order_number change event say. P11_ORDER_NUMBER.
    • Event-> change, Type of selection-> item (s), article (s)--> P11_ORDER_NUMBER Condition-> is not null
    • Real Action-> to run the JavaScript Code
    • JavaScript code:
      var ordernum = $('#P11_ORDER_NUMBER').val();
      var startdigit = ordernum.substr(0,1);
      if (parseInt(startdigit) === 1) {
        $('#P11_ORDER_TYPE').val('CONSUMER');
      } else if (parseInt(startdigit) === 2) {
        $('#P11_ORDER_TYPE').val('BUSINESS');
      }
    

    I hope this helps!

    Kind regards

    Kiran

  • Dynamic action of APEX 4 relaxation of report

    I have an application that queries and displays a report and has a column of link to a custom url.  I don't want to trigger dynamic action to open the url customized loading Page.  I can't find another way to trigger the url.  In my report of Apex successfully it seems unable to find a DOM object or jquery Selector that will trigger my dynamic action. I have all of the elements that I can return.

    Event: click on

    Selection type: I tried jQuery Selector and DOM object, but unable to find the exact entrance to enter the field

    Condition: No conditions... maybe if I knew what condition to enter in it can help you.

    Action: Run the JavaScript Code

    Fires when the result of the event is true

    Code: javascript:popUp2 ($v ('P1_URL'), 900, 900);

    Oh, it seems simple enough, but it does not, unless I click on the button to fire on the loading Page.

    I tried to assign the Click event and the Type of area selection, however, it will trigger the dynamic Action whenever I click anywhere in the region, not only when I click on a specific line.

    Thank you.

    These links can help you (if you mean by APEX 4 APEX 4.2):

    Perform the dynamic Action of the link column report

    Take multiple values report dynamic Action

    http://Apex.Oracle.com/pls/Apex/f?p=9487:85:0

  • How to cancel tasks in a dynamic Action when apex.confirm = cancel

    I have a text field that has a dynamic Action attached to it. When the field is changed, the dynamic Action is triggered. There are 6 separate tasks in this dynamic Action.

    The first task is a call to apex.confirm. I want to assure you that the user understand the consequences of the change in the value of this field. Thus, appears the dialog box, the user reads the information and decides to click OK or cancel.

    If you click OK, I want to continue through the rest of the tasks in the dynamic Action. If you click CANCEL, I want to just give up out of dynamic Action.

    Is this possible?

    Apex 4.1.1.00.23

    Published by: Mark T. March 1, 2012 09:49

    Hi Mark,

    code, says more than words :-)

    I changed your "apex.confirm" JavaScript code in action 'Confirm' that does what you want. The "apex.confirm" JavaScript API is not designed for what you want to do and how you used it.

    The example works now in my opinion.

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

  • Code Action run Javascript dynamic Apex 4.1

    Hello world

    I want to know if there are known bugs on the dynamic Action (the Javascript code to execute).

    We did a dynamic action to action "window.open '.
    Window.Open ("& RAPPORT_URL_LANCEMENT", "_blank").

    But we have a problem. The first time, a blank page opens not mentioned by our URL page.

    We also tried to create a branch to our URL by does not open in another window. We want to keep given our open application page.

    What we can do for this?

    Thanks in advance. Good bye.

    Is RAPPORT_URL_LANCEMENT a Page or item of the application?
    Then, try window.open ($v ('RAPPORT_URL_LANCEMENT'), "_blank").

    It is a Substitution variable?
    Then, try window.open("#RAPPORT_URL_LANCEMENT#","_blank").

  • Action dynamic jQuery Selector problem

    Hello

    I'm under ApEx version 4.1.1 on Oracle 10.2.0.4.0 on Linux.

    I try to imitate what is in demand of Denes Kubicek https://apex.oracle.com/pls/otn/f?p=31517:315:1:

    jQuery Cascading tabular LOV.

    In the form of tables, the first LOV (called Type) is "f05".

    I created a dynamic action:

    Event: change

    Selection type: jQuery Selector

    jQuery Selector: select [name = "f05"]

    The first real action is an alert that is set to fire on the loading of the page and simply says "In dynamic Action".

    When I hit the button Add a blank record is displayed as expected.

    When I select a Type in the LOV Type not triggers the dynamic Action.

    Thinking that I was using the wrong column in the form of tables, I changed the jQuery Selector for 'fxx' up to the maximum number of my columns and nothing has worked.

    I checked in Firefox and it is not firing.  What I am doing wrong?

    Thank you very much

    Becky

    Tom,

    I was able to get the demo app to work in IE9.  I exported the app for my client's site and it works in IE8.  However, when I copied the code in the client application, it does not work.  I'm back to the parseerror... unexpected character when it is run in Firefox!

    When I opened the dev tools in ie8 I get no error.  When I run the app, by selecting the first LOV I get error: parseerror - [object Error], which is the same thing.

    You helped my a lot and I appreciate it!

    The demo application is up-to-date.

    I guess when all else fails, delete and start over!  I created another page and recreated the tabular presentation.  I copied the application that works.  On the page where I need the form of tables, I deleted the original and copied from the newly created page.  It works now.  Very frustrating because I think that you shouldn't have to remove and re-create stuff!

    I think I'm done!

    Thanks a lot for all your help in getting me this far!

    Becky

  • Fault action dynamic Refresh - HTML area only

    I rewrote the page to have a region of reports and in an HTML area with PLSQL inside scoring rate of server.

    http://Apex.Oracle.com/pls/Apex/f?p=68366:LOGIN_DESKTOP:107006148232137

    Login: Guest/12355

    I have the update button linked to a dynamic action which refreshed these two areas.

    With the report that it refreshes, but the region with the HTML/PLSQL is not... any ideas?

    Thank you

    Rob

    Support of attribute "Action":

    • Refresh - triggers a refresh of the elements concerned. Note: Not all items are supported a refresh, but you can use it for example for interactive reports, classic and all reports the types of items with cascade support LOV. Plug-ins can support this action as well.

    HTML regions do not count. You can refresh an element to repopulate a list if necessary, I guess that would be true for shuttles - but show/hide seems to be what you need.

  • Action dynamic set value for the Shuffle.

    I have a Select list that bears the name of the servers. Depending on the value selected in the select list, the random component must be filled. I created a dynamic action to select the list complete the Shuffle. It does not work. Any help is appreciated.

    I gave shuffle as the name of the item assigned to the dynamic action, I chose the option to set value, set SQL statement type and the following query:
    SELECT DISTINCT MOUNT_POINT IN SERVER_DISK_SPACE_UTILIZATION WHERE SERVER_NAME =: P2_SERVER_NAME

    Thank you.

    Hi Nicolas,.

    If you use APEX 4.0 or more, then the feature you're looking for is given for the selection list and shuttle (non-random) I think!

    My assumptions are:

    Select the list item: Servers (P2_SERVER_NAME)

    Shuttle point: Mount Points

    Just what you need to do is, in shuttle item properties there is a section from the list of values :
    Set
    Cascading LOV Parent items to P2_SERVER_NAME

    List of values definition of

    SELECT DISTINCT MOUNT_POINT FROM SERVER_DISK_SPACE_UTILIZATION WHERE SERVER_NAME=:P2_SERVER_NAME
    

    I hope that helps!
    Kind regards
    Kiran

  • Action dynamic pl/sql function setvalue

    Hello

    I have a table of currency with Exchange rate column.
    I've created a form that allow the user to select the currency of the table and enter the rate elements of page Px_RATE.
    I want to implement using dynamic action in the apex 4
    Please help me on this case

    Thanks and greetings

    Hello

    You can do this by defining a dynamic action as follows...

    #1-do a right click on the item page to select the currency (let's call it P1_CURRENCY for this example) and select 'create the dynamic Action '.

    #2-Select 'Advanced' that we use the type of dynamic action "set the value, which is not available in the 'Standard' of the Assistant branch.

    #3-name your dynamic action, say "RATE of GETTING", click on "next".

    #4-let the "When" default attributes, it simply defines that the dynamic action is triggered whenever the currency item, click 'next '.

    #5-pour the "real Action > Action' select 'Put the value'"

    #6-think if you want to set the value on the loading of the page of the dynamic action too, if so let the 'Fire when loading the Page' box checked.

    #7 [assuming that you have a simple API of PL/SQL that returns the rate of say get_rate, for example] select 'Set Type' of the 'body of the PL/SQL function.

    #8-pour "Body of the PL/SQL function" says something like:

    return get_rate(:P1_CURRENCY);
    

    #9 "Page to submit elements", specify the element to P1_CURRENCY currency, and then click "next".

    #10-pour "items affected" specify "Item" and then select the page element where you want to return the value of the rate, say P1_RATE.

    #11-click on 'create '.

    Let me know if it works for you or if you have other questions.

    Kind regards
    Anthony.

  • ACTION DYNAMIC - box Expression Javascript

    Hello
    I have 2 PCs in stock
    1 P2_REQUEST_TYPE_CODE
    a. SELECT LIST
    i. EQUIPMENT REV
    II. POSTERS
    III. the SHELL ROOM
    IV. VISIO CAD
    2 P2_RETURNED_FILE_TYPE_CODE
    a. BOX
    i. 2D POSTER
    DRAWING CAD II.
    III. PDF
    IV. VISIO

    I have a dynamic Action
    Event: change
    Selection type: item (s)
    Article (s): P2_RETURNED_FILE_TYPE_CODE, P2_REQUEST_TYPE_CODE
    Condition: Expression of JavsScript
    Value:
    $v ('P2_RETURNED_FILE_TYPE_CODE') == '2D POSTER |
    $v ('P2_REQUEST_TYPE_CODE') == 'POST '.

    When my user chooses ' P2_REQUEST_TYPE_CODE ("POST") "there shows the address columns, and it does.". When my user chooses "P2_RETURNED_FILE_TYPE_CODE ('2D POSTER")"it should display the address columns and it does. Everything works well except when in "P2_RETURNED_FILE_TYPE_CODE" all the checkboxes are checked the address columns don't get display, no idea?

    Request Express 4.1.1.00.23

    Thank you
    -JC

    Hi JC,.

    If you check multiply the boxes that the value will be a string with the value separated by a colon.
    You must use something like indexOf.

    $v('P2_RETURNED_FILE_TYPE_CODE')=='2D POSTER'||
    $v('P2_REQUEST_TYPE_CODE').indexOf('POSTER') != -1
    

    Kind regards
    Kees Vlek

    http://www.orcado.nl
    http://www.orcado.nl/blog/blogger/listings/69-kvlek

    If the answer to question please change to answered.

  • Need to report dynamic APEX version 4.2

    Hi all

    Can someone tell me how to get the report assumes that FIN_0112_AP_outstanding_Analysis in the tab of production in APEX Version tab.

    As you can see there are a lot of report to select the report in the screenshot of 1st and 2nd screenshot we have subtab defined in the output so parent tab regardless of the report that I will select in home page, it will go to the special subtab now my requirement, it's that I don't want to see all the subtab report so whatever the report I will select in home page indicating the sub-tab enough to show.

    for example: if I select report = Homepage FIN_0112_AP_outstanding_Analysis then this tab is enough to display in the output tab of the mother and all the other tab need to hide.

    Report_Selection.jpg

    Parent_Child_Tab_Report.jpg

    LnTInfotech wrote:

    It is true that we must control the sub-tab so that what ever the report I will select in home page that report is enough to show in the sub-tab. But I've never used the expression so could you please let me know how I can use the value of element in the Expression 1 = Expression 2 condition.

    as I P1_REPORT_SELECTION parameter in the homepage and the report_name column on the page of IR report. I would like to know how can I use expression so that home page report show only this report subtab.

    Do you understand the concept of the use of conditions to control the rendering and processing of base APEX?

    1. change each tab.

    2. go in the Conditions of the definition of the tab section.

    3. set the Status Type of point value / Expression 1 column = Expression 2.

    4. the value Expression 1 P1_REPORT_SELECTION.

    5. set 2 Expression of the value of P1_REPORT_SELECTION LOV for the tab.

  • APEX 3.2 - Dynamic Actions

    Hello

    I know that we can apply actions dynamic apex 4... can we do something similar in 3.2... Otherwise, what is the alternative...?

    Thank you

    Hello

    Dynamic actions are introduced on Apex 4 and there not something similar on Apex 3.2.

    But you can write your own JavaScripts. See for example this
    Apex 3.2 hook javascripts for IR and run the when the report is refreshed

    Kind regards
    Jari

  • 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 dynamic Action issue with custom button template

    A new day and a new problem. -.-

    I wanted to create a dynamic action, if a button is clicked and got the error "the selected button uses a 'button model' which does not contain the #BUTTON_ID substitution string #. So I googled a bit und found issue with action Dynamics apex. I thought that this would solve my problem and I looked in the model button to find this:

    <table class="t15Button" cellspacing="0" cellpadding="0" border="0"  summary=""><tr>
    <td class="t15L"><img src="#IMAGE_PREFIX#themes/theme_15/button-l.gif" alt="" /></td>
    <td class="t15C"><a href="#LINK#">#LABEL#</a></td>
    <td class="t15R"><img src="#IMAGE_PREFIX#themes/theme_15/button-r.gif" alt="" /></td>
    </tr></table>
    

    A former colleague created the model itself and I do not know where to insert the #BUTTON_ID #. Does anyone have any suggestions?

    Concerning

    Chris

    Miss you atrribute button ID,

    is the correct code

    #LABEL#

    I hope this works.

    Go

Maybe you are looking for