End-user closes the Web browser's window...

Hi ,
I have an Exit_Form selection on a menu.....
Is it possible the code being there to be executed whenever the end-user closes the web-browser's window.....???
I use Dev10g.
Thanks , a lot

Unfortunately... is is not applicable....because:
1) Many users(application users) connect via a db user to the database.... , so i cannot relate each application user to a db session.
2) The trigger on_logoff can not be used because of the first note....
3) As i have written in my previous post the "exit_form" is not 'pure PL/SQL' code but 'forms' code.... It contains some 'erase(global_variables)' which are unknown to the db......
Thanks , anyway...

Similar Messages

  • Can applet close the Web browser window it embedded in?

    I know that a link or button in the Web browser can close the browser window. But I really don't if the applet can also do it.

    This site does have a search function you know, and if thats too much trouble there is google:
    This should point you in the direction of a thing called JSObject
    Here is some code since I have this in my archive anyway:
    the html file:
         <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
                  height="0" width="0" >
            <param name="code" value="someApplet.class" />
            <!--[if !IE]> Mozilla/Netscape and its brethren -->
            <object classid="java:someApplet.class"
                    height="0" width="0"
            <!-- <![endif]-->
    <LABEL id="lblOutputText">This text is the HTML text </LABEL>the applet:
    // new class for jsObject!!!! compile this: javac -classpath "C:\Program Files\Java\j2re1.4.2_01\lib\plugin.jar" someApplet.java
    // since jaws.jar does not exsist anymore
    // in 1.4.0 to compile: javac -classpath "C:\j2sdk1.4.0_03\jre\lib\jaws.jar" someApplet.java
    import netscape.javascript.*;
    public class someApplet extends java.applet.Applet {
        JSObject win;
        public void init() {
                 win = JSObject.getWindow(this);
    // you need win.eval("window.close();"); // to close the window. if the current window is not a popup
    // opened by a parent with window.open than the user will get a waring, your next question probably will
    // be "can I stop this warning" and the answer is simple: NO
                 JSObject textBoxLabel = (JSObject) win.eval("document.getElementById('lblOutputText')");
                 textBoxLabel.setMember("innerHTML", "<center><h1>Some text</h1></center>");
            }catch(Exception e){

  • How to close the web browser

    How can I be sure the web browser and all screens are completely closed on the droid 2

    Why is closing the browser important? Are you concerned about battery life?
    To close any app that is running you can go to Settings > Applications > Manage Applications > Running and force stop on the browser.
    It is certainly harder than on PC or MAC platforms, and even on some other smartphones.  At the same time, in many smartphones including Windows Mobile, iPhone, BB and others, the general model is different than computers - the general approach is that well behaved applications in essence are meant to be demanding no CPU when they are not in focus, unless there's some explicit background function like periodically obtaining e-mail and such.
    Certainly this may not always be the case, especially if an app is not coded correctly - but generally the guidelines for developers of smartphone code across multiple platforms discourages having an exit button and instead focuses on how to make sure an app is well behaved and low in demand during expected prolonged periods of dormancy.

  • How to close the web browser already opened by a SAP report?

    Hi all,
    pretty strange question: a report written on an old 46C system "triggers" a web app opening a web link with the predefined browser.
    I've seen many alternatives to open a web page (call method cl_gui_frontend_services=>execute, call method open_browser), but no methods to eventually close the browser and I wonder if it's possible.
    The meaning of this request: the report will probably scheduled, so we'd like to trigger the web app and then close the browser... we are using this unusual method since managing web service calls in our obsolete system seems problematic (we opened a thread in SOA section specifically on the topic... seems it's not possible to do in a "clean" way).

    After trying a bit, I noticed it's not possible since there's no control on the lauched application. Solved using a workaround, thanks

  • How to close a HTTP session when a user closes the window

    I am having problems when closing the browser of a BW web report. After I closed the browser by going File->close, I ran SM04 and found out the Plugin HTTP session hangs at the server side.
    How can we terminate the Plugin HTTP session at the server side when user closes the internet browser?
    I did implement a logoff function at my web template and this was implimented on the Menu page, if user clicks on the logoff, the Plugin HTTP session is terminated at server side correctly.
    If user navigates to the other pages from the main page... then the logoff function was not implimented in the other pages. So many of the users are closing the windows directly. Eevn if we impliment logoff in all the subpages, As you know, 50% of time user will close the report by closing the internet browser instead of clicking the logoff. That leaves lots of hanging Plugin HTTP sessions at our server side.

    And also take a look on the Genral property of the web template. We solved this problem by changing only this property (no extra things).
    <b>Property:                            Value</b>
    Automatic Session Management:           Active
    With rgds,
    Anil Kumar Sharma .P
    Message was edited by: Anil Kumar Sharma

  • How to disable the reminding dialog when close the webi report viewer

    Dear all
    How to disable the reminding dialog when close the webi report viewer
    When user close the webi report viewer in inforview by click the button in the right-top of the webi report viewer frame. It always prompt a dialog to remind user that the modification will be lost without saving.
    But customer need to disable this dialog, and can clost the report viewer directly.
    So is there any ways to modify this?
    I think it shoule modify some .js file under tomcat, but can not find the solution.
    Thanks a lot, any information woulde be appreciated.
    David Zhang

    I've had the same issue bugging me since installing Snow, er, lion, er, cat, er, cougar, er, Mountain Lion. Incredibly ANNOYING.
    It's stupid stuff like this and reverse scrolling that really turn long-timer users off. I'm personally glad Forstall got fired for blunders such as these.
    I'm serious peeved that turning off iCloud Documents & Data actually deletes documents and data locally. That's just incredibly stupid.
    MANY thanks mende1 for the answer on how to fix it.

  • Record locks created when user closes the Browser and not the Web Form

    Hi. We sometimes encounter the issue where a user updates a record, locking the record on the table, but then they unexpectedly closes the browser without saving by clicking the X in the upper-right of the browser window. Then when another user comes along and attempts to edit that record they get the message Unable to Reserve Record. The orphaned record lock eventually does seem to clear itself out, but that can often take 15-20 minutes.
    Is there any way to speed this up? Or to pragmatically keep this from occurring? Either on the database side or with some code in a particular application?
    Please let me know your thoughts. Thanks in advance.

    If a user closes the browser window the forms runtime on the application server holding the locks is in most cases still up and running. The FORMS_TIMEOUT controls on how long a forms runtime on the server is up and running without the client applet not sending a heartbeat (See MOS note 549735.1). By default this is 15 minutes which would explain your locks being held 15 minutes.
    You could decrease the FORMS_TIMEOUT in the default.env, so the forms runtimes get cleaned earlier and thus the locks get released earlier.
    Note that if you have blocking client_hostcalls with webutil this might be a problem, as it prevents the forms applet from sending the heartbeat and after the FORMS_TIMEOUT passed while the forms applet is blocked the forms runtime on the server gets closed.

  • How I make the Web Browser Control to display a PDF in Windows 8

    I have an application that run ok in previous version of windows,  Where I can load a PDF file and the web browser control automatically use the Reader OCX of Adobe,, After Install windows 8 and download the reader for windows 8 still get and (X) where the document should be displayed.  I use the following command in my program to force the windows 8 to use the same web browser (10) in my web browser control.
    WebBrowser1.Navigate(DocumentName,"",Nothing,"User-Agent:Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)")
    But still get an  (X). IF I use the URL that is in the property of the (X) and paste in my regular IE10, it open the PDF file.

    Adobe Reader Touch is a Windows Store app and does not install a browser add-on/plug-in for "in-browser" PDF viewing.
    You can either
    Install Adobe Reader XI (desktop app) which installs browser plug-ins for Microsoft IE and Mozilla Firefox
    Use Google Chrome, which has a built-in PDF viewer (enabled by default)

  • Visual Studio 2013. Viewing a PDF file via the Web Browser control in Windows 8.1

    I am writing a Windows Forms application in which I need to view PDF files via the Web Browser control. When the control is given the Navigate() command, Windows takes over and asks which program I want to open the file with. All was fine with VS 2010 and
    XP. I have un-installed "PDF Complete", which was the default PDF viewer, but I now get asked for an alternative.
    Thanks in advance.
    Mike Saunders

    Hi Mike,
    It seems that we could use Internet Explorer to open a local .PDF file if it has the Adobe Reader. I doubt that the web control would be related to it. Like the MVP's suggset in the following thread, maybe it would be related
    to certain plug-in tools in your side like the adober reader.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    HERE to participate the survey.

  • What are the KEYstroke(s) used to CLOSE the active tab in the web browser?

    What are the KEYstroke(s) used to CLOSE the active tab in the web browser? I am reluctant to use a mouse where I can use keystrokes, as the mouse is a much slower process. In fact, can I find a list of all key strokes which can be used in Firefox, e.g. ALT+S followed by R (once or more) and ENTER used to restore previous browsing session; or CTRL+F to search for a specific word or term? Thank you.


  • Users able to build reports and dashboards via the Web browser

    Hi All,
    My requiremts is "Users able to build reports and dashboards via the Web browser and perform ad-hoc queries and analysis online via the internet" .
    Requesting to kindly let us me know  the procedure to get resolve the above requirement.

    Go through the links below
    Designing Microsoft Excel 2007 Chart
    It may help you

  • TS4532 My iPhone V will not connect to a Microsoft Exchange server. It says that the User Name or Password are incorrect even though they're not and I can log on directly to Exchange using the web browser. The connection worked until IOS 6.1.2 was Install

    My iPhone V will not connect to a Microsoft Exchange server. It says that the User Name or Password are incorrect even though they're not and I can log on directly to Exchange with the same parameters using the web browser.
    I bought the phone when it came out last October. The connection did not work at first, then started without warning in December. It worked perfectly for 2 months then stopped again when IOS 6.1.2 was Installed.
    Help please!

    I have forwarded these questions about the version of Exchange server that is being used and whether Microsoft host the mai themselves to the IT Dept but I will not get a reply from them until tomorrow.
    In the meantime I have also tried:
    Deleting and re-creating the account AGAIN!
    And re-setting the phone (recommended as a solution to a similar problem with an iPad in another forum.
    But please remember that:
    The phone would not connect for 2 months after I bought it
    Then started working unexpectedly in December
    Then stopped working again when IOS 6.1.2. was installed
    Also why am I the only person affected by this when colleagues with iPhone 3s and 4s who use the same mail system are not (I am still trying to find one with an iPhone V to see if their's works).
    Like I said I think that there must be a fault, either with my own phone or with iPhone Vs in general.

  • Trigger events when user closes a Web Form?

    Hi. Is there a way to fire code (a trigger perhaps?) when a user unexpectedly closes the entire browser window by clicking on the X in the upper, right corner of the browser?
    Or, is there a way to prevent the user from being able to close the browser window by clicking on the X?
    Any help would be great. Thanks.
    Edited by: sharpe on Jun 26, 2012 11:20 AM

    The concepts behind a running form tend to be a mystery for some. However, there is no reason to believe that any Oracle magic occurs when running an Oracle Forms application. On the client side, the running for is a standard java applet. Like any applet running in a browser, the browser uses a plug-in (the JRE in this case) to support the content (the applet). The browser creates a container on the page where the JRE can present its content or host the applet, based on the underlying html. Once the applet starts, it will be displayed in this container space on the page within the browser window. In the case of Oracle Forms, we decided it would be nice to offer an option where the form could be exposed outside of this browser space and float freely.
    So the answer to your question regarding what the "window" is called, well the browser is the "browser" and the floating window is actually a java frame which can be created in any applet. Again, no Oracle magic here. ;)
    Generally, separateFrame=true is used when more real-estate is needed or when you simply do not want to see the browser controls. That said, I often recommend against using separateFrame=true for a variety of reasons. One of the most common reasons is that if the browser window which is hosting the form is closed or if the browser navigates from the current page, the running form will terminate. Because the browser, in this case, is not doing anything obvious, end-users can easily make the mistake of thinking it is ok to navigate to a webpage using the currently shown blank page. This will cause the form to close.
    If you don't mind having the browser controls visible then using separateFrame=false is probably a better way to go. This would also allow you to use the note I mentioned in order to detect attempts to close the browser, assuming you are using Forms or newer and JRE 1.6. To detect the closing of the "separateFrame" you likely would need to create a java bean, which may become a little more complicated than what can be described here. But remember what I mentioned above, if you use separateFrame=true and the hosting browser is closed, the form will also close. So in this case, you would have to code to detect both the applet frame closing as well as the browser window.
    There are a variety of ways in which some of the browser controls can be hidden using java script, so this can offer some help if using separateFrame=false. So this is yet another option.

  • Report Not working in the Web Browser

    Hi ALL ,
    Am working on a item SKU report . The report is running fine in the BIDS but once i try to view the report in the WEB Browser
    tried both Mozilla and Internet Explorer no data is shows up .
    The report has 2 report filter one is on the service and the other one is the item sku its a multi - parameter  that contains
    a list of more than 6000 different SKU . Can the filter be the reason for the report not displaying in the web browser.
    If yes kindly advice me what the workaround for it .
    I tried having the filter in the  SQL main query but it was of no use no data it was showing after having the ssrs report filter
    at least right information its showing but in the BIDS not in the main web browser.
    Kindly Help

    Hi Priya,
    According to the description, I understand that there are parameters (@SKU and @SKUlist) in the report, and SKUlist parameter is multi-value parameter. When selecting values of the SKU parameter, the parameter SKUlist will display corresponding values. In this
    case, you should create cascading parameters, right? And you use parameters to filter the report.
    Because the data of the report can be shown in the Business Intelligence Development Studio (BIDS) environment, the issue only occurs after deploying the report to report server. Based on my research, I think it may occur because of web browser issue. I have
    known you use Mozilla and Internet Explorer to view the report but there is still no data.
    In Reporting Services, not all report functionality is supported by all browsers. In this scenario, I suggest you considering the aspects of the setting or third party add-ons of Internet Explorer (IE). You can refer to the steps below:
    1. Click Tools -> Internet options.
    2. Switch to the Security tab, click Local intranet, and then select Default level.
    3. Switch to the Advanced tab, and click Restore advanced settings.
    4. Temporarily disable third party add-ons. For detailed steps, please see the link:
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Sending an email to the user if the WEBi scheduling failed in CMC

    Hello Everyone,
    Current scenario :
    I am scheduling WEBi report through CMC and the report is going to end user email as an excel attachment.
    Desired Functionality :
    What happens is if the scheduling fails due to some reason. The email does not go to the end user on a particular date and then he complaints.
    What i need here an email sending option that if the WEBi scheduling has been failed in CMC an email should go to the user saying : " The WEBi scheduling has failed. The team is working on it " . (This is just a sample message)
    So the idea is to send an email to the user when the WEBi scheduling fails in the CMC. How to achieve this ?
    Ashutosh Singh

    Hi Ashutosh,
    You can send an alert email to a group when the schedule fails to run by choosing the "A job has failed to run" option under notification.
    You can see this option only if you schedule the report through CMC.

Maybe you are looking for