How can I close current window.

I have a submitButton.
When I click it, using a method of javascript to close current window.
the coding like below:
pageContext.putJavaScriptFunction(
"closeCurrentWindow",
"javascript:window.opener=null;window.close()");
pageContext.getJavaScriptFunction("closeCurrentWindow");
But I think it's not a idea.
Do you have another recommendations about the solution of this problem?
thx.

Hi,
I don't understand. Would you like to have a button to close the current window?
Or should it do also something else?
If you want only to close the window you can use a "button" (not item_style = "button", not "submitButton").
Then you must set its Destination URI property to javascript:self.close();
This will close the current window.
However note that using javascript is not right, according to OAF standards.
Bye
Raffy

Similar Messages

  • How can I close 'current' window and not all windows?

    How can I close the current window (only) and not all or none?
    This function works well with MS Explorer.
    Not a problem, just a desired function.

    Hi JLCluster,
    If you just click the small x in the tab you are currently viewing, it will close only that tab. I think you are clicking the x in upper right hand corner of the screen which closes all open tabs as you described.
    Hopefully this helps!

  • How can I close one window without closing all open windows?

    If I open more than one window, I can't close just one. When I try to close just one, I'm warned that I'm about to close more than one (all of them) but I'm not told how to close just one.

    Are you sure you aren't getting tabs confused for windows? If you close a window containing multiple tabs, Firefox should give you a warning that you are about to close several tabs. To close a tab do one of the following:
    * click the x at the right end of the tab (when you only have a few tabs open)
    * open the tab you want to close, then click the x that appears
    * right click the tab and select 'Close Tab'
    * open the tab you want to close and press Ctrl+W
    You can close a window using Ctrl+Shift+W.

  • How can I close all windows in Preview?

    Hi all
    I can't seem to find a way to close all windows in Preview.
    Can somebody try this and see if they get the same result I do.
    1. Copy an image into the clipboard.
    2. Open Preview
    3. Hold down command-N for about 20 seconds.
    You should end up with dozens of windows with the image that you copied.
    Now, try to close them.
    I've unchecked 'Restore windows when quitting and re-openng apps' in System Preferences
    I've typed in the 'defaults write com.apple.Preview NSQuitAlwaysKeepsWindows' hack in the terminal window
    I've quit Preview with the 'option' button held down and 'Quit and Close All Windows' showing in the menu.
    No matter what I do, the windows keep coming back every time I start Preview.
    This 'force restore' feature of Lion is starting to get really annoying.

    If I hold down the option key and go to Preview->File the Close Window menu item changes to Close all
    I answered the OP's question but I see now that the question wasn't what he was really asking.

  • Gryllida: How can I close one window while keeping a second window open?

    When I closed my primary window with all my tabs, the other window which came for the installing of an Adobe update closed as well. BOTH windows closed so I was unable to install the Adobe update. There must be a simple way to do this, but how. Thank you.
    == Operating system ==
    Windows XP

    This Adobe update window was most likely a pop-up from within one of the tabs that you closed, which means that as soon as the parent page is closed, the pop-up closes as well, which is by design. You can update Adobe Plug-in by following the corresponding link at the [https://www.mozilla.com/en-US/plugincheck/ Plugin Check] page.

  • How can i close a windows application that works under vmware in am applescript

    Hi there,
    On my roof I have a set of solar panels. The daily score of these panels are only visible by using a Windows application.
    So I use vmware on my Imac to start Windows 7 on Bootcamp, this all by using a applescript in the automator app.
    In the script vmware is starting up and then i made a task in Windows that starts up the specific application after the Windows startup. After a delay of 180 seconds the script fills in a password an gives a return. That works well.
    Unfortunately it runs perfect the first tim a and then the second time, the specific application does not start. Only Windows starts up, the rest of the script does not work the right way, exempt closing the vmware, that goes as expected. So I think that the closing command that I give in the script:
    tell application "VMware Fusion"
    quit
    end tell
    causes a problem. The closing of the application within Windows is perhaps not done on a proper way.
    Therefore I am looking for a way to close that application first and then closing Windows 7 and then VMware.
    Thanks in advance for your help.

    As a completely different approach, I'd have a look at the raw network traffic with tcpdump or equivalent, and see if I could figure out how to access this data — if you're lucky, it's a fairly standard interface of some sort; HTML queries, possibly. 
    Start with a port scan of the controller for the panels (using Network Utility.app in OS X, or another tool), and see what IP ports are open and active.
    Is there a vendor and model associated with the controller for the panels?  That might turn up some software other than this Windows application/

  • How can i close the window when i logoff transaction iviews?

    Hi
    I want to close the Portal session window, when i logoff R/3.
    Is there any properties need to set in iview?
    pl suggest me
    thx
    pradeep

    Hi Pradeep,
    What do you mean by closing the Portal session window? Can you describe your events in a more detailed manner.. is this the portal window or is R/3 opened in a new window?
    cheers,

  • How can we close the window using a button in applet?

    I have a close button in my applet which should close the browser from where the application is launched. Can somebody post a sample code for doing the same?

    I'm afraid I don't have any sample code, but I can describe a possible solution.
    1. Retrieve the JSObject via Application.[url http://docs.oracle.com/javafx/2/api/javafx/application/Application.html#getHostServices%28%29]getHostServices().[url http://docs.oracle.com/javafx/2/api/javafx/application/HostServices.html#getWebContext%28%29]getWebContext()
    2. Use the JSObject to manipulate the JavaScript into closing the Window.

  • How can I close the window on end of execution

    I have a subVI that I call to scan incoming data. When I stop scanning,
    I want the window to close and return to the front panel of the calling
    VI. Can someone help me please?
    Thanks in advance!
    Dave

    Dave,
    If I get it correctly all you need to do is to follow steps below to get
    rid of VI front panel after execution.
    *-ON the Front Pannel go to VI Icon and right click.
    * Select VI Setup.
    * Select Execution Options
    * click on Show front pannel when called
    * click on close afterwards if originally closed.
    Make sure to save your vi with some other name and try on it.
    Rgds,
    Hasan
    "Dave G" wrote:
    >>I have a subVI that I call to scan incoming data. When I stop scanning,
    >I want the window to close and return to the front panel of the calling
    >VI. Can someone help me please?>Thanks in advance!>Dave

  • How can i close de window ?

    Hello,
    The window property "close allowed" is set to "YES", but when I run my form, the window doesn't close when I click on the exit button.
    Can anyone help me?
    Thx!

    In another thread a guy said to create a When_Window_Close trigger and put the code:
    :system.message_level := 25;
    exit_form;
    I will try that...
    thx!

  • How can you close all pages in safari?

    On my iPad it is possible to close all windows in Safari.
    Is there a similar feature in Safari? Every time I clear the history, the last page remains open.
    How can I close that window as well without having to first create a new blank one?
    Regards

    Yes, ok, but then I still have to open a new page to continue browsing.
    on the iPad i can close all pages and safari for iOS defaults to favorites.
    regards

  • How can i close a modal window?

    Hi, everybody
    My question is in the subject, but i4ll repeat it again.
    How can i close a modal window in forms?. I4ve tried with hide_window but it doesnt closed itself.
    Please help me one again.
    Thanks.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JAMIE MCPHIE ([email protected]):
    There is a bug with Oracle Forms where you can not use the close button "X" on the window title bar. You need to create a button on the window that will close the form.<HR></BLOCKQUOTE>
    Jamie
    You are right in the fact of the programmer must make a exit mechanism. However, this is not a bug, this feature is related to the management of this windows type (modal). Bye
    null

  • How can get the console window name of the current form?

    How can get the console window name of the current form?

    Try the various get methods of the viewObject such as getQuery:
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtAnchor.getQuery%28%29/vtTopicFile.bc4jjavadoc%7Crt%7Coracle%7Cjbo%7CViewObject%7Ehtml/

  • How can I close the iOS Diagnostics window?

    When trying to solve a problem through Apple's support service a iOS Diagnostics app started and now I cant figure out how to close it. It's not in the recently used list of apps, but when I swype through the opened apps, it's always there.
    So my question is:
    How can I close the iOS Diagnostics window?

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
     Cheers, Tom

  • How can i close chrome...it us currently not allowing me to shut down

    How can i close Chrome.  It is currently not allowing me to shut down.

    Choose Force Quit from the Apple menu and close it there.
    (92305)

Maybe you are looking for

  • WHAT IS TOTAL TAXES SET-OFF ?

    Dear All ,                      i m in display mode of a P.O here at item level in condition tab here JMOP =16% of 50,000 base price is 1,000INR & qty is 50,  is 8,000inr , JEC1 is 2 % of 8,000 is 160.00inr , & 1% of 160 is 80.00inr , but here total

  • HT1212 ipod touch 4

    my ipod touch 4th gen is disabled for 22,296,290 minutes. how do you restore it.

  • HT2693 Has anyone managed to download the March 2013 update of Numbers on an iPad 1?

    I recently tried to update Numbers but it says download not available at this time and has just hung there every since. Has anyone managed to update Numbers and can they help please

  • Using TOAD or Hyperion to Query SAP BW?

    Is it possible to use TOAD or Hyperion Interactive Reporting Studio to query SAP BW tables? I would really like to be able to use the SAP BW infocubes but not be tied to BEx. Is this possible?

  • ? migrating from Logic 8 on PPC, to Logic 9.1 Mountain Lion, new Intel Mac

    I'm migrating from a non-Intel Mac G5 PPC  with retail Logic Pro 7 installed and also the upgrade to Logic 8. What is the best way to install Logic on my newly acquired July 2011 Quad-Core Mac Mini Server ( MMS ) ? I have the original install disks f