Automatically close window after processing

hi
In my program, I open a detail-screen in a new window (target=_blank in the link properties). Users can change details of the record on that screen.
What i want to do, is automatically close the window after the record has been processed.
When I add "javascript:window.close()" to the Button's URL, it closes the window. However, this does not work on the Branch option, which is called after the processes.
I also tried the option that's mentioned in the "how to create popups" tutorial, with a piece of javascript in the header (a simple function with a close() in it), which is called by the branching process. This doesn't work either. I get a "This page cannot be displayed" page.
So my question is: how can I automatically close the window after the record has been saved?

hi
In my program, I open a detail-screen in a new window (target=_blank in the link properties). Users can change details of the record on that screen.
What i want to do, is automatically close the window after the record has been processed.
When I add "javascript:window.close()" to the Button's URL, it closes the window. However, this does not work on the Branch option, which is called after the processes.
I also tried the option that's mentioned in the "how to create popups" tutorial, with a piece of javascript in the header (a simple function with a close() in it), which is called by the branching process. This doesn't work either. I get a "This page cannot be displayed" page.
So my question is: how can I automatically close the window after the record has been saved?

Similar Messages

  • Simple PopUp Close Window after Saving

    Greetings,
    (I did some seaching on the forum and didn't find a solution.)
    I have a PopUp window (called with the popUp2() function) which I would like to have close when a person clicks the save button in the PopUp, therefore only showing the main page.
    (I have an application that the user can enter general comments in. They want a window to pop up for the entry of their comment(s) and close after they enter and save them. Automatically 'returning' to the main page they were on. When they click the Save button it simply saves their comments into a comment table that is associated with the main tables of the application.)
    How is it best to close the PopUp window in the scenario I described? A DML process is saving the changes. I assume that's a server process, so javascript to close the window won't work there. I was gonna add a branch to close the window, but branches are server side too.
    Not sure how to best go about closing the window after table changes are saved. I bet it's something simple, but I'm not seeing it. :-)
    Thanks, Tony

    Hi Monica,
    Since the form is not submitting to the database try the other option I gave you.
    Remove the javascript from the SAVE button, set the Target to -No Target -.
    I assume you're using an Automatic Row Processing (DML) that saves the data to the database?
    If so, after that process, create a PL/SQL process using the following:
    BEGIN
    -- Redirects the calling (parent page) then closes this popup window.
    htp.p('<body>');
    htp.p('<script type="text/javascript">');
    htp.p('window.close(this);');
    htp.p('window.opener.location.href="f?p=&APP_ID.:24:&SESSION.";');
    htp.p('</script>');
    htp.p('</body>');
    END;
    Under the Conditional Processing for this process, select the 'SAVE' button (When Button Pressed).
    Remove any branches you have on the pop up page (assuming you have a branch that takes you to page 24).
    When you click the SAVE button, the DML process will run, saving the data to the database. Then the second process you just created will run which will close the pop up window, then reload the 'parent' page.
    T

  • Mail In Full Screen Closes Window after Sending

    I love using mail in full screen.
    When I send a new message or reply to a message the Mail window closes out of the full screen and closes the mail window.  How do I get the window to stop closing after I send or reply?

    I found out what is was. I had serial mail try to send about 200 emails. Something went wrong (not sure whether it is lion compatible) and there were a load of unsent emails somewhere in the background. Funny thing was they were not showing anywhere, just when I tried to close window, an unsent message popped up.
    Anyway, force quit mail as I could not be bothered to find out how many mails had not been sent, and on reopening all back to normal
    HTH

  • How to automatically close TitleWindow after 10 secs?

    hello,
    I've been trying several options to automatically close title window (created via popupmanager) but none is working.
    I create this window as kind of final confirmation. I want to display it for 10 secs, then close and bring user back for welcome screen. For now I only managed to impement this for close window event, but this timed closure is highly needed. Anyone could help?
    Regards,
    Akeen

    Have your tried calling your popup remove function from a setTimeout call?
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/package.htm l#setTimeout

  • Firefox closes windows after they are opened when transfering data.

    I open some sites and Firefox closes the window after it is opened. It happens on various sites, and now just on Amazon.com. I can open a news site, search for a story, open the story and it then closes.
    == URL of affected sites ==
    http://www.rcj.com

    why is this happening

  • Close windows after page submit

    Hi,
    is it possible to close the windows after the page had been submited (thru a button)?
    Vincent

    Hi,
    I found that I can do it by branch to another popup page and include a on load procedure whcih close the pop up windows.
    vincent

  • Close window after execution

    Hi! I have read the "Distributing Applications with the LabVIEW Application Builder" tutorial and followed the instructions on how to develop a stand-alone application. I have added my VI to a project and built an application specification (EXE). My problem is that after I have run the exe-file, I would like the program to close, but instead a window, much like my exe-file appears, but with a toolbar and a run- and abort button. How can I change the settings so that this window doesn't appear?
    /Nina
    Solved!
    Go to Solution.
    Attachments:
    while_executing.jpg ‏34 KB
    after_execution.jpg ‏41 KB

    Anil Reddy wrote:
    You can use property node to close the front
    panel. instead of Quit labVIEW. if your second executable is also
    labVIEW based, then Quit LabVIEW may close both....If you use Property
    node to close the front panel, this will close the front panel of the
    present executable as soon as it stops execution.
    check the image for details..
    To get this property node, do following.....
    .place a property node (general), select right click on that.  go to select class-->VI server-->VI-->VI
     Then left click on the property, FrontPanel window-->Open
    then right click on the node and select " change all to write".
    No Quit LabVIEW in one executable should not have any influence on another LabVIEW executable. A LabVIEW executable is a single process and what you do in there will not influence other processes, unless you do something specific like interapplication commmunication.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • My X6 doesn't automatically close contacts after a...

    Whenever I go to contacts and make a call, after I finish the call, I have to manually go to contacts and close them. They don't close automatically.
    What could be wrong?

    whenever you make call using the numbers in the contact, the contact option gets hidden and runs in the background. So because of this only you are to do the closing manually. No need to worry.
    Nokia C7

  • How do you close windows after loading ios7

    How do you close apps/windows in ios7?

    Try closing all apps in Multitask Window
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe up on the screenshot of the app you want to exit.
    3. The app will fly off the screen

  • After closing large documents (drawings) the window closes but the process runs still in the background. I open the next document, the same procedure and after dowing this several times the RAM is full the system becoms very slow. what can i do???

    after closing large documents (drawings) the window closes but the process runs still in the background. I open the next document, the same procedure and after dowing this several times the RAM is full the system becoms very slow. what can i do???

    You can always shut it down manually via the Task Manager
    (CtrlShiftEsc)...
    On Mon, Sep 1, 2014 at 3:05 PM, frank koethen <[email protected]>

  • DOS Window automaticly close after execute the batch file and start the App

    Hi, all. I have made a batch file. When I start the batch file, thet is getting open the DOS Window. But I want close the DOS Window after Start the Application, or make it hidden?
    It is possible?
    Thanks all:-)
    Nikolay

    Hi,my batch file is:
    java -cp File.jar Desktop
    I have tryaed with:
    javaw -cp File.jar Desktop , but it dosn�t close the DOS Window.
    Have I make anythink false?
    Thanks.
    Nikolay

  • Acrobat XI Pro automatically closes itself with no messages etc. after few seconds

    Greetings all,
    I don't know why but my Acrobat XI Pro (11.0.0) automatically closes itself (with no warning, no messages etc.) after few seconds. I installed the AXI as a part of the CS6 Master Collection on my Windows 8 (x64) laptop. Just as suggested at some other posts in the forum:
    I checked the "security settings (enhanced)" tab but the protected view option is already off.
    I searched for the eula.exe under the "Program Files (x86)\Adobe\Acrobat 11.0" folder but there is no eula.exe. May it be not present because I installed it as a part of CS6 Master Coll. package?
    I am using Eset Endpoint Antivirus as a third party Anti Virus Software.
    The problem occurs when:
    I open up a pdf file from outlook etc.
    I manually open a pdf file from windows explorer
    I open adobe acrobat with no file to view
    As I mentioned above, I see no error messages or warnings during the closing down. It acts as if I clicked the close button on the top right corner. I know that there are a lot of posts in the forum about this issue, but none of them helped me to solve my problem. I would be glad if you can help me with this problem.
    Thanks,

    Hey i was having this issue also with Adobe Acrobat pro... it only seemed to be affecting one program that produced PDF output automatically. When the processes finished the PDF is supposed to be displayed and instead it would rapidly flash across the screen and close. THen i would have to hunt for the PDF to review its content. I tried a couple of things like deleting my preferences for acrobat C:\Users\[your user name]\AppData\Local\Adobe\Acrobat\10.0. You might have to show hidden files. In the explorer window select Organize-> Folder and search options-> once that opens view -> check show hidden files, folders and drives. then navigate that path above. Make sure adobe is closed then delete everything in there or move it off to another folder if your worried it will break it further.
    That did not fix the problem though. I opened the application and ran my process again same results (adobe closes pdf auttmagically). so i opened adobe acrobat and navigated to Edit -> Preferences -> look under the General tab and click the select default PDF handler and that seemed to fix my problem. I also disabled the enhanced security look further down in that list under security enhanced. then a reboot so it is possible that the enhance security setting was the cause i think i will play with that for a minute to see if it was but i think my issue was the default handling. good luck

  • How to close browser window after flushing a file to the browser?

    I have this simple JSP, which flushes a String to the browser as a file (message.txt). The JSP gets opened in a new window when the user clicks a link.
    The problem is that after the JSP has run, the browser window won't close automatically. I've tried adding a small javascript to achieve this, but i doesn't seem to even get run.
    How can I close the browser window after the JSP has run?
    <%
         String someText = "bla bla bla";
         // Flush to browser
         response.setContentType("text/plain");
         response.setHeader("Content-Disposition", "attachment;filename=message.txt");
         try {
              ServletOutputStream os = response.getOutputStream();
              os.write(someText.getBytes());
              os.flush();
              os.close();
         } catch (IOException e) {
              return;
         } catch (Exception e) {
              return;
    %>
    <script type="text/javascript">
         window.close();
    </script>After the JSP has run, an empty html page with the following source can be seen:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
    <BODY></BODY></HTML>

    Try run this and you'll see that it runs fine with no exceptions:
    <%
         String someText = "bla bla bla";
         response.setContentType("text/plain");
         response.setHeader("Content-Disposition", "attachment;filename=message.txt");
         try {
              ServletOutputStream os = response.getOutputStream();
              os.write(someText.getBytes());
              os.flush();
              os.close();
         } catch (Exception e) {
              out.println("ERROR: " + e);
    %>It looks like that after I've closed the outputStream I can't do any more processing in the JSP. Even if I remove the setContentType and setHeader methods it still behaves this way.
    I'm starting to think that there's no way around this...??

  • Unable to open a new window you must first close exsisting firefox process or restart your system. There is no firefox process running why should I receive this error msg?

    I closed a Firefox process. Then clicked the FF icon to restart my browser. I received an error message. " Firefox is already running, but not responding. To open a new window you must first close existing Firefox process, or restart your system. However there is no Firefox process running to begin with. I checked the task manager.
    == This happened ==
    Every time Firefox opened

    It takes Firefox 5-15 seconds to completely close and for the OS to release the processes; it may take longer if you have a Flash animation/video running in one of the tabs. If not waiting long enough is not the problem, you can try the following to determine if an Extension or Plugin might be causing Firefox to hang at exit.
    <u>'''Kill Application'''</u>
    In Task Manager, does firefox.exe show in the <u>'''Processes'''</u> tab?
    See: [http://kb.mozillazine.org/Kill_application Kill Application]
    '''<u>Causes and solutions for Firefox hanging at exit:</u>'''
    [[Firefox hangs]]
    [http://kb.mozillazine.org/Firefox_hangs#Hang_at_exit Firefox hangs at exit]
    [[Firefox is already running but is not responding]]
    <u>'''Safe Mode'''</u>
    You may need to use '''[[Safe Mode]]''' (click on "Safe Mode" and read) to localize the problem. Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes <u>'''before'''</u> starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    See:
    '''[[Troubleshooting extensions and themes]]'''
    '''[[Troubleshooting plugins]]'''
    '''[[Basic Troubleshooting]]'''
    If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it by enabling <u>'''one at a time'''</u> until the problem reappears. <u>'''You MUST close and restart Firefox after EACH change'''</u> via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.

  • How do I import a clip when the window automatically closes?

    I was unable to even open After Effects CC when I upgraded to OS Mavericks. Once I realized adobe released a patch for it (the 12.0.1 "trial" update), the program opened. I thought all was fine, until I attempted to import a new video clip. It would not let me even move the clip, let alone edit it, before giving me a "grouping" error, and then abruptly crashing. Today Adobe released the 12.1 update, which seems to be running ok, except the window for importing footage automatically closes once opened. I can no longer just drag a new clip in to my composition either. How can I get by this?
    -Christian

    See this:
    http://forums.adobe.com/message/5805902#5805902

Maybe you are looking for

  • Application hangs on setVisible call in Solaris 8

    I have a Swing application that I am having trouble with. The swing part of it is simple enough, however it does use a C++ API with JNI. It all works perfectly on Linux. However in Solaris 8 the application hangs on the call to either myFrame.pack ()

  • Converting profiles

    I've received some TIF files created in basic sRGB mode but that contain Adobe 1998 images within them. The files, I've been told, were saved without embedding any profile to them. My printer just told me that I need to have a matching color profile,

  • SAS in OBIEE!

    Hi All! can anybody tell me..that how to integrate and import SAS olap cube into OBIEE. Pls lemme know if there s any work around!. But in SAS we can integrate the obiee..by using sas integration licensed tool component.but i want it to integrate SAS

  • Decreased JPEG quality when inserted into iMovie as stillframe

    I am trying to create a 1 minute video of still frames that consists of a picture that has a duration for 1 second, followed by a black screen for .5 second, repeated until the end of the video. What I am finding is that the quality of the JPEG decre

  • Sales order using incoming IDOC

    Hello Friends,   We have a requirement to migrate the sales orders from legacy to sap system using incoming IDOC.  Could you please share any document/note specific to IDOC configuration steps on IDOC mapping with legacy application. Anticipating a p