How to close OA page by clicking on Submit_Button ?

Hi,
I have a requirement to close OA page when the user clicks on Submit_Button(save) on the same page. But we have a logic in CO(processFormRequest) to do some actions when the user clicks on Submit_Button, so I want to close the OA page once those actions completed in Submit_Button(save) logic. How can I achieve this requirement, please help me.
Below is the code in Submit_Button(save)
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if(pageContext.getParameter("save") != null)
OAMessageTextInputBean notesBean = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("Notes");
String scRecordId = pageContext.getParameter("searchTempId");
String invNo = pageContext.getParameter("InvNo");
String idFlag = pageContext.getParameter("IdFlag");
String value = (String)notesBean.getValue(pageContext);
Serializable param[] = {
scRecordId, value, invNo, idFlag
am.invokeMethod("getNotes", param);
}

First of all thanks to Shree to respond to my question.
I didnt try as you suggest bcz I think it will not work to my requirement. But I have tried your solution directly in the Save button logic but it is not working.
Let me explain my entire requirement:
I have one search page, in that we have Notes column with notes image in Search Results.
When the user clicks on that Notes Image, it is going to open one new page.
In that new page we have one Textbox(MessageTextInput), One Save(Submitbutton), Cancel(Button).
User will type some notes in the Textbox and then he will click on Save then the data gets saved into particular table column and user will click cancel button to close that page.
Then user will click on Apply button in the main page then there are some actions going to perform.
Now user wants to close that page when user clicks on Save button after entering the notes in Text box.
I have tried following coding in Save button logic.. at the end of the save button logic
pageContext.putJavaScriptFunction("keyListener", "function keyListener(){window.close();}
OASubmitButtonBean cb=(OASubmitButtonBean)webBean.findChildRecursive("save");
cb.setOnClick("keyListener()");
and
pageContext.putJavaScriptFunction("keyListener", "function keyListener(){window.close();}");
OAWebBean body = pageContext.getRootWebBean();
if (body instanceof OABodyBean)
body.setOnKeyPress("keyListener()");
but no luck
Please advice me...

Similar Messages

  • [IPhone SDK] How to close all pages after safari exit

    Apps close when you hit the home screen, however i find that Safari seems to keep multiple pages open even you close it , which no doubt uses memory. so does anyone know how to close these pages after safari exit ? Thanks very much.

    Does anyone know it , please give me some advises , thanks very much.

  • How to close bsp page in onInputprocessing eventhandler?

    On my bsp page layout, i have a cl_htmlb_button .i do some db processing in that button's onclick event,at the end of the processing i want to close the page,but i don't want to use onclientclick event (e.g. javascript:window.close() ) of that button.
    so my question: how can i access javascript function to close the current page within onInputprocessing eventhandler ?
    or which abap class method should i call to close the page?

    Hi,
    One can't use JS in the oninputprocessing. There are 2 options:
    - either you submit you form via JS and end with
    window.setTimeout('window.close()',5000);
    check http://www.devguru.com/technologies/ecmascript/quickref/win_settimeout.html for details
    - either you don't specify any page you're navigating to end set a variable.
    in the the <body> tag of your layout  you test on that variable. If set you do a window.close in the onload of the body.
    Check http://www.devguru.com/technologies/ecmascript/QuickRef/evhan_onload.html for details on that.
    Eddy
    PS. Reward the useful answers and you will get <a href="http:///people/baris.buyuktanir2/blog/2007/04/04/point-for-points-reward-yourself">one point</a> yourself!

  • In ADF Tree how to Navigate to Pages When Clicking Tree Node   (TP4)  ?

    hi
    I know how to use af:tree as master-detail tree
    by draging detail views from Data Controls and dropping in JSF
    Page but I would like to know how to call other pages when double-clicking child nodes in the tree. in JDeveloper 11 TP4 & Windows XP
    Anybody can help?
    best regards
    Forakora;

    Hi,
    if it has to be a double click then this can be done with a clientListener that calls a JavaScript function and that you set to the doubleClickEvent type e.g.
    handleTreeSelection(event){
    // do here what you need to do
    queue event to a serverListener that references a managed bean. Use managed bean to
    navigate to another page
    Out of curiousity, what is the usecase ?
    Frank

  • How to close portal page by Web Dynpro App

    Hi There,
    I would like to close a portal page by clicking a button of a Web Dynpro App which is inside an iView on that page.
    Is this possible or not?
    Bertil

    Bertil,
    First, it is very bad decision to make decisions instead of user. Just redirect him to logoff page and let close window himself.
    In WebDynpro you may use <b>Exit plug</b> on interface view with parameter <b>Url</b> (notice the case) of type string.
    Then you may previously fire this plug with JavaScript url: javascript:void(window.top.close())
    In recent versions of WD this will not work. So you have to redirect user via exit plug to some static html page, that contains in header <script>window.top.close();</script>
    VS

  • How to close main window on click of a button on popup window

    Hi All,
    I have created a web page which on certain condition display a popup window to to provide information. Wht i want is that when i click on close button on my popup window, my main window should also close.
    Can anyone please help with this requierment!!!
    Regards,
    tushar

    Hi All,
    Could anyone of you please help me by answering the thread
    WDDOEXIT method not called when the application is closed from the portal
    Thanks,
    Subash M

  • Safari 5.1.7 Tab - How to close them with 1 click?

    I have just installed Safari 5.1.7.
    What happened to the X in the tabs to close them?
    I have looked in preferences, can't see any obvious way of restoring the missing "click on the X to close" option.
    I now have to right click & select close from a drop down list. That's nuts!
    I would love a solution to this before I end up reverting to version 5.1.6.

    If only it were that easy Barry.
    I've tried hovering and gave up after 20 seconds.
    I wasn't the first to use Safari after the upgrade to 5.1.7 & I wonder if the other user has some how managed to alter some obscure setting without knowing what she was doing.
    Anyone else have any ideas?

  • How to close  sliding pages and beginner help plz

    When I swiped I have every page in my history coming up I'm not wanting a bunch of pages &amp; apps running in background how do I close everything ?

    Press the Home button once to return to the Home screen. From the Home screen press the Home button twice to raise the Dock/Launch Bar and reveal all apps that have been opened. Tap & hold one app's icon until they all start jiggling and the appears in the upper left coner. Tap the to close apps.

  • How to close a Pages document

    I have pages on my mac and on my iPad. I transferred a password protected document from the mac to the iPad using iTunes. It opened fine, asked for the password and all was well, now i would like to close it on the iPad, so as to keep my information confidential. However there seems to be no close button. If i go to another document, my original document is still open. if I close the app , and then open it again, the document is open again without the need for a password.
    Any ideas would be welcome
    VS

    EXACTLY what I searched and found this thread for... the lack of REAL password protection.  It supposedly "supports" PW protected Word files, but only in that it can open the file using the correct PW. Once opened, however, your file is a sitting duck for others to see.  There's been no real thought given to security, when you're being asked to risk putting things in the cloud or to email it to yourself, etc.  I can't believe no other iPad user is trying to do any serious WORK though.  (I was hoping iPad could replace my netbook, but no way.)

  • I just upgraded Firefox, and now it's opening new windows instead of news tabs when I click on links. It's driving me nuts. How do I get pages I click on to open in new tabs instead?

    I'm using Firefox 3.5.14, and had no similar problems with an earlier edition.
    I believe I've already selected the "open in new tab" option. Am I missing something?

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • How to close a session when user clicks Logout

    In my jsp page i create a session for every user's name.
    when particular user clicks logut without closing his personal page,
    the others can access his page.
    so, how to close a session when clicks logout link.?
    similarly when user gets signin one system,he will not be sigin in other system.but how can we achieve this?
    Thanks in Advance

    What is the name of the session variable that you are creating on login? When he clicks logout, set that session variable to null. Like session.setAttribute("userName",null); and check for non-null condition before proceeding with any functionality in your jsp's.
    What is the second question? You want to prevent duplicate logins from different systems? You would have to maintain a static datastructure like a HashMap for instance. Everytime a user logs in, put an entry into the HashMap...like userMap.put("userName","userName"); If an entry already exists, throw a message saying that user already logged in from another machine...

  • 11.5.10.2 - How to personalize Confirmation page of Forgot Password link

    We have implemented the Forgot Password functionality in our 11.5.10.2 system. We need to personalize the Confirmation screen message.
    How do we personalize the following message:
    "An email has been sent to the email address on file. Contact the system administrator if you do not receive your password within the next few hours."
    Reason:
    Our help desk is getting calls from our users because they think that they will have to wait for a few hours to receive their temporary password. Our goal was to eliminate calls to our help desk regarding forgotten passwords but this message is causing more calls than necessary.
    We need to change the message to read as follows:
    "An email has been sent to the email address on file. You should receive the email within a few minutes. Please contact the Support Center if you do not receive your password within an hour."
    I have accessed the CommonMessagePG that appears to control the Confirmation screen (/oracle/apps/fnd/umx/util/webui/CommonMessagePG) but I cannot find where to change the actual text of the message.
    Any advice?

    Try this:
    Go to "Application Developer" responsibility
    Select "Messages" from the menu
    Query the message name and then enter your message text in the "Current Message Text" field
    Save changes and exit
    Clear cache and bounce Apache to see the change.
    Also, the metalink article below might help:
    How to open customized page when click on "Forgot Password" URL ? [ID 556454.1]
    Kristofer Cruz

  • How to close the main window  from Popup

    hello all,
    i need to close the main window from a popup, so i create a popup and after clicking on close button of this popup, should also the main window be closed.
    how can do this please?
    BR

    Hi
    Please go through this.. check thomas reply
    Re: Close Main Window directly on action on Pop up window
    also check this..
    how to close main window on click of a button on popup window
    cheers,
    Kris.
    Edited by: kissnas on May 12, 2011 5:06 PM

  • I have 2 pages up I can't see how to exit one page and still have the other page up I have to close an re click on the icon

    I do not see a way to close one page. I may have 3or4 different pages up but I cannot close one page with out having to close fire fox entirely. I have to go back to your icon and start all over. Thanks Dave In Austin Texas

    Set the pref <b>browser.tabs.closeWindowWithLastTab</b> to false on the about:config page to prevent closing the last tab from closing the browser and make a close button appear if only one tab is open.
    *http://kb.mozillazine.org/about:config
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • How to close the detach popup on click of a button in the panel collection

    Hi,
    I'm using Jdeveloper 11.1.2.3.0.
    I have an af table surrounded by panel collection. There is a button on panel collection to commit the changes in the table.
    Clicked detach button to view the table in full browser.
    On click of Commit button, the detach popup is not closed. I have set partialSubmit of that button to false. Then also detach popup is not closed.
    Can anybody suggest me how to close the detach popup on click of a button in the toolbar.
    Thanks,
    Vinod

    Hi Frank,
    Thanks for your response. Popup is not closed.
    I tried this approach, when the view tree is navigated on the Detach, I see that the tree is same as if it is traversed on the page without detach.
    Printed client id and UI component class in the while loop, result is as below.
    r1:0:pc1:t3 class oracle.adf.view.rich.component.rich.layout.RichToolbar
    r1:0:pc1 class oracle.adf.view.rich.component.rich.output.RichPanelCollection
    r1:0:ph2 class oracle.adf.view.rich.component.rich.layout.RichPanelHeader
    r1:0:pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
    r1 class oracle.adf.view.rich.component.rich.fragment.RichRegion
    pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
    db2 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
    db1 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
    psl1 class oracle.adf.view.rich.component.rich.layout.RichPanelStretchLayout
    ps1 class oracle.adf.view.rich.component.rich.layout.RichPanelSplitter
    f1 class oracle.adf.view.rich.component.rich.RichForm
    Tried with setting partialsubmit property to false on the command button, still the popup is not closed and my Faces Message are shown behind the detach popup.
    Thanks,
    Vinod

Maybe you are looking for

  • Can't install OS 10.4 on new hard drive

    I installed a new WD 320Gb hard drive in our PowerBook G4 today but can't load the os. I connected the G4 as a target to another mac and partitioned the new drive and erased it with zero. Everything looks good there but . . . the g4 wont recognize th

  • Send purchase order by e-mail with address of bad partner order

    I have a supplier with 3 addresses of order of which I choose 1 during the creation of the order. The creation of message NEU is done with the new partner. The sending by e-mail is done with the address of the initial partner. I do not find any note

  • My LInksys Router

    Okay , I Recently Got A Linksys Router It Was Working Just Fine . But When My Internet Stop Working The Router Stop Working To. I Reseted The Router It Stilled Didnt Work ! Now I Wanted To Know , Do I Have A Virus ? What Can I Do To Fix The Problem S

  • Import package question

    I am currently trying to import com.sun.tools.jconsole.JConsolePlugin so that I can create a plugin for the JConsole. My problem is that I don't have com.sun.tools package and I'm not seeing some obvious place where I can get it. Can someone point me

  • PhotoSmart 6520 Print Quality Diagnostic no grayscale

    Have a PhotoSmart 6520 printer that has worked well for 6 months.  Used several black cartridges over the 6 months. Ran out of black ink again and replaced the cartridge, new cartridge would not work at all.  So put in another, which seemed to work a