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.

Tags: Database

Similar Questions

  • 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

  • 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

  • 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

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

  • Tip action: a conditional action does not execute the final decision

    Hello

    I'm working on a program of Captivate (7). We have a tip action that runs when entering the program or the first screen.

    The program transmits the data of Captivate to a database via Javascript to a .NET application.

    After each of us the registration form that the user saw the screen and assign it to a user variable: v_lastmod = 1, 2, etc. On the way to the next screen, it passes the data to the database via Javascript to a .NET application and .NET passes a redirect response. So it basically loads the program again. Entering the first screen where I have a display "Loading" (just a screen with loading as text), according to your v_lastmod, it climbs to a particular slide. The tip action uses "If" and "else", "if" v_lastmod = 1, jump to "4 slide 4" etc. ".

    We are able to do it for all the decisions that are in advanced actions, until we get to the lastmod = 19 (which is where we stop registration for this variable).

    So, say for example v_lastmod = 19, rather than jumping to the appropriate slide, it goes to the screen first and then stops on the second slide.

    Any thoughts would be appreciated!

    If all goes well, this didn't seem to be confused because I am not developer but program file Captivate .NET.

    Is there a quiz results slide your course?  Is the quiz results slide before slide 35?  In the "quiz properties: success or failure" attempts is in anything other than endless attempts? In "quiz: settings ' is mandatory or optional quiz?

    In order to go beyond the quiz results slide, some of the quiz properties must be defined properly to allow this.

  • Dynamic text does not when the browser refreshes

    Hi all

    For some reason when the user refreshes the browser, the "Welcome to our...' dynamic text in the middle of my swf does not load in IE 8" I think it's somehow associate may cache?

    I use a container .swf to load the SWF main movie, Interactive_StrategyMap.swf preload (located here: http://precorp.coop/fileshare/map/Interactive_StrategyMap.swf).

    You can see the behavior here: http://www.precorp.coop/fileshare/map/InteractiveStrategyMap.html

    Any ideas how can I fix?

    Thank you

    John

    Works fine for me in IE8, although the text has lagged by completing the sections.

  • Comparison of 2 numbers in dynamic action does not work

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

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

    any idea on what is happening?

    Thank you

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

    Hello

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

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

    brgds,
    Peter

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

  • Dynamic action - SQL - not returning the result as expected

    Hello

    I have a dynamic Action that runs some SQL codes and must return a string to a text box...

    the sql code that the action runs when a button is reached is:

    Select REPLACE ("|: P292_QPRODUCTS |) '''', ':', ' ' || : P292_QAOPRODUCTS | ""ProductsID"(="') from DUAL "

    P292_QAOPRODUCTS = DATABASE: JAVA

    P292_QAOPRODUCTS = AND (user can also choose OR)

    In the command SQL is what I see:

    "DATABASE" AND "ProductsID" = "JAVA".

    In the text box apex that action must set the value of the use of SQL I see only:

    ''

    any ideas?

    see you soon

    t

    Hello

    Could you share the 'Settings' and 'Affected Elements' sections of the property page of DA?

    You can also try a PLSQL and Code PL/SQL type as:

    Start

    Select REPLACE ("|: P292_QPRODUCTS |) '''', ':', ' ' || : P292_QAOPRODUCTS | ""ProductsID"(="') "

    in: DOUBLE P292_TEXT_BOX;

    end;

    Don't forget to fill in the field "Page elements to return" with the name of P292_TEXT_BOX.

    Concerning

  • Logitech game controller dual action does not prevent the screensaver running

    Running XP sp3 with all updates & patches, with the latest drivers logitech for the game controller, while using with windowed games like trackmania, the screen saver is used while I am games with the controller, no tab power management in the device under controller settings manager logitech dual action, how can I stop the screensaver kick?

    "' Easy enough only to disable the screensaver" screen ", there is nothing other that provide entertainment even when.

  • Dynamic masking action does not hide the label - Apex 4

    Hi, does anyone else have this problem? When I create an action to hide/show for several items based on a selection list, on the event to hide the label of my question remains. I know that I can add the items in a region and hide the entire region, but surely, the skin must hide the label of the item as well. Is this a bug?

    Hello

    I see what you mean. There is 1 template in the Optional default 15 ('Label') theme with help that is missing the tag 'label' and 'for' attribute you need. I would like our theme / template that developers. Thanks for reporting this.

    For now, you can move quite easily by changing this model. Add the following code at the beginning of the "definition > before Label' value:"

    
    

    And this at the end of the value of the Label 'after ':

    
    

    Kind regards
    Anthony.

  • Approval task Serial - menu Actions does not contain the option 'Decline' in 11g R2

    Hello world

    I've implemented the approval task series with two steps.

    I defined the policy on the approval of IOM.

    When an application starts, my workflow is executed and request is sent to the first approver box.

    When the first approver open the Inbox, and then click this request, menu Actions has these options:

    Approve the

    Reassign

    Get worse

    Suspend

    Create the subtask

    But there's no option "reject"?

    Why?

    How can I solve this problem?

    Thank you.

    Best regards.

    Click on the application and open the detailed view of the same and see you get option REJECT it.

    Please note that you cannot reject the request without entering comments in the comments section.

    HTH

  • Tip action does not follow the direction 'else '.

    Hello

    I use 8 Captivate and trying to create a tip action putting in question a matter of access point.

    Currently I have:

    If (all conditions are met):

    If cpQuizInfoAnswerChoice [is to] 0 ((literal - as generated by Captivate)

    Then:

    Run the Javascript: window.cpAPIInterface.setVariableValue ("cpQuizInfoAnswerChoice", "OK");

    Another thing:

    Run the Javascript: window.cpAPIInterface.setVariableValue ("cpQuizInfoAnswerChoice", "Invalid");

    (FWIW, I am confident in the "then" Javascript, have used this script in similar advanced conditional actions.)

    However, regardless of whether cpQuizInfoAnswerChoice is 0 (that is, correct) or appears empty (that is, incorrect), advanced action always returns the If condition (if the parameters are respected).

    I suppose one way to solve this would be to understand what is generated by Captivate for cpQuizInfoAnswer when the question is incorrect, but can't seem to find. Another way would be to create an advanced conditional action based on the question if the question has been marked as Correct or Incorrect, but this doesn't seem to be an easy option.

    I would appreciate any suggestions on how to work around this problem!

    I haven't tried the custom hotspots, but will be for future projects - it's more trouble than it was worth.

    I end up creating multiple points of access, with the first (= 0) being a "dummy" and the second (= 1) being the right answer. Then, I created my conditional Action advanced to return "Incorrect" If the answer is 0 or null (because the system identifies equivalents) and "correct" If the answer is 1.

    Thanks for all your help in this, Lilybiri!

  • Left mouse click selects the button but does not execute the action of the button (for example close)

    HI - this seems to be a problem with Windows rather than the mouse, so any help would be greatly appreciated!

    First of all - I have a trackball M570. Works fine connected to another Windows 7 machine.

    But on a single machine including windows 7... I can use the left click for most, but in some applications, when I click a button it not actually click the button. Yes, he selects the button but it does not perform the button action. I also see the issue in the boxes, I can't put a tick in the boxes. Or at least I just figured someway by combining fast random space bar presses and presses mouse, but it is obviously not right. Couldn't find anything useful in google, so I thought I would try here in hope!

    Thank you for the pointers !

    Cheers, Jim.

    HI - Finally - I found a solution.

    First of all - the following solution worked for me, but there are possible solutions mentioned on the thread I linked in my previous email.

    The mouse is a Logitech wireless, with the SetPoint software installed. I also had a Microsoft wired keyboard and just in case that was the problem, I replaced it and - YES! All good new - in fact explains some other issues, I was less concerned. The problem with the keyboard was somehow screwing of the mouse.

    Since then I have been reduced to a media volume on the keyboard button, no idea how to solve this problem, and the replacement keyboard was free, so just get rid of the old. Note: I could use the old keyboard when I downloaded the Microsoft Mouse and keyboard Center, installed and disabled the offending button.

    Thank you, maybe my solution might help some people out there.

    Jim.

Maybe you are looking for

  • How can I restore bookmarks, passwords saved on a slave drive?

    I've recently updated CPU and motherboard, which broke out in windows 7. the impasse now OS on the new HARD drive with the old HARD drive as a slave drive. How can I recover my bookmarks and passwords saved on the old drive?

  • Toshiba NB550 wake up the Suspend to Ram

    Hello world I don't know what to do. I got the NB550D and installed Ubuntu 11.10 on it. I am really satisfied with the machine, but when I do a suspend to ram, the netbook will not wake up. I had a black screen, her are lit, but no reaction on the bu

  • Cannot load Windows 10 in Bootcamp

    I'm following the directions of Apple install Windows 10 (1st time install, not an update) on my end 2015 iMac, retina 5 k (with disc Fusion) and he could not get past the stage of "format" in the part of the bootcamp partition Windows Installer. Acc

  • No actualiza algo en windows don't update sale UN error por favor ayuda

    Hola quisiera saber por Quebec sell me a technical error. ? Lo that none be actualiza are el siguiente error por don't favor ayuda "WindowsUpdate_00000BC9" "WindowsUpdate_dt000" sell me an error por favor ayuda

  • Audio driver for that specific ID

    I'm missing a sound driver and the device ID is as follows. HDAUDIO\FUNC_01 & VEN_8086 & DEV_2802 & SUBSYS_80860101 & REV_1000\4 & D 3360655 & 7 & 0201 Someone at - it a pilot who has this specific ID? If so, someone please post a link for where to f