Help!! Closing browser window when form closes

We have migrated from forms 5.0 to Forms 6i, running the forms on FormsServer 6. When I click on the exit button which executes exit_form, the applet window area clears and the browser window remains open. Is there a technique to close the browser window?
Thanks in advance,
Ed
[email protected]

Hi there,
Write a Post-Form trigger with the following line of code:
Web.Show_Document('teclose.html','_self');
The code for teclose.htm is as follows:
<html>
<body onload="closeit()">
<script>
function closeit()
window.close();
</script>
</body>
</html>
Don't forget to include the path in web.show_document to access the teclose.htm. See the
help on web.show_document in forms help.
Hope that will solve your problem.
Thanks
Pranati

Similar Messages

  • Closing browser window when form is closed

     

    Thanks, Michael.  I agree about exit_form.
    I want the second browser to block the first set of forms running in the first browser because it's a dataflow requirement - user goes from Form A to Form B, must complete their work in Form B before returning to Form A.  So I'm actually happy that webutil_host.host freezes Form A.  I don't want to use non-blocking because this would let the user back in Form A before they were done with Form B (and would potentially leave a lot of browser windows open).  I did initally try web.show_document but that was non-blocking.
    Normally, I would use a call_form in this scenario, but I have to log into a second database (for security reasons) for the user to complete their task in Form B, and if I use a call_form and then want to log into a second database, I have to log out of my first one (which causes me to lose all sorts of global variables and session variables), log into the second, and then log back into the first (and I don't get my globals or session variables back in that case).  So, I am keeping Session 1 alive in Form A, calling Form B and starting Session 2 against a second database, and then closing Session 2 and Form B and returning to Session1 (which is still open)and Form A.  Is there is a better way to do thise, please let me know.  (Mind you, this all worked very well in client/server mode - funny how the older tools can be more straightforward.)
    And yes, I agree that we are using an old OAS (OAS10gR1).  I have been suggesting an upgrade but am being told that it would require too much effort.  We have 200 forms and upgrading them to work with the newer OAS is something I have been told we cannot do.  If it doesn't require a forms upgrade (beyond open in new builder, save, and close), then I might have some luck making it happen, but everyone seems to think it does require more work than that.  If that is not true, please let me know.  I think that would solve a lot of our problems.
    Meredith

  • Close Browser window when you close 10g forms

    Help Please.... I am trying to close browser window when I exit 10g forms:
    Per oracle Note:115905.1
    create close.html file Put the html file in the webserver root.
    I created the following file in $ORACLE_HOME/Apache directory (webserver directory??)
    1.)Create an html file (es. close.html):
    <html>
    <body onload="closeit()">
    <script>
    function closeit()
    win = top;
    win.opener = top;
    win.close ();
    </script>
    </body>
    </html>
    In exit form when button pressed I have the code
    web.show_document('http://apphost1.univ-wea.com:7777/close.html','_self');
    The brwser window does not close automatically.
    thanks,
    Anitha

    Hello this is saras from chennai.
    Now i m developing oracle forms using 6i. now i m running it independantly. that is i put forms in one folder and run these forms using shortcut. If i m using the same in client machine also. But now i want to run these forms in webbrowser(client-server). for this i done the followings.
    1. installing forms server and reports server.
    2.Also i install IIS Server and appachie server also.
    3. I had fmx files.
    now i dont know the procedure to configure these web server with forms server. And i hold the fmx files in inetpub\wwroot folder.
    Which one is the easy method appachiee server or iis server.
    Please help me to run these fmx files in web browser.
    I m eagerly waiting for your favourable reply.
    saras,
    [email protected]
    chennai

  • Close browser window when applet closes (seperateFrame=True)

    Hello,
    Does anyone know a way to close the parent browser window when the java applet closes when the config setting seperateFrame=True?
    Thanks

    Do a little search in the forum, there are 100s of solutions on how to close the browser window.

  • Popup to confirm when closing browser window?

    Hi
    I want to display popup confirm window when closing browser window, "changes will be lost" yes or no. for this i searched forums got some idea, about "WORK PROTECT MODE". this will work only when our application running from portal. my doubt is where should i write code for this??? any help
    Thanks,
    kris.

    Hi Thomas,
    We are on ECC6.0 enph5.
    In system configuration in epc.loader(service) the value for work protect mode is set as 1 - Protect unsaved data (open page in a new window) 
    1)Is it possible to override this value within WD ABAP application? for example show popup window when there is unsaved data
    2)In this scenario what is the significance of L_PORTAL_MANAGER->SET_WORK_PROTECT_MODE
    and   L_PORTAL_MANAGER->SET_APPLICATION_DIRTY_FLAG
    3)Where exactly  L_PORTAL_MANAGER->SET_APPLICATION_DIRTY_FLAG has to coded. It does trigger modify method of the view.
    Thanks,
    chamu

  • How to show a confirmation when closing browser window in jdeveloper11g

    Hi
    I'm Using Jdev 11g
    How to show a confirmation when closing browser window in jdeveloper11g
    Regards
    Abhilash

    Abhilash,
    My goodness...
    Didn't search the forum, eh? In fact, didn't even look at the last 5 or 6 posts - this was posted by another user within the past few hours.... Giving a message while closing a jspx page.
    John

  • Opening hotmail: Please refresh your browser window, When you access your Windows Live Hotmail account from more than one computer, we ask you to sign in again to help keep your account private and secure . Refreshed but no change. in Safari no problem

    opening hotmail in firefox: Please refresh your browser window, When you access your Windows Live Hotmail account from more than one computer, we ask you to sign in again to help keep your account private and secure . Refreshed but no change. in Safari no problem

    Go to '''Options '''on Firefox Browser-->'''Advanced'''-->''Click on'' '''Network '''tab-->''Select '''''Settings'''-->''Select '''''Use System Proxy Settings
    '''

  • How to maximise the browser window in Forms 9i?

    I want to maximise the MDI window in an Oracle 9i Form. Many posts here say to use:
    Set_Window_Property(Forms_MDI_Window,Window_State,Maximize);
    but it doesn't work for me. Some posts suggest there is a bug that prevents it from working. If this is the case, is there some javascript I can run to do this for me? I am already using javascript to close the browser window when I am finished with the form, so a little more wouldn't hurt.
    thx
    adam

    When you are running inside the browser, you have no MDI window to maximize. (But there is a frame size that is set on the URL line or in the config file, which cannot be changed from the form).
    <p>When running SeparateFrame=True, you have an MDI window, and if you issue the maximize, Forms will set it to cover the full screen, but it will NOT be maximized.
    <p>And if you use get_window_property, it will always report window_state=normal, even if the user maximizes the window.
    <p>See MDI Window State in web forms

  • Web delivery inconsistencies /Closing browser windows

    I have a huge piece being web-delivered. Sometimes everything
    works perfectly, but occasionally we get a "Error reading segment
    file" or "file is damaged or not an Authorware file" message. Is
    there a solution for this problem?
    Also, is there a function or a way to close a browser window
    when you are ready to quit a web-based Authorware piece. If so,
    does it work if your piece is playing "onTop" rather than "in
    place"?
    Thanks!

    We have solved this by having the Authorware file call
    another HTML file that has a javascript:window.close() in it in the
    onLoad behavior (works for PC and Macintosh)
    We also have our Authorware pieces onTop and it works great!
    I have included the entire HTML code we are using. Just know,
    that if this is the only Browser window open, that It will come up
    with a window box something like ("..This windows is trying to
    close. Close the window YES/NO?")
    Hope this helps.
    Julia
    <html>
    <head>
    <title>Close the Browser Window</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    </head>
    <body onload="javascript:window.close()">
    </body>
    </html>
    -----------------------

  • Reg: To open a Browse Window Using Form Builder

    Dear All,
    I am trying to open a browse window using form builder.I am using forms 10g.
    I have user the following code.
    Declare
    l_file_name Varchar2(383);
    Begin
    l_file_name := webutil_file.file_open_dialog( );
    If
      l_file_name Is Not Null
    Then
      If
        :images.Rowid Is Not Null
      Then
        create_record;
      End If;
      client_image.read_image_file ( l_file_name, Substr ( l_file_name, Instr ( l_file_name , -1 ) ), 'images.images' );--block.item
    End If;
    End;I have attached the webutil.pll in attached library.
    It shows an error" WEBUTIL Object group not attached to this form".
    Can any one help me how to attach that object group.
    Thankx in advance.
    Cheers,
    Jai.

    write this in your 'Browse' Button's , when_button_pressed trigger
    DECLARE
      filename VARCHAR2(500);
    BEGIN
      filename:=GET_FILE_NAME(' ',NULL,NULL,'Choose any directory.',OPEN_FILE,TRUE);
      :txtbx3:=filename;  -- Here you will assign to you form's field.
    END;Edited by: Tuts009 on May 10, 2010 5:00 AM

  • Can I close the browser window when I run a form?

    Hi,
    I'm running forms using SeparateFrame=TRUE, but the browser windows remains in background, could I close it before exiting the form?
    thanks

    See my code in this thread:
    9i Browser Fun!
    You may be able to do this via Javascript.

  • Prompting users for confimation when closing browser window

    Hi All,
    I would like to prompt the user with a popup-screen asking for confirmation that he wants to close the browser when hitting the browser-close ('X') button. Is this possible ?
    If the user chose to cancel the browser window shoud remain open, with all content as it was... and of course if he chooses to continue the window should just close.
    the WDA app is straight forward, and not running inside the portal.
    Thanx in advance
    -Tonni

    Hi Tonni,
    I thought I should add - the portal does implement a work protection mode that does allow you to prompt users if they navigate away from your page - and one of the best ways to implement that is through the FPM and its work protect mode interface.
    However, that still doesn't help, I'm afraid, in the case where you're trying to stop the user closing the browser window...
    I should also point out that some browsers do indeed produce an event which can be trapped on close of the window, and have been hugely exploited by website designers - to the extent that later/better versions no longer support it. Remember the web pages that when you closed spawned 3 more, and those 3 more etc. etc.
    Cheers,
    Chris
    edit:  also worth pointing out that the "Close" button provided within a portal session by the FPM is a form of navigation and can be trapped. Likewise any internal navigation button that perform the same sort of thing within your app.
    Edited by: Chris Paine on Mar 29, 2010 3:08 PM

  • Trigger Javascript when closing browser window from CP8

    I worry this isn't possible but here goes....any help would be incredible.
    Recently I was given some great advice on how to trigger a Javascript action in the frame on our LMS which the Captivate file plays in.
    It works perfectly and on the final page triggers the Javascript which send usage back to the LMS and forward the user to a page which allows them to rate the course.
    The code was as follows:
    top.code.closeSCOContent();
    closeSCOContent() is something written into our LMS.
    However the obvious issue occurs when a user just closes the browser window and for some reason our LMS doesn't record any bookmarking or any data.
    The only way it seems to do this is if that function is called.
    So using the window.onunload() or the DOFinish; function is there a way I can edit any file in the Captivate output to trigger this function when closing the browser?
    Long shot I know but currently the best I have managed is getting the course to trigger this as soon as it loads rather than closing the window?
    Massive thanks in advance for any advice.

    Any solution to ensure the data is written back to the LMS would solve the issue.
    Currently when the close button is pressed nothing happens at all and it's a big problem.
    Triggering this .closeSCOContent() function would be the ideal, but if it's not possible anything to write back would be best.
    When you say <body onbeforeunload="top.code.closeSCOContent();">
    Do you mean putting this in the HTML file of the output which currently is:
    <body bgcolor="#f2f2f2">
    and change this to:
    <body onbeforeunload="top.code.closeSCOContent();" body bgcolor="#f2f2f2">

  • If I accidently open a 2nd session of firefox resulting in two open windows when I close one window they both close and I lose my tab groups. How can I close just one of the two windows?

    I have 3 profiles, one of which I typically use. I have firefox prompt for the profile when it loads. I recently renamed the profiles (earlier this week). So... the profiles do not exactly match the folder names for the profiles.

    I don't understand what happened above, but ericn1, wasn't your problem that you tried to close one browser window using the red X, and ALL of them closed? How did any of the above help you solve your problem? jscher2000 gave you alternate methods of closing windows but said that closing a window with the red X "should" work. It doesn't work, because it is closing ALL your windows, not just the one you are clicking on. I am now having the same problem. with Firefox.
    Understand I do not have the problem with any other program. In other words, I can open multiple windows in Paint Shop Pro, IE, Notepad, etc. and close one with the red X and all others remain open. It ONLY happens when using the Firefox browser.
    The red X should close only the window that you are in when you click on it.
    NOW, before someone suggests tabs, I don't like them and don't use them. My choice. Before someone says my browser is out-of-date, (3.6.13) I am using it because it was the last version that worked reliably on my computers, both at home (Windows 7 Professional) and my office (Windows XP Professional).
    When I updated to the last Firefox browser, both computers started seizing up (nothing worked and had to reboot using power button) Removing that version of Firefox and going back to this version solved that problem. Fact remains, version has little to do with this problem. I've seen other posts around the net about this with different (newer) versions of Firefox.
    So . . . does anyone have a solution to this that doesn't involve using keystrokes or hot keys to close windows instead of the red X that should work properly?

  • Maximize and closing browser window

    Hi all.
    I have two problems.
    I'm running a form in separateframe =true. I want to maximize the browser window. How can I do this???
    The second problem: how can I close the browser window? I have create a post-form trigger and I put this code: web.show_document('JavaScript:window.close();','_self');
    but nothing appens. Is there someone that can help me???
    Thank you all,
    Fabrizio

    For closing the browser window after closing a form you need to create an html file with the following code in it.
    for Internet Explorer:
    <html>
    <body onload="closeit()">
    <script>
    function closeit()
         win = top;
         win.opener = top;
         win.close ();
    </script>
    </body>
    </html>Place this file where Oracle HTTP server can read (virtual directory) and call in in a post form trigger with web.show_document.
    WEB.SHOW_DOCUMENT('http://machinename.domain:portno/mydirectory/close.html',
    '_self');Make sure you use _self to the close the applet browser.
    You can sue the same method to maximize the browser window too with the appropriate code.
    Regards,
    Tony

Maybe you are looking for

  • Double PR00 condition at item level in the IC

    Hello SAP Gurus, I need your help with this issue. Scenario: I enter the Interaction Center UI and start creating a sales order with "MXN" as the currency at header level, I enter a product in "USD" and price is not calculated automatically and has t

  • Planned revenue from Sales document

    HI, We are using Assembly processing where the Project is triggerred thru sales order.The planned revenue from the sales order can be seen in CNS41. Apart from this I am creating some other sales order which I assign manually to the same project but

  • Screen tapping problems in iOS 5.0.1 on iPad 1

    After the update to ios 5.0.1 on our ipad1, some websites doe not function properluy. When tapping text windows, the cursor appears above the window and not in the window itself. Some buttons of the website I tried do not work. Does anyone know of th

  • Exposing Inbound Interfaces as Web Service

    Hi, when it comes to expose XI interfaces as web services, the XI documentation quotes: "Sie können sowohl von Outbound- als auch von Inbound-Message-Interfaces WSDL-Beschreibungen erzeugen." -> i.e. Inbound interfaces can be exposed as web services.

  • Camera shops can't print RAW format

    Recently I've come back from a beautiful Caribbean cruise with new photos taken with my Nikon camera. As soon as I came home from my vacation, I immediately took my flash card to the local camera shop hoping to get my pictures developed. I thought it