Prevent fireing "Submit BeforePage" - dynamic Action if I click the button CANCEL

Hello
I create a dynamic Action on the event "before submitting the Page" which shows me a "Please Wait" - window, if I submit a page. It works very well.

But if I click the button CANCEL, dynamic Action runs as well. Because of that I put the status "request is NOT contained in the Expression 1" and 1 Expression I put BACK, because demand from the button CANCEL is BACK. Unfortunately it is running if I press the button CANCEL.

The action is "executing JAVA-code" and the code is:
$x_Show('AjaxLoading');  
window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
What's not here?

Kind regards
Mark

Hi Mark,

If you change your button 'CANCEL' to a "Redirect to the page of this application" button, the page is not submitted and does not fire the event "before submitting the Page.

Or if you want to stick with the shipment, you can check for this.data in JavaScript code because that will contain the value of the application to send it. So, for example, you could use

if (this.data != "ZURUECK") {
  $x_Show('AjaxLoading');
  window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
}

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

Tags: Database

Similar Questions

  • APEX 4.0 IE8 - definition of value with dynamic Action - no display of the result

    Hello

    I use APEX 4.0 and IE8. I made a dynamic action that fires on the editing an item.

    Event: change

    Rype of selection items

    Article: P77_item_1

    Condition: No strings attached

    Real Actions: The value

    Action: Set

    Set type: PL/SQL function body

    : P77_item_2: = Y;

    Page items to submit P77_item_1

    Items affected

    Items of Type selection

    Elements P77_item_2

    I see that it works in session. Now, I see that P77_item_2 is inserted. But there is no display of the value.

    I tried item_2 as textfield, view only, or read-only, but the behavior is always the same. What can I do to show the change in the order of the day?

    Thank you!

    Le_di wrote:

    I use APEX 4.0 and IE8. I made a dynamic action that fires on the editing an item.

    Event: change

    Rype of selection items

    Article: P77_item_1

    Condition: No strings attached

    Real Actions: The value

    Action: Set

    Set type: PL/SQL function body

    : P77_item_2: = Y;

    Page items to submit P77_item_1

    Items affected

    Items of Type selection

    Elements P77_item_2

    I see that it works in session. Now, I see that P77_item_2 is inserted. But there is no display of the value.

    I tried item_2 as textfield, view only, or read-only, but the behavior is always the same. What can I do to show the change in the order of the day?

    Do not have access to an instance of APEX 4.0 to study, but any code of "PL/SQL function body" must include a RETURN clause:

    :p77_item_2 := 'Y';
    return :p77_item_2;
    
  • Click action did not activate the button

    I have a button to send on a JSF page as follows:

    < af:commandButton text = "Submit" id = "cb1".
    Icon="/images/submit.gif".
    accessKey = "S".
    action = "#{myBean.saveRecord}" / >

    However, when I click the button submit, he never hit the breakpoint in the myBean.saveRecord method.

    I have change to:

    < af:commandButton text = "Submit" id = "cb1".
    Icon="/images/submit.gif".
    accessKey = "S".
    action = "submitRecord".
    actionListener = "#{myBean.saveRecordOnClick} '"

    with saveRecordOnClick method is the same logic of code, it still does not work. There is no error or log info at all.

    I have the same button send on other pages, it works very well.

    Any idea? Enjoy it!

    Mike,

    You have any component whose property Rendered / Visible property in your screen.

    If in order to check the required property for this component.

    It is also one of the reasons.

    If the component will not be visible/rendering but want to keep REquried = "true" then mandatory error message will get fired. This message will not display in the screen. You can not adopt additional measures.

    Check it out.

    Vini

    Published by: Vini on March 10, 2011 01:09

  • I can't install Adobe Photoshop elements 13.  When I click the button install, need me in the folder "Adobe Photoshop Elements 13 (download)", but there is no action that I can take at this time.  I am running Windows 7 Home Premium, SP 1.

    I can't install Adobe Photoshop elements 13.  When I click the button install, need me in the folder "Adobe Photoshop Elements 13 (download)", but there is no action that I can take at this time.  I am running Windows 7 Home Premium, SP 1.

    Hi Michelle.  I thought about it. To install the program, go the downloaded zip [Adobe Photoshop Elements 13 (Download)] folder, then open the "64 bit", then double-click on the "PhotoshopElements_13_LS25_win64" application  Who will run the program.  I hope this helps.  David

  • 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

  • Dynamic action: need to refresh the area when changing value radio button

    Hello

    I use Apex 4.2 worm.

    I need to apply a dynamic action with the refreshment area.

    I need to refresh the area when I change the value of the radio button.

    To do this, I created dynamic action on the changes and select the refresh option to update the region.

    But it does not.

    If you want to check, then see below for workspace:

    Workspace: APEX_ISSUE

    User name: [email protected]

    Password: kaushik1@34

    Please use Page no 5.

    Thank you

    Hi Maxence,

    CORINE wrote:

    Hi Kiran

    Thank you very much.

    It works very well.

    One more I need help, I need to scroll in the radio button because I'm showing type of booking successively from top to bottom.

    How can I set scrolling in the option box.

    Thank you

    What do you mean by scrolling in the option button?

    I applied a horizontal scrolling for the region containing radio buttons by using the suite in the attributes of the region:

    style="overflow-x:scroll;"
    

    If you apply the change just of vertical scrolling x to y.

    I hope this helps!

    Kind regards

    Kiran

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

    Hello world

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

    Thank you, Karen

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

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

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

    });

    This seems to do the trick.

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

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

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

  • dynamic action + plug in to the right click.

    Hi all

    I installed a plug-in in my application of http://apex.oracle.com/pls/apex/f?p=1983:17:0: . and also, I created a dynamic action. but my questions are

    now, my questions are,

    1. how this plugin works for interactive report via a dynamic action only na?

    2. If I want those right click menu options such as edit & discover - how to add?

    3. If suppose I click on this edit/point of view, it should go to the appropriate page/report. -where and how to add these actions?

    any help will be very useful for me

    Thanks in advance.

    you change function js like this:

    function myMenuAction2 (Menu, el, pos)

    {

    If (Menu is 'page2')
    {
    Window.Location"http://apex.oracle.com/pls/apex/f?p=&APP_ID.:2: & APP_SESSION. » ;
    }
    on the other
    {
    Window.Location "http://www.google.com";
    }

    }

  • Do not click the buttons to perform actions (InDesign)

    Hello

    I tried to do the following:

    • Click on and use the Selection tool or direct selection
    • Create/edit character and paragraph styles
    • Select the option to center alignment when the text is highlighted

    Whenever I click on these buttons, or even something similar, I get no response. I can confirm that my machine freezes up, isn't slow or delay.

    The other buttons below the selection and direct Selection tool can be clicked very well.

    Can anyone help?

    Maybe it's: https://helpx.adobe.com/indesign/kb/indesign-tools-panels-don ' t - respond.html

  • 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 sets the value of the element, but not save to DB on submit

    I'm working on a page where the value of several to show only the page elements are defined using a dynamic Action.  They are set when the user selects a value in a list of selection (and is based on the value of the selection list).  Dynamic action is triggered on a list selection change event and then runs the real action "set the value.  The selection list displays the names of sales representative.  The three fields dynamically filled are the org structure (that is, their chain management).

    For the action to set the value, I use a defined Type of SQL statement:

    Select VP, DIR, MGR

    of SALES_ORG where SSR =: P20_SSR

    In the affected elements, I have fixed Type of selection to the 'item (s)"and the value of the Item (s) for 'P20_GVP, P20_DIR, P20_MGR.

    Dynamic action works fine for the display of the page (that is, when I select a sales representative in the selection list dynamic action properly updated only display value fields three).  This page is a form in which the user submits information relating to the rep.  When the page is sent, all fields are filled in a new record of DB with the exception of three that were populated dynamically above.  These fields get the values NULL.

    When the dynamic action updates the values in the three fields is - it does not set the value of session?  Why these fields don't are not taken into account in the submit other ideas > process Page?

    I use 5 APEX with Chrome on Mac (Yosemite).

    Thanks for the note.  I didn't only display the items could not be used in this way.  I think I'll take a different approach with the design; given that the org structure is in another table that I can simply refer to that by rep when necessary rather than saving the information uploaded to the page of the form.  The reason why I have not fill the screen only the points of loading the page is because I don't know what the values should be until the user selects a sales representative in the selection list.

    I'll change the design to one of the following:

    1) change the display only items of standard text field.  NOTE: if I make the text read-only field that causes other problems when loading (I get the message "violation of protection Session state").

    OR

    2) do not include org structure in the download folder and just refer to table org Rep when necessary.

    Thank you!

    Steve

  • 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

  • Tips: APEX 5 r IR by a dynamic action after the text fields complete

    Hello I hope I can get assistance on this matter and thank you in advance for any information.

    I have an APEX 5 screen, that has 4 fields of entry of text and under this one IR that has these 4 parameters in its SQL where clauses.

    Now if I create a button that submits page or redirects to this page my report can be updated with the values of user entered without problem, basic stuff.  If I create the settings section as a dialog box model once again that I can get the update report as this dialogue submits the page as well as the report can refresh according to closed dialog option.

    What I struggle to reach is to allow the user to enter values in the text fields click on a button called 'submit' and there all stages of implementing dynamic action without page reloading.  I want user to P1_A, P1_B, P1_C, P1_D press on "submit" input, dynamic action that links the values entered into the fields, then fire another dynamic action that updates the State when the button is clicked / modified values what works the best.

    I am struggling to get this to work and I even tried to copy these settings and do them as hidden for example bind input P1_A to P1_A_Hidden by a dynamic action and have the report where clause =: P1_A_HIDDEN, but have not managed to get this working.

    It's possible?  I know its easy to simply send the page and make it work, but I want the experience to be quite uniform for the user and act as you never leave the page.

    I saw on the packages of the app in the chart example.  The bubble chart has a list selector (salary) and the table updates dynamically, it seems so that the process can occur, but I need the user to enter text and not use selection lists.

    My apologies if I missed any, but I can give you more if it helps.

    Concerning

    1972903b-5166-494e-8355-08d9d4006e96 wrote:

    Hello I hope I can get assistance on this matter and thank you in advance for any information.

    I have an APEX 5 screen, that has 4 fields of entry of text and under this one IR that has these 4 parameters in its SQL where clauses.

    What I struggle to reach is to allow the user to enter values in the text fields click on a button called 'submit' and there all stages of implementing dynamic action without page reloading.  I want user to P1_A, P1_B, P1_C, P1_D press on "submit" input, dynamic action that links the values entered into the fields, then fire another dynamic action that updates the State when the button is clicked / modified values what works the best.

    The button simply trigger a unique dynamic action of refreshment on the IR region. Session state for page elements must be processed automatically by specifying them in the property Page to submit Items of the IR region.

    Please ensure that you have updated your forum profile with a recognizable username instead of "1972903b-5166-494e-8355-08d9d4006e96": Video tutorial how to change username available

  • Date arithmetic gives error in dynamic Action that makes the value value

    Hello

    I am trying to create a dynamic action that automatically assigns the value of P8_ENDTIME to P8_STARTTIME + 30 minutes. Both are date variables.

    So far, my settings

    Dynamic action:

    Event: change

    Selection type: elements

    Items: P8_STARTTIME

    Scope of the event: static

    Real Action:

    Action: Set

    Set type: PL/SQL Expression

    PL/SQL expression: P8_STARTTIME + 1/48

    Page items to submit: P8_STARTTIME

    Affected elements Type: elements

    Assigned items: P8_ENDTIME

    Note: I read online by adding 1 to a date increments of one day. And the addition of 1/24 Add 1 hour. 1/48 will add a half an hour.

    These settings compile but when I change the STARTTIME field for a new date on my page it says:

    AJAX call back Server error ORA-06502: PL/SQL: digital or value error: character number conversion error to set the value.

    I have to mention if I did my right PL/SQL expression: P8_STARTTIME then no error is thrown. : P8_ENDTIME be successfully will set the value of: P8_STARTTIME

    Your help is very appreciated.

    Item is string. not of type datetime. You must first fills in /date datetime type and then add 30 min. After that, maybe you must convert to a string.

  • Validation on the page point is lost when creating dynamic action button


    Nice day

    I have some page elements like empno, job etc in my application to learn the goal where I validations

    to check the length of the point/numeric field and check for null

    I have 4 buttons [create, delete, cancel, apply changes] do dml basic operation

    Initially, all validations were shot when there was not any trigger attached to the buttons

    Once a dynamic action was created for a button by button create account to make these features as the insertion in arrays that are passed as a packaged procedure

    It works in all cases (for example) even if an entry is garbage does is allow inserts into the table and all the controls as EMPNO, JOBNO validations are ignored

    How can we ensure that these validations must be taken into account first and fired before and only if it is a valid entry before you create key

    otherwise it should always display error message when you enter invalid

    Tried to use the point of application by the shared components, then set value of Validation for function returns the error text a different value for the same point of the application

    [Like global variable]

    Don't know if the method described above is correct but stuck in this

    Not too much competent in JavaScript and didn't want to try if there is any possibility

    Kindly help on this

    Thank you

    Why not use page instead of dynamic action processes, they fire after validations

    Gus

Maybe you are looking for

  • Upgrade satellite Vista M30 - need drivers

    Hello I'm pretty clueless about computers and upgrades to Vista to realize I needed drivers. I have a M30-604, and where I would be able to find drivers for I can use wireless etc. Thank you Carol

  • Satellite L350 - 20G powers down during start up

    My Satellite L350 - 20G begins to start and 10 seconds after stopping powers. He also refused to load. We exchanged the batteries completely charged with the same model and the same problem.

  • The DVD firmware without OS update

    Hello My desktop a6722sc Pavilion (Vista Home Premium) has stopped running. Using recovery discs gives 'error 1012'. Error 1012 suggests it should be to update the firmware for the DVD drive. Have downloaded the update (sp41094.exe) on another comput

  • When I try to save my movie to a DVD, MovieMaker closes unexpectedly

    My movie plays well in Movie Maker, until I try to record a DVD.  About a third of the way through Movie Maker closes, puts a yellow exclamation mark on some of the video files and says Movie Maker does not format or the files are corrupted.  These a

  • Application for common among a result set

    Hi gurus,I have a defined result as below.SerialNumber Location FG 123, 87BrazilFG 123, 87CA123CD 87CA654FG 95CA654FG 95Brazil534AB12Brazil.......Now I want the output asFG 123, 87654FG 95The serial numbers that are common to both locations.Thanks in