Invoking Return button functionality internally

We are calling a custom page from an existing page. We have added a link to the existing page and have set the Destination URI property to this new page URL. The functionality required on this custom page is that after the user enters the required values and clicks on OK button, the record should be inserted into the database and user should be redirected to the previous screen. The issue is that after we have inserted values into the database and we redirect to the previous screen using setForwardImmediately, it gives an error:
You cannot complete this task because one of the following events caused a loss of page data:
Your login session has expired.
A system failure has occurred.
I would like to know how to invoke Return functionality internally since it seems to be working fine. If anyone can also tell me why I am getting the above mentioned error, then it would be of great help.

It would help if you outlined what technologies you are using here? Struts + JSP?, UIX?....

Similar Messages

  • Invoking standard button functions manually

    I'm working with a JFrame child window that operates on an open file. When the window closes, the file should be updated with the latest information that the user was editing.
    I have found that the "x" button generates the expected output, but closing the window by any other method doesn't seem to produce the same results.
    I currently have the window in question set to dispose on exit, and in my other methods of closing the window, I have tried invoking setvisible(false), dispose, and finalize (in various orders), and so far none of these appear to reproduce the results that clicking "x" does.
    I was wondering if there was some way I could invoke the x button manually in my code, or if there's some other way I can produce the same results.
    Thanks,
    ~marloke

    Here's the code sections related to opening the window, and saving the file.
                   xmlFileA = new entryRS(entFileA);
                   window = new entryWindow(tifName, xmlFileA, curUser);
                   //window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   window.setDefaultCloseOperation(JFrame.
                                       DISPOSE_ON_CLOSE);
                   window.pack();
                   window.fixWindow();
                   window.setVisible(true);
                   window.goEnd(); //Go to the latest record
                   window.addWindowListener(new WindowAdapter(){
                        public void windowClosing(WindowEvent e){
                            System.out.println("----WINDOW CLOSING----");
                            writeEntry();
        private void writeEntry(){
         xmlFileA.save2Disk(entFileA);
        public void save2Disk(String outLocation){
         try{
             TransformerFactory tFactory = TransformerFactory.newInstance();
             Transformer transformer = tFactory.newTransformer();
             //Place xsd location data in head node
             edit.setRootAttrib(doc, W3C_XML_SCHEMA+"-instance", schemaSource);
             DOMSource source = new DOMSource(doc);
             StreamResult result = new StreamResult(outLocation);
             transformer.transform(source, result);
         } catch (TransformerConfigurationException tce){
             //Transformer Configuration Error
             tce.printStackTrace();
         } catch (TransformerException tex){
             //Transformer Error
             tex.printStackTrace();
         } catch (NullPointerException npe){
             // Memory error
             npe.printStackTrace();
        }Thanks,
    ~marloke

  • How to customize the return button

    Hi;
    I need to validate if ‘Return’ button functionality can restore previous page with the data that had been entered.
    Example.
    Header page is table format with header ID , header status and two input fields. Users can enter dates on many rows, then, when the user clicks on one header record, the details page for that record is displayed. When the user hits return from the details, we want to not only go back to the header page and display the original queried results, but we want to also retain the input dates that the user entered on all the rows.
    Is this possible with or without the extensive use of temp tables?

    While returning back to original page keep retain AM property value to true. This will take care of everything.
    Sample code:
    pageContext.setForwardURL("OA.jsp?page=/<yourname>/oracle/apps/ak/employee/webui/EmployeePG",
                                   null,
                                    OAWebBeanConstants.KEEP_MENU_CONTEXT,
                                    null,
                                    null,
                                    true, // here we have kept Retain AM  value to true
                                  OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
                                    OAWebBeanConstants.IGNORE_MESSAGES);-Anand

  • Invoke a planning function in BI-IP using a button to copy filtered data

    Hi All,
    I am using a planning function type copy to create a new version of data in the infocube.
    In Web Application Designer, I created a button that invoke my planning function using a command type EXEC_PLANNING_FUNCTION. So, I would like to copy the records displayed in my analysis item (that are filtered by some drop down items), but what is happening is that all records in infocube are copied instead of copying the data that is filtered by the drop down items.
    Can you help me with any suggestion?
    Thank you.
    Bruno Rodrigues

    Hi Bruno,
    "How I can use the planning filter to restrict for the values presented in the drop down boxes?"
    You can create the filter which contain the characteristic which you use when created dropdown boxes.
    You can add chararcteristics values in the filter, these values you will see in the dropdown box.
    You can use the dropdown boxes to restrict the filter.
    You can place the dropdown box (boxes) on your BEx workbook, and connect (with macro I think) to the SAP.
    If you choose a value in the dropdown box and run the sequence, the sequence's filter will be restricted that value which you choosed.
    Best regards,
    Gergely Gombos

  • I have a macbook pro with OSX Mavericks 10.9.5 and some keys that are not working. Specifically, the enter/return button, the "p", "0", ";", and all the function keys.  What's really weird is that happens randomly.  I've never spilled anything on it

    I have a macbook pro with OSX Mavericks 10.9.5 and some keys randomly are not working. Specifically, the enter/return button, the "p", "0", ";", and all the function keys.  What's really weird is that happens randomly.  I've never spilled anything on it, and I can't for the life of me figure out how to fix this.  Can anyone help?  of course this happened after my warranty expired.

    **update**
    I don't know if this will help someone but I am posting this for that purpose.  In the past when I first had this problem, I'd read a post somewhere (sorry, long ago, don't have the link) where an individual was having the same problem and they stated that when the MBP got heated, that's when the keys would stop working, and they went into the MBP and jiggle some stuff around (a specific wire, I'm not electronically inclined so I know NOT of what they spake!).  Well I didn't want to do that but it always stuck in the back of my mind.  I had given up, really, and was planning to take my MBP to the apple store.  But by chance one night I left my MBP on the floor where it's cool, and when I turned it on, the problem went - poof! It seems there was some validity to the post that spoke about heat, because my problems started when I would stream foreign dramas on my MBP for hours at night, and I would hear the fan going off all the time, and in the mornings, my "p", "enter", "0", ";", and all the function keys would stop working. 
    So, maybe try keeping the MBP in a cool place when it's off.  Since I've started doing this overnight every night (keeping it on the cool floor, out of reach of any big feet), I have not had a single problem with my keyboard.
    Hopefully this might help someone.

  • The Problem is about Standard Back Button Function in Report Program

    The Problem is about Standard Back Button Function in the Report Program.
           In the Report,First call screen Then Using "write" output some information,That is ok. but In the GUI When I press back button that is standard button,it exit screen to program.
           My question is how can i do When i press back button,the screen can be back forward first screen instand of exit screen to program.  Thanks .

    This problem is solution.I call screen using T-code and submit report In PAI,at last return to PAI.That is OK.

  • Adding button functionality

    I want to add a simple button to a really basic html page with nothing but that button.
    When the button is clicked it should open up my form in a suitably sized popup window.
    Heres the form:
    <html>
    <head><title>Please enter search criteria</title>
    <script type="text/javascript">
    <!--
    // Form Validation
    function validateForm(fObj)
         alert("validating");
         var err = "";
         if(fObj["title"].value == ""){
              err += "- title\n";
         if(fObj["description"].value == ""){
              err +="- description\n";
         if(fObj["location"].value == ""){
              err +="- location\n";
         if(fObj["weather"].value == ""){
              err +="- weather\n";
         if(fObj["mood"].value == ""){
              err +="- mood\n";
         if(fObj["date"].value == ""){
              err +="- Date\n";
         if(fObj["time"].value == ""){
              err +="- time\n";
         if(err != ""){
              alert("The following fields contain errors, or are incomplete:\n\n"+ err);
                   return false;
         return true;
    function getSelectValue(selObject){
        return selObject.options[selObject.selectedIndex].value;
    function hasSelection(strField){
      return strField.selectedIndex > 0;
    function isChecked(strField){
    if (!strField.length) return strField.checked; // not a group
    for(var i = 0; i < strField.length; i++){
          if(strField.checked) return true; // yes one was ticked
    return false;
    function compareFields(strValue,strValue2){
    return strValue == strValue2;
    // -->
    </script>
    <link rel="stylesheet" href="styles.css" type="text/css">
    </head>
    <body>
    <FORM action=" AddMovieProfile.jsp" method="post" onsubmit="return validateForm(this)">
    <table width="240" border="0" cellpadding="5" cellspacing="0" background="backdrop.jpg">
    <tr>
    <td>
    <br>
    <table width="94%" border="0" cellpadding="0" cellspacing="2" align="center">
    <tr><td colspan="2" height="20" align="center"><font size="3" color="#0000aa"><b>Enter Search Criteria</b></font></td></tr>
    <tr><td>
    </td></tr></table>
    <br>
    <table width="100%" border="0" cellpadding="0" cellspacing="2" align="center">
    <tr><td><b>Title:</b></td><td align="center"> <input TYPE="text" NAME="title" size="20" maxlength="50"></td></tr>
    <tr><td><b>Description:</b></td><td align="center"> <input TYPE="text" NAME="description" size="20" maxlength="50"></td></tr>
    <tr><td width="100"><b>Location: </b> </td><td align="center"><input TYPE="text" NAME="location" size="20" maxlength="50">
    </td></tr>
    <tr>
    <td><b>Weather: </b> </td><td align="center"> <input TYPE="text" NAME="weather" size="20" maxlength="20" class="input"></td></tr>
    <tr>
    <td><b>Mood: </b> </td><td align="center"> <input TYPE =" text" NAME="mood" size="20" maxlength="20"></td></tr>
    <tr>
    <td><b>Date: </b> </td><td align="center"> <input TYPE =" text" NAME="date" size="20" maxlength="20"></td></tr>
    <tr>
    <td><b>Time: </b> </td><td align="center"> <input TYPE =" text" NAME="time" size="20" maxlength="10"></td></tr>
    </td></tr>
    <tr valign="middle"><td width="50%"><b>InOut:</b></td><td width="50%"><SELECT NAME="inout">
    <OPTION SELECTED> Indoors
    <OPTION> Outdoors
    <OPTION> Both </SELECT></td></tr>
    <tr><td colspan="2"> </td></tr>
    </td></tr>
    </table>
    <tr><td colspan="2">
    <table>
    <tr><td colspan="2" align="center"><input type=submit value="Submit Details!"></td></tr>
    <tr><td colspan="2" align="center"><input type=reset value=" Reset Form "></td></tr>
    </table> </FORM><br><br>
    </body>
    </html>

    The question is how do i do a plain html page with a
    button on it that has the functionality i mentioned,
    ie the button pressed event is that it opens a pop up
    window with my form in it.Ahh, I see. In that case, do as pgeuens suggests.

  • Button function failure

    Why do my button functions work perfectly on my iPad2 Adobe Content Viewer the first time and then do not function at all in subsequent viewings. For example, the next page button ceases functioning after the first viewing. On page 2, the next page button returns me to Page 1.

    Hi lhprod,
    I was looking at this document:
    http://helpx.adobe.com/digital-publishing-suite/help/supported-interactivity-features.html
    Note in the Interactivity features not supported section the reference to button actions. I think this is not a supported feature.
    -Dave

  • Button Functionality Gone

    I sent a Captivate 7 file to a translation company and when they returned the file with their text updates all of the button functionality was gone. Does anyone know what could have stripped out all of the settings for those buttons because they are all set for Continue only.

    Actually, my last comment might have been premature.  I just re-read your original post and noted that you mentioned this was sent to the company for translation.  If so, then it's quite possible they may have found that exporting an MS Word doc out of the project for translation and importing it back did not change the button text.  So for some reason instead of just changing the text of the buttons they've deleted and added them.
    Either way, the only way to know would be to get in touch with the translation company again and ask them what they did.  This could be a major issue if you had created some really complex interactivity.

  • Is it possible to disable the Export Application Button/functionality

    Hi fellows,
    I need to disable the export button/functionality in a customer's apex installation (3.2.1) as part of the security measures.
    Customer do not want developers to be able to export the applications they have access to. As the internal application is not editable (is it with some sort of trick??) , does anyone ever had this requirement and know how to do it?
    Thanks in advance for your support.
    JP

    Hello,
    >> I need to disable the export button/functionality in a customer's apex installation (3.2.1) as part of the security measures.
    >> this need applies for both development and production enviroments although if a solution is available, it will be first tried in the development enviroment.
    I agree with Tyler, this is indeed a really strange request. If your customer can’t rely on his developers, I would say you have a problem. I’m saying it because disabling the export button, even if it’s possible, doesn’t really give you any kind of protection. A malicious developer can still export APEX application using the Java utility APEXExport; it can be done with SQL Developer; it can also be done on a page level, and I only named the documented options.
    I don’t think this type of action should be considered for a development environment. Of course, the production environment is a completely different ball game. You can use the APEX run-time only environment, and by that neutralize most of the developer related “risks”.
    Just my 2 ¢,
    Arie.

  • RFC Error While Invoking A Remote Function Module.

    I am invoking A remote function module while invoking it get  an exception when i see the error logs
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException:      Screen output without connection to user.                           , error key: RFC_ERROR_SYSTEM_FAILURE at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:101) at... [see details]
    can anyone pls tell me what the error is..
    regards
    Nilesh Taunk.

    Hi Nilesh Taunk,
    You can go through the following steps
    -o JCO Exceptions 1. http://help.sap.com/saphelp_nw04s/helpdata/en/f6/daea401675752ae10000000a155106/frameset.htm
    -o JCO Exceptions 2. http://help.sap.com/saphelp_nw04/helpdata/en/f6/e002416225f023e10000000a155106/frameset.htm
    -o Restart of the J2EE instance and try re-importing the RFC model. Sometimes it helps.
    -o Logon into WebDynpro Content Administrator as a J2EE Admin and check if the JCO Connections and User /pwd of your application is correct. You can <b>ping </b>or <b>test your JCO connections</b>. if something is wrong, enter the values again for JCO n retest them.
    -o Try undeploying or removing the complete application and redeploy it.
    Tu undeploy please go to
    Go to <b>Visual Admin -> Server -> Services -> Deploy ->
    </b>
    Under Runtime Tab
    select the server, open the tree , you would find the webdypro list there.
    Now select an application, first stop it, remove it and redeploy if necessary.
    Let us know if you could solve the problem or not, gud luck!
    Rgds,
    Sreenivas.

  • Re: [iPlanet-JATO] Back Button functionality

    Hi Mike,
    Our test environment does not include proxy server.
    regards,
    syam.
    Please respond to [email protected]
    cc:
    Subject: Re: [iPlanet-JATO] Back Button functionality
    Guys,
    Please clarify something for me, the JATO code is commented as follows
    protected void addResponseHeaders(RequestContext requestContext)
    // These values should make any proxy between the client and
    // server avoid caching, and ensure that pages from one user
    // can never be seen by another user (if they're cached anyway)
    requestContext.getResponse().addHeader("Pragma","no-cache");
    requestContext.getResponse().addHeader
    ("Cache-Control","private");Yet you make no mention of whether your test environment includes a Proxy
    Server, or does your browser
    go directly to the Application Server's web server?
    Can you clarify, please?
    ----- Original Message -----
    From: <syam_reddy@p...>
    Sent: Wednesday, April 25, 2001 2:59 PM
    Subject: [iPlanet-JATO] Back Button functionality
    >
    Hi,
    We observed the following difference in behaviour between JATO pages
    and NetD served pages.
    We have the following scenario. User will login to the
    site. After login he will get a frame set. This frame set has threeframes.
    Top and bottom frames are used for navigation (to switch between various
    sections on the site.) .The middle frame(main frame) shows the actual
    content. When the the frame set gets loaded main frame shows page1. User
    will click on a link on page1. Page 2 will be loaded in main frame. Atthis
    point if the user clicks on back button , with migrated application(JATO
    pages) the following message appears in the main frame.
    In Netscape Communicator 4.61 the following message appears in the main
    frame :
    Data Missing
    This document resulted from a POST operation and has expired fromcache.If
    you wish you can repost the form data to recreate the document by
    presenting the reload button.
    In IE 4.72/5.5 the following message appears in the main frame:
    Warning : Page has Expired
    The page you requested was created using information you submitted in a
    form.This page is no longer available.As a security precaution, Internet
    Explorer does not automatically resubmit your information for you. To
    resubmit your information and view the web page click teh refresh button.
    However, in the NetD site page1 will appear in main frame.
    How do we mimic the NetD behaviour with the migrated
    applications ?
    We think the above behaviour with migrated Apps, is due to the
    headers that are get set in Application ServletBase , see the following
    code snippet :
    protected void addResponseHeaders(RequestContext requestContext)
    // These values should make any proxy between the client and
    // server avoid caching, and ensure that pages from one user
    // can never be seen by another user (if they're cached anyway)
    requestContext.getResponse().addHeader("Pragma","no-cache");
    requestContext.getResponse().addHeader
    ("Cache-Control","private");
    If we comment the above code , we were able to mimic theNetD
    behaviour. Are there any alternatives/thoughts on how to mimic the NetD
    behaviour ?
    Thanks in Advance,
    syam&ravi.
    [email protected]
    [email protected]

    OK, here's what I'm trying to do: We have, like you said, a menu
    page. The pages that it goes to and the number of links are all
    variable and read from the database. In NetD we were able to create
    URLs in the form
    pgXYZ?SPIDERSESSION=abcd
    so this is what I'm trying to replicate here. So the URL that works
    is
    pgContactUs?GXHC_GX_jst=fc7b7e61662d6164&GXHC_gx_session_id_=cc9c6dfa5
    601afa7
    which I interpreted to be the equivalent of the old Netd way. Our
    javascript also loads other frames of the page in the same manner.
    And I believe the URL-rewritten frame sources of a frameset look like
    this too.
    This all worked except for the timeout problem. In theory we could
    rewrite all URLs to go to a handler, but that would be...
    inconvenient.

  • Button functionality

    Hello,
    I have an input form and defined two buttons like mentioned in this thread:
    Regarding Buttons Functionality in INPUT FORM
    I can call two different function modules.
    In my case I mant to call the same function module but with different parameters.
    I have a function module which delivers me sales orders. I want now a button with the text 'All sales orders' and a second button with 'Open sales orders'. The result is always a list of sales orders, and so I want the output in a <b>single</b> table view instead of two.
    How can I achive this?
    I use VC 6.0 Patch 6
    Regards Michael

    Hello Michael,
    I had exactly the same problem. My solution is:
    2 fields on the input-form
      ALL_ORDERS and OPEN_ORDERS.
    1. I defined for the Field ALL_ORDERS Initalization
      FILL ('X',1)
      and Formating: IF(UPPER(@OPEN_ORDERS)=='X',' ','X').
    2. OPEN_ORDERS  Formating  UPPER(@OPEN_ORDERS).
    So it works like Radio-buttons.
    Regards
    Gerd

  • Override "Email a Page link" in ribbon button functionality in SharePoint 2013

    Hi,
    I want to override "Email a Page link" ribbon button functionality on the ribbon control.
      <CustomAction Id="Ribbon.WikiPageTab.Share.EmailPageLink"
                    Location="CommandUI.Ribbon"                
                    Title="Custom Email this page">
        <CommandUIExtension>
          <CommandUIDefinitions>
            <CommandUIDefinition Location="Ribbon.WikiPageTab.Share.EmailPageLink">
              <Group
              Id="Ribbon.WikiPageTab.Share"
              Sequence="30"
              Command="ShareGroup"
              Description=""
              Title="$Resources:core,cui_GrpShare;"
              Image32by32Popup="/_layouts/15/$Resources:core,Language;/images/formatmap32x32.png?rev=23" Image32by32PopupTop="-137" Image32by32PopupLeft="-103"
              Template="Ribbon.Templates.Flexible2"
              >
                <Controls Id="Ribbon.WikiPageTab.Share.Controls">
                  <Button
                    Id="Ribbon.WikiPageTab.Share.EmailPageLink"
                    Sequence="10"
                    Command="CustomEmailPageUrl"
                    Image16by16="/_layouts/15/$Resources:core,Language;/images/formatmap16x16.png?rev=23" Image16by16Top="-115" Image16by16Left="-19"
                    Image32by32="/_layouts/15/$Resources:core,Language;/images/formatmap32x32.png?rev=23" Image32by32Top="-137" Image32by32Left="-511"
                    LabelText="$Resources:core,cui_ButEmailLink;"
                    ToolTipTitle="$Resources:core,cui_ButEmailLink;"
                    ToolTipDescription="$Resources:core,cui_STT_ButEmailLinkPage;"
                    TemplateAlias="o1"
                   />
                </Controls>
                  </Group>
            </CommandUIDefinition>
          </CommandUIDefinitions>
          <CommandUIHandlers>
            <CommandUIHandler Command="CustomEmailPageUrl" CommandAction="javascript:alert('Hello, world');" />
          </CommandUIHandlers>
        </CommandUIExtension>
      </CustomAction>
    Any help would be appreciated.
    Rajasekar A.C

    Hi,
    According to your post, my understanding is that you wanted to override the “E-mail a Link” button on the Ribbon.
    I had created a simple demo to override the “E-mail a Link” button on the Ribbon, you can have a look at it.
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction Id="Ribbon.Library.Actions.OverrideEmailLinkButton" Location="CommandUI.Ribbon" RegistrationId="101" RegistrationType="List" Title="Display the UniqueId for the list item.">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition Location="Ribbon.Library.Share.EmailLibraryLink">
    <Button Id="Ribbon.Library.Share.EmailLibraryLink.ReplacementButton" Command="ReplacementButtonCommand" Image16by16="http://s10.postimage.org/lhar0oijp/U16.png" Image32by32="http://s17.postimage.org/trf3y2ui3/U32.png" LabelText="Replaced Button" TemplateAlias="o2" />
    </CommandUIDefinition>
    </CommandUIDefinitions>
    <CommandUIHandlers>
    <CommandUIHandler Command="ReplacementButtonCommand" CommandAction="javascript:alert('This button has been replaced.');" />
    </CommandUIHandlers>
    </CommandUIExtension>
    </CustomAction>
    </Elements>
    More reference:http://msdn.microsoft.com/en-us/library/office/ff407619(v=office.14).aspx
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Return button on drill down report not working

    We have a Action Link on report 1, when a user clicks on it it will open a new window and shows report 2, by default there is return button on report 2, When i hit return button on report 2 its taking me to report 1 on new window, We want it to go to report 1 in main window
    Is this a bug by the way we are on 11.1.1.6.7 ? Is there any work around available for this ?
    Thanks

    Hello,
    For detailled instructions about hyperlinks :
    Oracle® Reports Building Reports
    10g Release 2 (10.1.2)
    B13895-01
    3.6.10.1.8 Creating a hyperlink using the Property Inspector
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_howto.htm#i1062802
    Regards

Maybe you are looking for

  • ITunes Synchs my iPad 2 then crashes my iPhone 4 and vice versa

    I took delivery of my iPad 2 yesterday. I synched it no problem (not including the photos at this stage as that would need to be done overnight). I then went to re-synch my iPhone 4 and it crashed/Windows shut iTunes down. I tried several times more,

  • Download page does not work in IE v 8

    I was trying to download the service pack and the link would not appear in my browser.  All I could see was the information icon.  This was with IE 8.  I then tried with Google Chrome,and it loads just fine.

  • Reflaction problem

    i have a movie with reflacting pictures , code taken from here : http://pixelfumes.blogspot.com/2005/09/flash-8-bitmapdata-image-reflection.html in some computers, the reflaction doesnt work, they see only gray gradiant with no image at all , here is

  • Help! IPOD clickwheel doesn't work!

    hi guys, I just wanna get some help.. I dropped my IPOD last night, then the IPOD itself, its working.. But the clickwheel doesnt even work.. The display clearly shows up, the hold button completely works, but the clickwheel doesn't work.. what shall

  • Do any Samsung WP owners have their battery drain to dead while powered off?

    I've noticed my ATIV SE battery drains completely dead while powered off in just a couple days.  It has a nearly full charge when powered off and then when I go to power it on, it's dead.