Cancel button + navigation

Hi,
     I have a form which gets validated when the user clicks the submit button.
     Now, I have also included a Cancel button in the jsp page. I want that when the user clicks the Cancel button then without any validation taking place, the page should navigate as specified in the faces-config.xml.
The navigation-case for the Cancel action is as follows:
  <navigation-case>
   <from-outcome>Cancel</from-outcome>
   <to-view-id>/Type1.jsp</to-view-id>
     <redirect/>
  </navigation-case>          How do I use the Cancel button so that only the navigation takes place without validating the page.
Thanks in advance,
Deep

Add immediate="true" to the button.

Similar Messages

  • Previous page navigation after on click of cancel button of a form in adf

    Hi,
    Can any one tell how previous page navigation works in adf?
    I am working on a portal page which is having a common footer for all jspx pages.This footer contains a golink for feedback form.
    so the problem is when I Navigate to any page (# page 1)and then Navigate to some other page (#page 2) and on click of Feedback link displayed on footer of page 2 Feedback form is displayed. and on Click of Cancel button of the form.
    Expected Result:
    User should be navigated to the page that they were on. (i.e., Page 2)
    Actual Result:
    User is navigated to page 1 instead of page 2
    i.e it is taking browser previous url.
    I am using the following code for the cancel button
    <af:commandLink text="Cancel" id="cl5">
    <af:clientListener method="goBack" type="click"/>
    </af:commandLink>
    java script....
    function goBack()
    window.history.back()
    Edited by: 993530 on Apr 23, 2013 3:35 AM

    Hi,
    Immediate = true is already been set for cancel button
    The problem is when i come back to the 1st page vo is getting executed again and is taking lot of time.. i need to see that vo does not get executed again
    in the vo for view criteria -- query execution mode , i have made as in memory and now it has become fast on click of cancel button. But i am getting the following error when i perform search in the first page
    Missing FROM in a SELECT statement
    An unexpected expression token is found.
    Thanks,
    .

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

  • Cancel Button

    hi all,
    i have search page which displays a list of records with no "go" button as there are only 10 records to show.when i am navigating from search page to create page ,in create page i have submit or cancel button.
    if i press cancel button it is going to search page but not reflecting the data
    style of cancel button : button
    if i try using style as "SUBMIT BUTTON " it is asking to fill the mandatory fields but if i fill them and press cancel it is going to search page and reflecting the values...
    What i want is :
    i want a cancel button when clicked must navigate to the search page without asking for the manadatory fields..
    kindly help

    Hi,
    I hope you have put some url on cancel button.
    Like--
    OA.jsp?page=<YOUR_PAGE_PATH>*&retainAM=Y* //Insert the bold one
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                       

  • Removing cancel button

    For some time now I try to customize UIImagePicker and ABPeoplePicker. I want to remove 'Cancel' buttons that appear next to the title on the navigation bar of both controllers. Any help with this issue is greatly appreciated, as I ran out of ideas and am fed up with lack of documentation how to customize the controllers

    I solved this, all you have to do is to implement delegate method -willShowViewController and for any bar button item you want to disappear you need to make it's frame to CGRectMake(0,0,0,0).

  • Creating a 'CANCEL' button on Forms 5.0

    I would like to have a 'cancel' button right next to my 'save'
    button on a forms 5.0 application.
    The save button will:
    DO_KEY(COMMIT_FORM);
    I want the cancel button to rollback all changes to the last
    commit by that users. The problem is I don't know what code to
    place there...it seems if I use a SQL rollback that it clears
    the form...I guess this is because the button is associated with
    an anonymous datablock.
    Any help would be greatly appreciated,
    Also does anyone know of any forms templates that are around
    which may already have navigation and form control built-in....I
    would like to roll-out some templates to my team, but would like
    to get some ideas first.
    Thanks in advance...please help,
    Dennis
    P.S. I am, as you can tell by the question, just getting my feet
    wet with the Oracle Developer Toolset...can anyone recommend any
    web-resources like this discussion group that I should check
    out. I am already aware of comp.databases.oracle.tools Thanks.
    null

    Dennis,
    You cannot rollback once you have commit data unless you use
    POST (and savepoints) instead of Commit. I do not recommend
    going down this path as it can cause some major headaches down
    the road. I know it is nice to have feature but it adds some
    major time and headaches to the Project. For Templates, take a
    look at forms Demos for free stuff. For $$ stuff, Try Design
    Assist by Seeristic's. This is a product designed for Oracle
    Designer Generators but can be used by Developer only Teams. It
    has the best features I have seen. Also take a look at Peter
    Koletzke's Web Site. He, along with Paul Dorsey, has presented a
    paper on how to use templates to develop faster. I don't
    remember the address but you probably can find it if you do a
    Search on the web. (Paul's website is http://www.dulcian.com,
    Peter's Work Address is http://www.mvsn.com)
    Sunil
    daniel jensen (guest) wrote:
    : Dennis Hancock (guest) wrote:
    : : I would like to have a 'cancel' button right next to my
    'save'
    : : button on a forms 5.0 application.
    : : The save button will:
    : : DO_KEY(COMMIT_FORM);
    : : I want the cancel button to rollback all changes to the last
    : : commit by that users. The problem is I don't know what code
    : to
    : : place there...it seems if I use a SQL rollback that it
    clears
    : : the form...I guess this is because the button is associated
    : with
    : : an anonymous datablock.
    : : Any help would be greatly appreciated,
    : : Also does anyone know of any forms templates that are around
    : : which may already have navigation and form control built-
    : in....I
    : : would like to roll-out some templates to my team, but would
    : like
    : : to get some ideas first.
    : : Thanks in advance...please help,
    : : Dennis
    : : P.S. I am, as you can tell by the question, just getting my
    : feet
    : : wet with the Oracle Developer Toolset...can anyone recommend
    : any
    : : web-resources like this discussion group that I should check
    : : out. I am already aware of comp.databases.oracle.tools
    : Thanks.
    : If you look in Help, there is a built-in called POST with will
    : save changes without commiting the information to the
    database.
    : That might help you out.
    null

  • Cancel the navigation

    Hello everybody,
    I have 3 Views:
    1) Navigation-View with 2 Buttons to jump from View 2 to View 3 (This view is permanent visible)
    2) View_2
    3) View_3
    If the user is on view 2 and clicks on Button "view_3" I have a to do some checks for the values in view 2. If an error occurs, I dont want to navigate to view_3.
    How can I cancel the navigation?
    Thanks a lot, Regards Mario

    Hi ,
        if some condition are not met u can raise exception .....in which u can set message and also cancel the navigation .........
    wdComponentAPI.getMessageManager().raiseException()
    Regards,
    Yash

  • Cancel button doesn't 'cancel' - or?

    This is bound to be a stupid beginners' question, but I have asked stupid questions before and got good and useful answers, so here goes :-)
    I have gone through the hands-on workshops, and there's only one thing I can't get to work as described: The cancel button. The scenario is that I start from the 'Browse Customers' page, go to Edit Customers, change the first name and press cancel - I had expected the changes to have been discarded, but they are carried back to the 'Browse Customers' page. Admittedly, in SQLPlus I can see that it isn't in the table, but still... (Commit works fine, BTW). Is there something I need to set/unset somewhere?

    Jandersen,
    Good question - not stupid at all. I'm guessing that you have the Cancel button bound to a navigation case that takes you back to the "Browse Customers" page, correct? That, in and of itself, will actually post the changes to the model and then navigate back. The first thing I would try is setting the "immediate" property to "true" for the cancel button - this will avoid posting the changes to the model.
    John

  • 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

  • How to change the behaviour of the Cancel-Button of SSO-Login-Page (Forms)?

    Hi Folks,
    we use SSO-Login to authenticate users using Forms. How do I change the URL which is opened when a user clicks on the cancel button on the SSO Login page?
    In the formsweg.cfg file there is a parameter named ssoCancelUrl, but if I define it, it doesn't work anyway. Seems like it has something to do with ssoDynamicResourceCreate, but I don't exactly understand what.
    Can't I simply change the URL which is opened (globally), when a user hits the cancel button on any SSO-Loginpage.
    Thanks in advance.
    Regards.

    Exactly this does not work! Please watch my settings:
    Global Setting in formsweb.cfg
    # Single Sign-On OID configuration parameter: indicates whether we allow
    # dynamic resource creation if the resource is not yet created in the OID.
    ssoDynamicResourceCreate=false
    # Single Sign-On parameter: URL to redirect to if ssoDynamicResourceCreate=false
    ssoErrorUrl=
    # Single Sign-On parameter: Cancel URL for the dynamic resource creation DAS page.
    ssoCancelUrl=
    # Single Sign-On parameter: indicates whether the url is protected in which
    # case mod_osso will be given control for authentication or continue in
    # the FormsServlet if not. It is false by default. Set it to true in an
    # application-specific section to enable Single Sign-On for that application.
    ssoMode=false
    App-Specific settings in formsweb.cfg
    [proz]
    envFile=proz.env
    form=proz.fmx
    title=proz
    separateFrame=true
    width=1280
    height=960
    ssoMode=true
    ssoDynamicResourceCreate=false
    ssoCancelURL=http://machinename:port/zugangsportal/
    otherparams=useSDI=yes P_SERVER_URL=machinename:port P_REP_SERVERNAME=machinename_proz ZP_TARGET_ID=%ZP_TARGET_ID%
    When I now access http://machinename:port/forms/frmservlet?config=proz I got redirected to the SSO-Login-Page but the Cancel-Button still links to Middletier Home. Why?
    Regards.

  • How to redirect to home page on "Cancel" button click

    Hi,
    I have created a web part for office 365 developed using sandbox solution on Sharepoint foundation 2013.
    On "Cancel" button click i want to redirect user to another page(Home page) using C# only.
    i used some methods like 
    Context.Response.Redirect(SPContext.Current.Web.Url.ToString() + "/Home.aspx");
    but its not working. No methods which includes context or HttpContext is not working.
    Please, tell me how can i redirect user to site home page.

    Hi,
    you can try this
    var button
    = new Button();
    button.Attributes.Add("OnClick"
    , "javascript:{window.location='your
    page url';return
    false;}");
    this.Controls.Add(button);
    Hope it helps!
    Avni Bhatt

  • 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

  • How to stop the Flex application when user clicks on Cancel button from JS-confirm message?

    Hi All,
    I use the next code when a user clicks on a link:
    private function clickHandler():void
          ExternalInterface.call('confirm', 'Of course you want to go to the Adobe forums!');
          navigateToURL(new URLRequest('http://forums.adobe.com'), '_self');
    This will show up the javascript confimation box. But when the cancel-button is clicked, the user goes straightly to http://forums.adobe.com...
    How to stop Flex performing the next code when a user clicks on the Cancel button?
    Or, how to catch which button is clicked by a user in Flex?
    Thanks!

    I agree with Mr. Hall that using mx.controls.Alert in Flex may be a better route.
    Show the Alert like this:
    // show an alert with a question and yes and no choices
    Alert.show( "Would you like to go to the Adobe Forums?", "Question",
         Alert.YES | Alert.NO, this, closeHandler, null, Alert.YES );
    Then handle the response in the closeHandler() function:
    protected function closeHandler( closeEvent:CloseEvent ):void
    if( event.detail == Alert.YES )
         navigateToURL( new URLRequest('http://forums.adobe.com'), '_self' );
    else if( event.detail == Alert.NO )
         // they chose no
    The following documentation on Alerts may be helpful:
    http://www.flexafterdark.com/docs/ActionScript-Alert
    Let me know if that helps...
    Ben Edwards

  • How to handle the "cancel" button and "close" icon of a popup ?

    Hi,
    I have a popup with "cancel button" and "close icon"(on the top right corner of the popup), I want the same operations to be performed on clicking of any of these two components.
    Is there a way to handle such situation ?
    I read about 2 cases to look into this but they didn't work too well for me.
    1. I read about the "popcancellistener" but that listener is called whenever the popup closes, so suppose I have an "ok button" on the popup to create a record, after the record is created, the popup closes and goes into the "popcancellistener", now the question is "how do we know if it came there because of the 'ok button' or 'some other event'".
    2. I even checked the "DialogListener", now I'm able to distinguish between the 'OK' and 'CANCEL' button in the dialoglistener using the "Dialog.Outcome.ok/cancel", but when a user clicks on the close icon, we do not enter the "DialogListener" at all, so in this case "how do we handle the close icon click event"
    Do let me know if you need any more information from my side.
    Thanks for the help in advance.

    The following mechanism responds to any of the following events: <Esc> key, Close icon ('x'), Cancel button
    JavaScript part:
    function popupClosedListener(event){
                  var source = event.getSource();
                  var popupId = source.getClientId();
                  var params = {};
                  params['popupId'] = popupId;
                  var type = "serverPopupClosed";
                  var immediate = true;
                  AdfCustomEvent.queue(source, type, params, immediate);
    }JSF part:
             <af:popup ....>
                  <af:clientListener method="popupClosedListener"
                                           type="popupClosed"/>
                  <af:serverListener type="serverPopupClosed"
                                          method="#{myBean.serverPopupClosedMetod}"/>
            </af:popup>Finally, Java part:
    public void serverPopupClosedMetod(ClientEvent event){
    }

Maybe you are looking for