Simple dynamic action does work properly in 4.1 more

Our application has a page with a large number of boxes while using the same LOV ('Y', ' don't). We defined a simple and dynamic action that fires whenever the first box is changed. If its value is set to 'Y' the value of all the other checkboxes is set to 'Y' as well. A wrong action does the opposite. It worked well in 4.0. 4.1 it fires again, but instead of the complete list of the items affected only the first item in the list has its set value. When we change the action in "value"- for instance - 'hide' or 'Disable' it works fine once again (that is, affect the full list of items).
Anyone an idea what may be the problem here?
Robert.

Hi Robert,.

I think you're hit "set of dynamic scripts 4.9 value with multiple affected elements ' documented as behavior change in the APEX 4.1 release notes http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21672/toc.htm#CACFHAFB at the same time Mark Lancaster also blogged about this a few days ago. http://oracleinsights.blogspot.com/2011/09/dynamic-actions-changed-behavior-in.html

BTW, if you have so many boxes O/N, you can take a look at our "Simple Checkbox" plugin to http://apex.oracle.com/plugins item type

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

Tags: Database

Similar Questions

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

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

  • Dynamic action does not work with the item change event

    Hi guys,.

    I have a problem with the dynamic Action. On my page, I have three points. (P2_X-> display only, P2_Y-> P2_Z-> button, TextField) and two dynamic actions. One of them is running javascript. When I press the button (P2_Z) this dynamic action affects textfield (P2_Y) value to display only the value (P2_X). (This dynamic works). And there is another dynamic action for the option to display P2_X. This dynamic action fires to P2_X point value changes. This DA (dynamic action) runs a plsql code and inserts the value of the P2_X element in a table (test_tbl). But when I try to do it always inserts the null value.

    The plsql code is below:

    Start
    INSERT INTO TEST_TBL
    VALUES (: P2_X);
    COMMIT;
    end;


    You have an idea? If you need, I can give the user for apex.oracle.com past.

    Thank you

    Hello

    Do you have the "points Page to submit" to the process of PL/SQL, the value of the correct item? (P2_X)

    Concerning
    J :D

  • 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

  • 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

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

  • Why dynamic action does not recognize a condition

    Running Apex 4.2 (build 4.2.1.00.08) on Windows 7, IE running.


    I'm trying to control the shape with.

    specifically, I have a field that I need peopled before running the main process.

    I have an alert action DA when the Condition is a PL? SQL expression, the content is - ': P16_FILE_NAME is null.


    With the empty field, it triggers the alert.


    I put text in the field and press the button that activates him DA, and it ALWAYS triggers the alert.


    I tried a celine that page just a couple of fields and a few buttons.


    Same conditions, the DA is to fire and give a warning about the presence of the Null field.


    Button 1 - DA real action1, send page, tick alert of DA real action 2.

    2 - the button submit page.

    Buttons 3 - copy of field1 in field 2, question to submit is 1 point field to return called Field2.


    If I enter a value field 1 and press the 1 button it says field1 is empty.

    If I press the 1 button once again, no other change is more, he says field1 is empty


    If I clear the field and press button 1 what he says is not empty, if I press it again it says it's empty.


    If I put something in Field1, and then press the 2 key, it does nothing except submit page.

    If I then press the 1 button it says that is not empty.

    Claire field and press the 1 button again twice and now is that it is empty again.


    Put soemthing in Field1 and press the 3 button to copy to Field2

    Press the 1 button and it says it's empty.


    The only way seems to recognize as being complete is if a send page was made in a separate order of DA.


    If the page submit that real action is in the same DA as the real action of check, it will not recognize the page submit until the second button.


    It must recognize, as shown in the session state as not empty and the field of the screen is also not empty, and yet he says it is empty.


    Anyone got any ideas on why this is?

    Dave T NZ wrote:

    With regard to the Condition of the DA, according to documentation, he said: "a condition is a small unit of logic which helps you control the display of regions, the items, tabs, and buttons, as well as execution of processes, validations and calculations."

    If the condition controls the execution of the DA.  Also, I can verify that by putting the condition ever and no more, it fires.

    No, in the case of the DAs, conditions of control if the code of DA is included in the page. In this regard DA conditions are more like "display of regions," the "execution of the process.

    Don't forget, the processes are executed in the database for the page and accept the transformation, while the DAs are executed in the browser when the rendered page in page of treatment. If the condition is not true then the code of DA is not included in the page sent to the browser, so it can never run, and it will not appear on the page until after another page show where the condition is true.

  • The argument of presence does work for me in any more

    Simple button that, when clicked will display a rectangle (revealing a button). Will not work. I HAV tried everything that worked in other forms, etc for me. Script is the following:


    topmostSubform.Page1.declineBox.presence = "invisible";

    Does nothing. I tried visible, hidden - nothing works. Form is dynamic previews so it isn't that. Other forms which have the same script work. I copy those in my form and that they cease to operate.

    Thoughts?

    You said that you have set the preview of the dynamic document but have you double checked that you have saved the PDF under Dynamics?

  • Bug: Dynamic Action on column in a table does not fire after sort column

    I have reproduced this problem on apex.oracle.com.

    Use [http://apex.oracle.com/pls/apex/f?p=22057:1]
    user/pw: apextester

    I created a dynamic action on a tabular presentation, using a jQuery selector, to check if the misspelled word is null, display an alert and set the focus through this switch. The first time on the page, I can erase a misspelled word value and this dynamic action is triggered. I see the alert. (Focus action seems not to happen, but that is a minor issue.)

    I can put the value in their place, select the columns to sort, empty a value of misspelled word again, and this dynamic action does NOT occur. (FYI, there is another dynamic action in this app, save before exit, click OK to ignore the changes.)

    I can also access the page, make no changes, sort by header column first, then a misspelled word value virgins and this dynamic action does NOT occur.

    I added the "headers" for the report model, td tag attribute to use in the selector. This erroneous behavior is the same, I use #COLUMN_HEADER # #COLUMN_HEADER_NAME or #.

    Thank you
    Kelly

    Hi Kelly,

    Take a look at the region advanced dynamic actions and 'Scope of the event' link to 'living '. I think your problem will be solved.

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

  • Static id usage problem of IR region with dynamic action

    Hi all,

    I have this dynamic action:

    Event: after refresh

    Selection type: region

    Region: region_name

    Condition: no strings attached

    Action: run the JavaScript Code

    this.affectedElements.find ('td [headers = "Alternativen"] table.apexir_WORKSHEET_DATA') .each (function (i) {}

    var lThis = $(this);

    If (lThis & & lThis.text ()! = "" & & lThis.text ()! = "-") {}

    lThis.parent () .children ().css({"background-color":"#7da08a"});)

    }

    });

    $(".apexir_WORKSHEET_DATA") .find ("[headers = 'Alternative']") () .hide;

    $('#Alternativen').hide ();

    I've added a static id called #search_report for a specific use, since this dynamic action does not work, I tried to put in the Type selection of the elements concerned section: jQuery Selector and

    jQuery Selector: #search_report but still does not work. Any help

    aymen_tunisia wrote:

    After many tests, I change the Type of selection to JQuery selector and put table.apexir_WORKSHEET_DATA as the value for JQuery selector tr, it only works for the first page

    Change the scope of your da static to the dynamic.

    Kind regards

    Vincent

    http://vincentdeelen.blogspot.com

  • 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, not shooting after having sailed on the next page of report

    I have a report and I want to show some additional details about a record when the mouse over a specific area.
    It works but only on the first page of the report to. After accessing the second report page dynamic action does not occur.
    After a page réactualisiez on the dynamic action fires.

    Here is an example on apex.oracle.com.

    https://Apex.Oracle.com/pls/Apex/f?p=28683:25

    When you hover the mouse over the image a 'test' alert (i) is displayed. Go to page 2 of the report, and nothing happens.

    What I did:

    Create a public page with a classic report with the request:
    select 
     "CUSTOMER_ID",
     "CUST_FIRST_NAME",
     "CUST_LAST_NAME",
    '<img class="abstract" src="/i/menu/blue_info_16x16.gif"/>' as "ID"
    from #OWNER#.DEMO_CUSTOMERS
    Create a dynamic action.
    Sign up for the mouse
    jQuery selector: .abstract
    Action: alert ('Test')

    Is this a bug or is there a different approach to this?

    Hi René,.

    Change DA dynamic extended event.

    Additional help is available here:
    http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35125/advnc_dynamic_actions.htm#CIHGAFFI

    BR,
    Marko Goricki
    --------------------
    http://apexbyg.blogspot.com/

  • Dynamic action to hide and show a button

    Hello

    How to set the dynamic Action on an item Page (P4_DATA)

    When the value is 0, then show the button (P4_BTN)
    When the value is 1, then hide the button (P4_BTN)

    I have a dynamic action that work very well, but only for the display option, does not work for a button


    Thank you

    You must add a handful to the button so that you can access in the Action(make sure that you have #BUTTON_ATTRIBUTES# substitution string referenced in your button template) dynamics.
    in the attributes of the button, specify

    ID = "MY_BUTTON".

    MY_BUTTON is just an example

    "Now, when you choose assigned to the dynamic Action of the elements, you can choose" * selector DOM * "and specify MY_BUTTON"

Maybe you are looking for