Trapping Apply Cancel Button Press

Hi,
I have an extension page to process client specific data that contains an Apply and a Cancel button. When the user presses the Apply button I need to trigger the commit. However, the code never gets triggered.
In my processFormRequest() I have the following statement:
if (pageContext.getParameter("Apply") != null)
// do commit.....
Under debugger I can see jDeveloper action the if statement but it never steps into the commit.The Button that triggers the processFormRequest is called "Apply" (in its ID) and it has a type of submitButton.
Anybody come across this one before ?
Thanks,
Paul

Ummm,
solved this one myself (embarrased silence...)
I had the ActionType set to 'fireAction' on the apply button, rather than to 'none' as it should be...
Not sure why, as I dont recall setting it but still.
Problem solved.
Have to go and look up what fireASction is supposed to do...:-)

Similar Messages

  • I have my username, password, and sync key but I cannot click the next button to complete the sync setup?! Neither the next button nor the cancel button press?!

    I try to setup my sync account with Ubuntu 13.10 and I am able to enter my user name and password and recovery key but the next button will not click and neither will the cancel button. Only the back button, sync options button, and the x at the top of the screen are functioning?

    Did you enable the Side Bar?
    Select "Show Side Bar" from the "View" menu of iTunes.

  • Cancel button to display confirmation dialog in an edittable form

    Hi everyone.
    I have got a requirement that in my edittable form, I need to show confirmation popup before canelling the page and discarding all the changes.
    But, before showing that dialog, I need to figure out if any changes happened or not?
    As usual, my cancel button is set to immediate=true, and for that reason, I couldn't find any way to see whether user done any change or not.
    As far as I know, there are two ways to find out the changes:
    1. using Data control
            ApplicationModule am = ADFUtils.getDCBindingContainer().getDataControl().getApplicationModule();
            return am.getTransaction().isDirty();
         OR
            BindingContext bc = BindingContext.getCurrent();
            String currentDataControlFrame = bc.getCurrentDataControlFrame();
            return bc.findDataControlFrame(currentDataControlFrame).isTransactionDirty();
    2. using commit button:
    Boolean changed = (Boolean)JSFUtils.getManagedBeanValue("bindings.Commit.enabled");
    But, both of them cannot reflect the change in case of postback caused by cancel button, as mentioned its immediate=true
    Any solution to find out changes if cancel  button pressed?
    Cheers,
    Nasser

    I have the same case, and I'm using the below code for the button action listener, with immediate=true.
        ControllerContext cctx = ControllerContext.getInstance();
            if (cctx.getCurrentRootViewPort().isDataDirty()) {
                RichPopup.PopupHints hints = new RichPopup.PopupHints();
                getExitPopup().show(hints);
    try this, maybe it will help.

  • How to stay back on same section of a report after pressing cancel button

    Hi,
    How we can stay back on a same section of a report page when I press Cancel button or Apply Changes button from linked Data Entry Form. For instance if I have a 200 rows in a report and I scroll down to 80th row and press Edit button when called a data entry form. Now when I press Cancel it again re-load the report from the start of the page.
    Any idea!
    Thanks
    Sabahat

    Hi Sajid,
    Thanks for reply.
    I have used RETURN statement like below.
    SUBMIT RFWT0010 WITH vendor       = 'X'
                     WITH i_lifnr  IN i_lifnr
                     WITH i_bukrs  IN i_kunnr
                     WITH test         = 'X'
                      AND RETURN.
    The output of RFWT0010 is displayed. but on pressing "back" button on toolbar, the flow is coming back  from RFWT0010 to calling report. I want that On pressing ENTER button of keyboard. The flow should come back to calling report.
    Regards,
    Ratnesh

  • Trapping - "Do you want to save changes" alert button pressed

    When exiting a data block with unsaved changes, the user is prompted with "Do you want to save the changes you have made ?" The possible button click responses are "Yes", "No", "Cancel"
    Is there a way to programmatically catch the click on the "Cancel" button ?
    Oracle Forms 10g

    Thanks for the suggestion W1zard. Here is the solution that I have come up based on the recommendation.
    Essentially I create my own custom alert that mimics the system generated alert. In this manner I am able to control the behavior based on the alert button pressed by the user. This method also suppresses the system generated alert, so the user isn't prompted twice.
    At the form level I have created the KEY-EXIT and the KEY-ENTQRY triggers. Additionally I created an ALERT titled SAVE_CHANGES with buttons Yes, No, Cancel.
    h4. KEY-EXIT Trigger
    DECLARE
         alert_id     ALERT;
         alert_button     NUMBER;
    BEGIN
         IF :SYSTEM.FORM_STATUS IN ('CHANGED') THEN
              alert_id := FIND_ALERT('SAVE_CHANGES');
              alert_button := SHOW_ALERT(alert_id);
              -- ALERT_BUTTON1 is Yes, ALERT_BUTTON2 is No, ALERT_BUTTON3 is Cancel
              IF alert_button = ALERT_BUTTON1 THEN
                   EXIT_FORM(DO_COMMIT);
              ElSIF alert_button = ALERT_BUTTON2 THEN
                   EXIT_FORM(NO_COMMIT);
              ELSE
                   RAISE FORM_TRIGGER_FAILURE;
              END IF;
         ELSE
              EXIT_FORM;
         END IF;
    END;h4. KEY-ENTQRY Trigger
    DECLARE
         alert_id     ALERT;
         alert_button     NUMBER;
    BEGIN
         IF :SYSTEM.FORM_STATUS IN ('CHANGED') THEN
              alert_id := FIND_ALERT('SAVE_CHANGES');
              alert_button := SHOW_ALERT(alert_id);
              -- ALERT_BUTTON1 is Yes, ALERT_BUTTON2 is No, ALERT_BUTTON3 is Cancel
              IF alert_button = ALERT_BUTTON1 THEN
                   COMMIT_FORM;
                   ENTER_QUERY;
              ElSIF alert_button = ALERT_BUTTON2 THEN
                   CLEAR_FORM(TO_SAVEPOINT);
                   ENTER_QUERY;
              ELSE
                   RAISE FORM_TRIGGER_FAILURE;
              END IF;
         ELSE
              ENTER_QUERY;
         END IF;
    END;

  • Problem when press CANCEL button

    Hello Everyone,
    I have created the block which having the LOV and this is the mandatory field. There are two buttons placed on this block canvas "OK" and "Cancel".
    This new block is calling from main block, if user don't want to choose LOV item and he simply click on "Cancel" button then control should transfer to main block. But when user press the "Cancel" button automatically control transfers to "On-Commit" trigger.
    On cancel button i have written GO_BLOCK('BLOCK_NAME'); but it does not works.
    Please suggest the way how i can close the block.
    Regards,
    JAK

    JAK,
    It sounds like you have not terminated further processing in the form. Try adding 'RAISE Form_Trigger_Failure;' after your GO_BLOCK(); call. This should ensure no further processing is done after you navigate to the specified block.
    Hope this helps.
    Craig...

  • Perform Delete when Cancel Button is pressed

    I have a 10 page wizard for data entry. When Next is pressed on each page, that page's data is inserted to the corresponding table.
    However, when a user clicks the Cancel button anywhere in the wizard, I want any data inserted from the current wizard instance to be deleted.
    I am having problems getting this to work - I setup a process that should delete everything with the condition of the CANCEL button being pressed, but for some reason it's not firing.
    Any ideas?
    Thanks,
    Kevin

    If a user is halfway ....Look at it this way...Various wizard pages insert rows into various tables. Mark all of them (or some appropriate "master" record) with a "Pending" flag.
    Pressing Cancel is nothing special, just like closing your browser window, the Pending data would continue to hang around.
    You could set up background jobs that purge pending data older than N days or something if you like.
    What I was suggesting was that the "start wizard" button/process should first delete all these Pending rows before starting its real work.

  • Changing Navigation when cancel button is pressed

    Hello All,
    We are having custom responsibility for Offer and vacancy creation. New Menu of type(App Pref Menu Container) is created and the required functions and sub menus are attached to it. This was done earlier by someone else. Now when ever i start a transaction (i.e. create offer) and then cancel it, it goes to the custom home page of that responsibility. Now i want to change the navigation page when cancel button is pressed. I believe it was achieved through menu only. Can anyone suggest how?
    Thanks and regards,
    Pradeep

    If a user is halfway ....Look at it this way...Various wizard pages insert rows into various tables. Mark all of them (or some appropriate "master" record) with a "Pending" flag.
    Pressing Cancel is nothing special, just like closing your browser window, the Pending data would continue to hang around.
    You could set up background jobs that purge pending data older than N days or something if you like.
    What I was suggesting was that the "start wizard" button/process should first delete all these Pending rows before starting its real work.

  • On my ipad if I accidentally press buy it now on ebay, the cancel button won't work and I end up buying something I don't want. What can I do

    If I accidentally press the Buy it now Button on ebay, I should be able to cancel it at checkout but the cancel button won't do this and I end up buying something I don't want.  Help ?

    Downloading (using iOS or computer) past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not all media formats are available in all countries (see: iTunes in the Cloud and iTunes Match Availability by Country - http://support.apple.com/kb/HT5085); apps, books (not audiobooks), music, t.v. shows, and movies (some - not all studios have permitted this).  Downloading previously purchased movies and TV shows requires iTunes 10.6 or later.  Discontinued items not available. For items not included in the iCloud list (e.g., ringtones), or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid.  Apple notes it is your responsibility to back up your purchases.
    Select the store on the left side of iTunes.
    Click on Purchased on the right side under Quick Links.
    You can re-download your available previous purchases.

  • I can't open my computer. When I type in the password an extra arrow appears facing upwards (the other one facing to the RHS) If I press either nothing happens  there is a cancel button as well (which i don't need)  HELP!?

    I cannot open my computer>  When I type in my password an extra arrow appears (facing upwards) If I press either the usual arrow (facing RHS) or the new one nothing happens.
    A cancel button below the password is also present
    I am getting desperate
    Any ideas
    Thanks
    Debbie

    Check that your Caps lock isn't on. Maybe the light that indicates whether it is or not has stopped working. Anyway, try pressing it see if it helps.

  • How to say that variable == null if pressed cancel button.

    Hi! I have code line in jspx page:
    #{viewScope.myParamSusceptibToCrackingKi == null ? SusceptibToCrackingKi.myParamInitialValue : viewScope.myParamSusceptibToCrackingKi}How can I say that myParamSusceptibToCrackingKi == null (nothing) if I press cancel Button in form, or press refresh button in browser?
    Best regards, Hope You help, Debuger!

    Hi, Timo! To better Understand:
    In jspx page I have some inputText fields:
    <af:inputText id="CropTypeKiExplain"
                                      value="#{viewScope.myParamCropTypeKi == null ? CropTypeKi.myParamInitialValue : viewScope.myParamCropTypeKi}"
                                      changed="#{changedFlagsMap['CropTypeKiSkaidr']}"
                                      partialTriggers="CropTypeKi" readOnly="true"
                                      contentStyle="color:Gray;"
                                      rendered="#{skaidrojumaApskate.radit != '5'}"/>
           <af:inputText id="VirusDiseaStatKiExplain"
                                      value="#{viewScope.myParamVirusDiseaStatKi == null ? VirusDiseaStatKi.myParamInitialValue : viewScope.myParamVirusDiseaStatKi}"
                                      changed="#{changedFlagsMap['VirusDiseaStatKiSkaidr']}"
                                      partialTriggers="VirusDiseaStatKi"
                                      readOnly="true" contentStyle="color:Gray;"
                                      rendered="#{skaidrojumaApskate.radit != '5'}"/>variables: myParamCropTypeKi and myParamVirusDiseaStatKi have some value. But I want that if I press button in my form, they will be empty. Where to put code?
    And what code I need to write to say that? Mabe I can write: #{viewScope.myParamCropTypeKi is null} and #{viewScope.myParamVirusDiseaStatKi is null} . But where?
    Best regards, Debuger

  • Memory is low. Job cancelled. Press OK to continue.

    Hello everyone
    I've looked high and low for an answer to this and I thought I figured it out but the issue has come back.
    I bought a HP HP LaserJet 400 M401dw from ebay.
    When the printer arrived I connected it wirelessly and turned on duplex printing. I printed my first page and it worked great until now (about 2 weeks later)
    The same issue has come back from when duplex was on.
    It says:
    "Memory is low. Job cancelled. Press OK to continue."
    It prints the first page sometimes and not the other.
    You can see from below the memory looks ok???
    Any idea why?
    I am running the latest OSX 10.10.2.
    Many thnks.
    Product Name: HP LaserJet 400 M401dw
    Formatter Number: X601L2F
    Serial Number: [Personal Information Removed]
    Service ID: 22294
    Firmware Datecode: 20111103
    Smart Install SW Version: 11/03/2011,1.0.11307.338
    HP Smart Install: Enabled
    Location: UK
    Max Print Quality: ProRes 1200
    Controller Number: 5
    Duplexer Version: 0
    Device Description: HP LaserJet 400 M401dw
    Language: English
    Asset Number:
    Your Company Name:
    Contact Person:
    Device Location:
    Product Security: Off
    Quiet Print Mode: Off
    Wired HW Address: x
    Wireless HW Address: x
    Network In Use: Wireless
    Host Name: NPI910431
    IPv4 Address: x
    IPv6 Address: x
    Total Memory: 256 MBytes
    Available Memory: 187.3 MBytes

    Hi @Med_Stud10 ,
    I read your post and see that you are getting a "Low Memory" error when trying to print. I will certainly do my best to help you.
    Check the driver name that is installed for the printer. Make sure it shows just the printer's name.
    Click the Apple menu and then click System Preferences. Click Printers & Scanners, highlight the printer name on the left side and on the right side of the screen it should show the printer's name. (Laserjet M276)
    If the full printer name isn't listed correctly, delete it and add the printer name back in from the list. Click the - sign to delete the driver and then click the + sign to add the driver, you might have to click the drop down to select the printer's name to add it in.
    Try printing again.
    I have provided the steps for setting up the printer through IP Protocol if the issue persists, which has resolved other "Low Memory" errors.
    Print a Configuration page to get the printer's IP address. HP LaserJet Pro 200 Color MFP M276n and MFP M276nw - Printing a Configuration Report.
    Delete the printer from Printers and Scanners.
    Click on the + button, select the IP Protocol across the top, type in the printer's IPv4 address, select Jet Direct below and then Apply.
    Try printing again.
    For scanning though, you will have to select the Bonjour printer.
    If you are still having issues, try the reset which I will send you in a private message.
    In the forum beside your handle name just click on the envelope to view it.
    Please let me know the outcome.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • How to capture sy-ucomm BACK EXIT or CANCEL button in webdynpro from inbox

    I have a webdynpro which is triggerd by a inbox item (the inbox item is now reserved), on pressing BACK EXIT or CANCEL i want  to release the inbox item.
    In de webdynpro view methode WDDOEXIT i can do this butr i need to know if one of the three buttons ( BACK EXIT or CANCEL) is pressed by the user.
    sy-ucomm is empty.
    Is there a way to find out if a GUI button is preesed??
    Grtz and thanks
    RIchard

    hi, thanks for your response!
    I can't use your hint, because with the code:
    SELECTION-SCREEN BEGIN OF screen 100 as window.
    there will be a "GENERATED" screen. This means, there
    is a screen with all the input fields und the label 100 which I can't
    edit! Because if I edit this screen and activate my source again,
    my changes will be undone!
    So is my question, if there is another system-field than sy-ucom?

  • Delete From Table on Cancel Button.

    Hi,
    i am facing funny problem.
    i have created form with report page and i have implement send email option on Page so i am attach more document with email.if i attach document then it's going in DUMY_DOC_FILE table .
    i have create a process
    delete from DUMY_DOC_FILE .
    Process Point IS ON Submit -After Conmputation and Validation
    On Page No 6.if i press Cancel Button.This button is redirect on page No 4.My Code on Page no 6.
    page is redirect to 4 but doc don't delete from DUMY_DOC_FILE Table.
    How to delete Doc From Table If I press Cancel Button.
    Thanks
    Edited by: 805629 on Jan 13, 2011 5:25 AM
    Edited by: 805629 on Jan 13, 2011 11:49 PM
    Edited by: 805629 on Jan 14, 2011 12:43 AM

    <li>Change Cancel Button in page 6 so that it submits.
    <li>If u have conditions on that delete PLSQL process, make sure that it runs when CANCEL button is pressed also. If it is unconditional, let it be.
    <li>Add a branch for the Cancel button which redirect to page 4
    So effectivelly instead of *[CANCEL] -> [Redirect to page 4]* , it becomes *[CANCEL] -> [SUBMIT] -> [DELETE PROCESS] -> [Branch: redirect to page 4]*

  • Cancel button on form of type form on a table or view

    I am a newbie for apex. I am using 10g. I have created form on table emp(empno , name , salary ) . Form is of type Form on a Table or View.
    Cancel & Save(Apply changes) button are not working at all. so I copied process reset page and execute on condition save button click. But still cancel button is not working. applcation has some other forms of type Form with a Report and are working properly. I have wasted 2 days on this problem.

    Hi,
    You can do that. If you have the branch to in the same form what you have to do use clear cache for that page. Click on the edit page, click on the cancel button in the left button section. scroll down to bottom and type the page 32 in the Clear cache field. However it is better to have branch to the report page (different page from the form).
    Hope this will help.
    M Tajuddin
    http://tajuddin.whitepagesbd.com

Maybe you are looking for

  • Troubles in copying a VGroup from one state to another

    Hey there! I am trying to build an application where the user can select whatever he wants to appear in his homepage. The user is given a list of checkboxes (with a corresponding label and image to every checkbox). I have kept all three of these item

  • What type of partition should I use? Range or Hash or ..?

    Hi, I am on Oracle 8.1.7.4 . I have a table with 10 million rows and looks like its a good candidate for partitioning. There is a varchar2 column and the data is evenly distributed on the string value. If I want to partition the table on that string

  • Using environment variables in a wmi query

    Hello I'm trying to use WMI Queries on Group Policy Preferences to targeting computers on my network. I have a file named testfile.txt in Windows directory and I check its last modified date to replace the policy files if the date is older of than cu

  • Tree functionality in htmlb:tableView

    I heard that with the newest SPs, you can add tree functionality (hierarchies; expand/collapse) to a htmlb:tableView. Does anybody have a good example for this? Regards, Daniel

  • No valuation for customer returns material

    HI, when goods receipt is done for the returns and repair process thare should be no valuation done for the material returned by the customer as the material is a returnable material to the customer. how to track this in SAP. REGARDS, RAJESH KUMAR RA