Closing the browser

hi
Here i have a requirement such that in wdj application there is a button logoff when i click on that i have to close the borwser (on which the application is running )also...... pls help me
Warm Regards
Shanto Aloor
Edited by: Armin Reichert on Apr 18, 2008 2:50 PM

Hi Shanto,
I too faced the same problem when I implemented this. The problem was with the spelling of paramater "Url".
Check the spelling of the paramater "Url" in the exit plug. It is case sensitive and it should be "Url".
Following is the steps for creating an exit plug:
Step 1: Open the node WebDynpro → Web Dynpro Components → Your Component → Component Interface → Interface Views in the overview tree of your project. Double-click the interface view Your InterfaceView.
Step 2: Select the Plugs tab in the Plugs area.
Step 3: Choose New next to the outbound plug table. Enter a descriptiv
outbound plug, for example, GotoUrl, and choose Exit Plug.
Step 4: Select the new outbound plug GotoUrl and choose New next to the parameter table. Enter the name Url (the correct spelling is important) for the new parameter and choose string as the type.
Step 5: Open the view in the View Designer and select the Properties tab. Choose Add next to the Required Controllers table and add Your InterfaceView controller.
Step 6: Write the following code in the button action of the view:
String lnk = "";
   try {
   lnk = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"Exit.html");
   wdComponentAPI.getMessageManager().reportSuccess(lnk);
   } catch (WDURLException e) {
   e.printStackTrace();
   wdThis.wdGetCase1WindowInterfaceViewController().wdFirePlugGoToUrl(lnk);
Regards,
Rajesh A

Similar Messages

  • Closing the browser - new problem

    Hi Experts,
                      I had this issue of closing the browser in web Dynpro Java. i did it with the help of the experts views posted in SDN(passing the URL of the java file containing the javascript to close the browser to the exit plug). When i created an iView for the application and try to preview it, throws an error reading - com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application!. Please help.
    Thank You.
    Kind Regards,
    Manoj Durairaj

    Well, with more testing and my buddy's help, what I've learned is that the "Save and Quit" tabs dialogue takes precedence over the warning for closing multiple tabs.
    By having browser.showQuitWarning set to true, it will ask me to save and quit - but not if "Show my windows and tabs from last time" is selected for Firefox startup, which makes the prompt for save and quit (and close multiple tabs warning) redundant. It will just save for you upon quitting.
    And had I turned off that browser.showQuitWarning manually or by checking "Do not ask next time" on the save and quit dialogue, then the warning for closing multiple tabs would appear upon attempting to close multiple tabs, since I have that warn option set in my tabs settings.
    It's one or the other, save and quit OR warning for closing multiple tabs.
    It would be nice though if there weren't a conflict between the close multiple tabs warning and the quit Firefox dialogue.
    So, I hope this can help anyone else who may be confused or accidentally change options and potentially screw themselves over. After all, I may have sustained a self-inflicted wound in the settings.

  • Closing the browser in InfoView doesn't log the user off.

    In Business Objects XI R2 Infoview, closing the browser in InfoView doesn't log the user off no matter how you answer the subsequent popup question "A window has closed. Log off as well?" Is there a fix for this somewhere?

    hi,
    In InfoView, with Performance Management installed, user sessions fail to be released immediately when the Log Off button is clicked.
    If you click the logoff button in Infoview and watch the address bar you will notice that it actually goes to another page called default.htm. It does this really fast. That page is located at C:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\InfoView. Remove both the default.htm and index.html and reboot your Tomcat server. Open a browser and go to Infoview. Once you have gotten in to Infoview click the log off button. You will get and error from the tomcat server and that is because the page does not exist anymore. If you look in CMS under servers and CMS you will also notice it dropped the session as well. So if you create another Default.htm page of your own and just redirect to another page it all should work.
    However I did notice an interesting ADAPT in CHF15 :-
    http://support.businessobjects.com/CommunityCS/FilesAndUpdates/boxir2_en_chf15_readme.pdf
    ADAPT00576483 Patch ID: 39,216,665
    Also did u do any customization setting before ?

  • Firefox no longer loads home page or deletes cookies. I have repeatedly checked both settings and they are correct. It always goes to the last page I was on when I closed the browser ..

    Firefox no longer loads home page or deletes cookies. I have repeatedly checked both settings and they are correct. It always goes to the last page I was on when I closed the browser .

    Go to '''TOOLS''' then''' OPTIONS''' then in '''GENERAL''' panel in '''STARTUP '''session choose '''Show my home page''', then click '''OK''' to save it, exit firefox and restart-it.
    see for more info: [https://support.mozilla.org/en-US/kb/Options%20window%20-%20General%20panel Options window - General panel]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • I have customized my Firefox toolbar. After closing the browser and then reopening it, the toolbar has returned to the way it was before I customized it. How do I get my customization of the toolbar to become permanent?

    I have customized my Firefox toolbar several times. After closing the browser and then reopening it, the toolbar has returned to the way it was before I customized it each time. How do I get my customization of the toolbar to become permanent?
    It has occurred with Firefox 4.0.1 and 5.0

    see http://kb.mozillazine.org/Corrupt_localstore.rdf
    Take a picture of your toolbars so you can easily reconstruct them from the default after solving the the problem.
    If it happens to you it will probably happen again in the future so you might want to keep some copies of your modified localstore.rdf file so you can delete the bad one and rename one of the replacements in waiting. Saving, copying and renaming must be done with Firefox down, of course.

  • Is there a way to close a pinned tab without unpinning it or closing the browser completely?

    when i have one of my pinned tabs opened and i open a new tab, i cant find a way to close the pinned tab without closing the browser completly.
    is there a way to close a pinned tab?
    thanks.

    You can also middle-click a tab to close that tab and that also works for pinned tabs.

  • Issue Tracker app closing the browser window on chart page

    Hi!
    I am walking through the Issue tracker tutorial. I have created page 10 (Issues Resolved by Month) which is the chart page. Everything looked fine until I try to run the page. Then it simply closed the browser window after it authenticates me. Anyone else see this? Any ideas?
    Thanks!

    Probably a problem with your SVG viewer installation. Does it happen on other chart pages as well? What browser/svg viewer version combination are you using? There are some known issues with what's labeled as the current svg viewer on Adobe's website and Firefox.
    Earl

  • Cannot save opened tabs before closing the browser

    Cannot save opened tabs before closing the browser. I do not know if there is such a feature (should be), and how to activate it.
    It was very useful with previous version.

    One change in Firefox 4 is to by default stop Firefox displaying the warning message, but it can be turned back on by changing some preferences.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''browser.tabs.warnOnClose''', if its value is set to '''false''', double-click on it to change its value to '''true'''
    # Repeat this for these 3 preferences '''browser.warnOnQuit''', '''browser.warnOnRestart''' and '''browser.showQuitWarning'''
    If you always open the last set of tabs an alternative approach is this:
    # Click the orange Firefox button, then select options to open the options window
    # Go to the General panel
    # Change the setting "When Firefox starts" to "Show my windows and tabs from last time"

  • When I restart the browser, its not opening the previously opened tabs even though I saved before closing the browser. Pls guide me.

    Dear sir,
    When I restart the browser, its not opening the previously opened tabs even though I saved before closing the browser. This problem was not there in the older versions less than 3.6.8. Even the browser speed has gone down. This is everyday problem with this browser.
    Pls suggest ASAP.
    Thanks & Regards,
    Tripad

    See this article for some suggestions: [[Firefox has just updated tab shows each time you start Firefox]]
    See also http://kb.mozillazine.org/Preferences_not_saved and Preferences are not saved

  • Detect closing the Browser

    Hi ,
    How can i detect the event of closing the Browser that contains my application !?
    Best Regards,

    There is no built-in for that. Why do you want to detect it?

  • Some secure sites recommend closing the browser. Is closing the tab the same as closing the browser?

    Secure sites recommend closing the browser. Is closing just the tab effectively the same?

    you can try disabling ipv6 support in firefox & see if that helps - [https://support.mozilla.org/en-US/kb/Server%20not%20found#w_ipv6]

  • How to avoid the logon screen after closing the browser

    Im working with annonymous users showing a Iview but when I close the browser, instead of closing the browser the logon of portal appears. I dont want that how can I avoid this ?
    thx

    Hi
    I am not clear with your question. How do you close the browser ? Is it by hitting the cross button on the Top right corner ?
    Murali.

  • Logoff while closing the browser.

    HI all,
    Portal logoff is different from closing the browser,as i know.
    But can we do logoff while closing the browser?
    We must close the session such as BSP application.
    Any helpful answer is welcomed.
    THank you.
    Best Regards,
    delma

    hi
    THank you for your advice.
    The strange thing is : there's no popup "closing session" window when i close the browser.
    And I look after the trace.No dsm.terminator is called at all when i close the browser.
    But when I logoff, dsm.terminator is called and the window is poped up.
    This is what i am confused.
    Thank you.
    Best Regards,
    delma

  • How do I configure Firefox 4.01 to save all tabs when closing the browser?

    In the previous version 3.x.y of Firefox, when I closed the browser, it asked me if I wanted to save my open pages / tabs before closing. When I subsequently opened the browser again, it reloaded all the previously open tabs / pages. In version 4.01, before closing the browser warns me that I am closing multiple tabs but when I restart the browser again, it does not load the previously open tabs. How do I configure the browser to behave like the old 3.x.y version, i.e. neatly saving all the open tabs and loading these again when opening restarting the browser?

    Hi TonyE, this was a very useful reply. The first part of your answer had already been posted by someone else. Your answer in particular shows the nitty gritty detail of how to automate it. I had searched in the options already but had not found step 3 above yet. But I have found it now and have changed it from "Home page" to "Show my windows and tabs from last time".
    Thanks a lot for letting me know this solution and making me aware of the drop down list.

  • Closing the browser without popup message

    Hi Experts,
    I refered the following thread and done the below steps
    1.Create a Button called Exit.
    2.Create an action for this button.
    3. In the event handler for this button, write the following code:
    String Url;
    try {
    Url = WDURLGenerator.getWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"close.html");
    wdThis.wdGetAtpEmpDetailsWinInterfaceViewController().wdFirePlugExitPlug(Url);
    } catch (Exception e) {
    wdComponentAPI.getMessageManager().reportException("Technical Exception occured in the application : " + e.toString(), true);
    4.Create a html page called u201Cclose.htmlu201D with Javascript code for closing a browser window.
    5.Place this html page in SRC -> Mimes -> Components -> Project Structure(Create this folder and place the html page in this folder)
    I have used Ie 7.0
    My questin is when i clicking the button. It show popup message like
    "Do you want to close this window " I don't want this popup.
    without popup i need to close this window? How to do that?
    Regards,
    Manivannan P

    Hi Manivannan p,
    1.Create a Button called Close.
    2.Create an action for this button.
    3. In the event handler for this button, write the following code
    You can try this
    public void onActionClose(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionClose(ServerEvent)
    WDPortalEventing.fire("urn:com.sapportals:navigation", "CloseWindow", "");
    //@@end
    This will help you closing the window with out Popup
    Here we are calling a "Portal Event" called " CloseWindow" to close the windoe
    Get back if you have any questions
    Thanks & Regards
    Swetha

  • Closing the browser with a single click from form

    Hi All,
    Will u please help me anyone how to close the browser with a single click pressing exit button or closing the cross buton.
    Arif

    Always start with a search on this forum
    Solution
    Instructions:
    1. Using an html or text editor, create an html file with the following code:
    <html>
    <head>
    <script type="text/javascript">
    // Create a ref to the original method
    var windowClose = window.close;
    // Re-implement window.open
    window.close = function ()
    window.open("","_self");
    windowClose();
    </script>
    </head>
    <body onload="window.close()">
    <!-- The following text added in case users have disabled Java Scripting -->
    <!-- or if browser fails to close for some other reason. -->
    Your browser or system settings have prevented this window from closing.
    In order to ensure the highest level of security,
    please close/exit this browser session immediately.
    </body>
    </html> 2. Save the html file with the following name: close.htm
    3. Store this file on the middle tier, in a directory which has an associated virtual path configured in the HTTP Server. You can use a pre-existing path or create a new one. For example, in version 10.1.2 you could copy the html file to this directory:
    ORACLE_HOME\tools\web\html
    The above virtually maps to the following by default:
    /forms/html/
    For information on creating a virtual path for the HTTP Server, please refer to the HTTP Server Administrator's Guide.
    4. In the Forms application, choose the desired trigger where you would like to execute the closing of the browser. Remember that by executing this code, the application will be ungracefully terminated, therefore it is recommended that the following code only be entered in the Forms POST-FORM trigger.
    web.show_document ('/forms/html/close.htm','_self');
    5. Compile and run the form.
    Upon exiting the form, the web browser will call close.htm resulting in the browser closing.
    This has been successfully tested using IE7 on XP-SP3. Although this code will work with other browsers, for example FireFox 3, a configuration change in FF must be made in order for it to work correctly.
    Manual Steps Required for FireFox:
    1. Open one instance of the FireFox browser.
    2. In the address bar, enter the following and press Enter on the keyboard:
    about:config
    3. In the list presented, locate the following parameter:
    dom.allow_scripts_to_close_windows
    4. Double-click on this parameter to set its value to TRUE
    5. Exit the browser
    Edited by: BaiG on Mar 30, 2010 12:23 PM

Maybe you are looking for