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

Similar Messages

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

  • 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

  • How to popup message window after logon?

    Is it possible to popup a message window after ERP user log on?

    Jerry,
    This is very extensive, but you can always use WHEN-NEW-FORM-INSTANCE event with out any form to inform users. But it can get annoying without this lenghy explanation. It depends on how long you wait before you take down the server after you announce.
    It is not the perfect way of doing it, but will work (in forms only when a
    new form is opened, not in JSPs).
    1. Create a table with some columns like instance_id, maintenance date and
    contact details just in case they want to call you, and a flag that
    represents the status (in process, completed so on)
    2. Create a simple workflow process with three nodes in that.
    3. Whenever you want bring the server down, just create a process for this
    workflow process (WF_ENGINE.create_process). This will insert row into this
    table first time.
    4. Next step in the process can update the status to Completed after say, 1
    min (assuming users take at least a min to finish any transaction in one
    form)
    5. Have a timeout in the same workflow that will wait for 5 mins and inserts
    one more row similar to the first third step.
    6. Write a small piece of code in custom.pll in WHEN-NEW-FORM-INSTANCE which
    is not form specific. Which means whenever a new form is opened up this
    message will appear. This code reads this table and looks at the status
    (till it is completed) to pop up a message whenever they open a new form.
    Inactive users, I assume you do not care.
    7. You can check in the workflow how many times you want to insert a row
    into the table and send a pop up message (select instance_Id,count(*) from
    dummy where count(*)=5 if you want five tries).After five tries you can
    complete the workflow.
    Thanks
    Nagamohan

  • 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

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

  • 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

  • Can i retain my app tabs & tab groups in new firefox window after i close one ??

    Just upgraded to Firefox 5 and used the awesome features of app tabs and tab groups, but ah ! i closed my browser and when i opened it again, everything was lost. :(
    How can i retain my app tabs and tab groups when i open a new browser window after closing the one in which these were created ?
    Will be a great help if we can do it.

    Thx for your answer.
    But when I select the option to empty everything when I close Firefox I can chose what is deleted
    - Cookies
    - Download history
    - Cache
    etc...
    There should be an option for pinned tabs. Especially because this tabs are not simple tabs but tabs you want to keep.
    The only solution I have found so far is to keep emptying everything and to ask to Firefox to start a folder of bookmarks as my homepage (homepage <=> several URLs separated with | )
    But it opens wide tabs and not small pinned ones :/
    We should have the option !

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

  • How to Direct control to application's window after closing the popup?

    Hi,
    I am using 10.1.3. In my application I am unable to direct control to application's window after closing the popup, if I open any other window at the same time.
    For more info see the below step:-
    -> Open any popup in my application.
    -> Open any new window (lets say Google.com).
    -> Now restore popup on Google window.
    -> Now close popup
              - control goes to Google window but not the parent application window.
    How to direct control to the parent window?
    Can anybody help me regarding this?
    Thanx...Abhijit

    Hi Abhijit,
    You can do this using Javascript alone. Below are the two sample files I created.
    main.html_
    <html>
    <head>
      <title>Testing popup</title>
      <script type="text/javascript">
      function openPopup() {
        window.open("popup.html");
      </script>
    </head>
    <body>
      <a hr_ef="javascript:openPopup()">Open popup</a>
      <input id="something" name="something" type="text" value="something">
    </body>
    </html>
    Note: hr_ef should be href. The code tags are messing with the link.
    popup.html_
    <html>
    <head>
      <title>This is the popup window</title>
      <script type="text/javascript">
      function goToMain() {
        window.opener.something.focus();
      </script>
    </head>
    <body onunload="goToMain()">
      This is the popup window. Close this window to return to main window.
    </body>
    </html>The idea is to call a javascript function in the popup window that tries to focus on an object (eg. InputText) in the main html.
    Although, one point to take note is the naming of html objects by by these ADF UI Components. If you named your form id as "*form1*" and input text id as "*something*", your input text id will end up as "*form1:something*".
    Therefore, you will have to tweak the code above to the following:
    <script type="text/javascript">
    function goToMain() {
      window.opener.form1['form1:something'].focus();
    </script>Regards,
    Chan Kelwin

  • How to auto close finder window after drag and drop?

    In Tiger, I would file away items on my desktop my dragging them to the hard drive and then digging down to the appropriate folder. The finder window would then close automatically after dropping the file. Is there a setting in Snow Leopard that will enable similar functionality? Whenever I complete a drag and drop now the finder window just stays open, which isn't a huge issue, but I'd still like to change it. Thanks!

    Here is the test code:
         lo_nd_table_data_source = wd_context->get_child_node( name = wd_this->wdctx_table_data_source ).
          lo_nd_table_data_source->get_static_attributes_table( IMPORTING table = lt_table_data_source ).
          "Read Dummy Table
          lo_nd_table_data_source->get_static_attributes_table( IMPORTING table = it_table_data_source ).
        CONCATENATE ls_airline_info-carrid ls_airline_info-connid ls_airline_info-fldate INTO ls_table_data_source-row_key.
          ls_table_data_source-parent_row_key = ls_airline_info-carrid.
          ls_table_data_source-is_leaf   = abap_false.
          ls_table_data_source-expanded  = abap_true.
            SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE it_table_data_source.
         LOOP AT it_table_data_source INTO wa_table_data_source WHERE carrid = ls_airline_info-carrid
                                                                and   connid = ls_airline_info-connid
                                                                and   fldate = ls_airline_info-fldate.
          ls_table_data_source-connid    = ls_airline_info-connid.
          ls_table_data_source-fldate    = ls_airline_info-fldate.
          ls_table_data_source-PRICE     = wa_table_data_source-PRICE.
          ls_table_data_source-CURRENCY  = wa_table_data_source-CURRENCY.
          "Select all data to the new dummy table structure.
          "Move one row of the table to ls_table_data_cource correspondingle.
          APPEND ls_table_data_source TO lt_table_data_source.
          DELETE ADJACENT DUPLICATES FROM lt_table_data_source.
       ENDLOOP.
          lo_nd_table_data_source->invalidate( ). "Clear the table data
          lo_nd_table_data_source->bind_table( lt_table_data_source ). "Refresh new data
    Thanks,
    Kiran

  • Illustrator CC 2014 closes immediately after it opens (Windows 8.1)

    Not only the Illustrator CC 2014 but other CC 2014 Apps as well closes after it opens.
    It doesn't show any error message or something like that. It's more like if I have clicked at the "close window".
    The Illustrator load itself, opens and before I can do something it immediately closes.
    I saw an error in the forum with some Wacom tablets but I've tested it with a single mouse and the error persists.
    I've just installed the CC 2014 update and now I can't run any Adobe App.
    I'm using Windows 8.1, but didn't find any topic about error occurring that way.
    Please help me.
    Thanks
    Felippe Silveira

    Hi Felippe,
    If it is Illustrator CC 2014.1(18.1.0) and you are using Extensis Suitecase Fusion then please try following solution given in the article.
    http://helpx.adobe.com/illustrator/kb/illustrator-cc-20141-crash-launch.html
    Here is the Extensions Suitcase 5 update which I believe will solve the issue.
    http://www.extensis.com/support/product-support/suitcase-fusion-5/
    Hope this helps.
    Please let me know if this is not the case.
    Regards,
    Sumit Singh

  • I am facing problem with adobe illustrator cc in windows 8,it closes automatically after few secons,please help

    I am facing problem with adobe illustrator cc in windows 8,it closes automatically after few secons,please help
    [ link removed by moderator ]

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • Window Focus Lost After Saving Page - Any Way To Get It Back With Keyboard?

    I've recently begun using Safari for Windows after having used Opera for years, and have run into a problem with window focus that I didn't have with Opera. Specifically, if you save a web page in Safari, you then find that the following functions are no longer available from the keyboard:
    1. Going back to a web page previous to the one that you just saved. Ctrl+[ does not function.
    2. Performing a search. Ctrl+F does not function.
    3. Scrolling to the bottom or top of the page. Ctrl+End and Ctrl+Home do not function. (For some reason, however, the PageUp and PageDown keys do still work in this situation.)
    Why is this, and more importantly, is there a quick and easy way that you can, using only the keyboard, regain the window focus so that these functions will work again? I'm currently having to click somewhere on the page I've just saved in order to regain the focus. This is a nuisance.
    Thanks for any advice.
    George
    Message was edited by: safwin

    Thanks very much. Hitting 'Alt' button after saving the page does resolve the first (and most important) two of the three issues I listed above. FWIW, the Ctrl+End and Ctrl+Home functions only work in this post-save scenario (as I discovered by experimenting a few minutes ago) if you hit the 'Alt' button twice (or if you do something else, like perform a search and then use Ctrl+End/Home).
    By the way, before posting a few days ago, I had tried using the Alt+Tab method when I had two or more applications' windows open, and it didn't help. But, after reading your last post, I've found that if you use Alt+Tab when Safari is the only window open, then it does resolve the issue, although of course, as you've indicated, it's not actually necessary to hit the 'Tab' key.
    Thanks again!
    George
    Message was edited by: safwin

Maybe you are looking for

  • Is there a script for this?

    Hello, I have a 176 page pdf that has black type throughout, a lot of those pages also have boxes filled with black. I need to change the boxes to rich black but leave the type black only. I tried using actions but it changes both since they have the

  • Deployment question

    Hi, We have a customer (IT admin) who would like to deploy our app on about 20 machines via web start. He then wants to turn off online updating for an indefinite period. Then, once he decides that he wants the most current version on all his machine

  • Two step confirmation

    Hi All Do we have any thing like two step confirmation in Warehouse Management. Thanking you With Rgds Vinod

  • I need a reset button ... and can't find it ...

    I have previously had no problems in connecting PB to PC and exchanging files. The last time I did so I got an error message - which I suppose I should have taken the time to read, analyze, act upon, etc.  However I did not. Now on connection (both d

  • Cfselect, cfinvoke, cfgrid in flash forms

    In an MX7.02 cfform format="flash" I would like a user to select an option in a cfselect. (e.g. name) The selected value would be passed to a cfinvokeargument the cfc returns the query results to a cfgrid get agent names.... <CFINVOKE COMPONENT="agen