Skip to Content
avatar image
Former Member

Closing the Browser

Hi Gurus,

I have a Web Dynpro application and i need to close the "BROWSER" on clicking a link. The process of sending a javascript to the exit plug to the interface View controller is not working. Please help.

Thank You.

Kind Regards,

Manoj Durairaj

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 11, 2008 at 05:43 AM

    Hi

    You can follow this procedure:

    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)

    Hope this helps.

    Regards,

    Padmalatha.K

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 11, 2008 at 06:33 AM

    Hi Manoj

    Check this thread link

    How to close the browser from webdynpro application

    Regards

    Ruturaj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 10, 2008 at 01:41 PM

    Hi,

    Why it is not working? have u checked all the stpes clearly?

    Can u you tell how u have done it?

    Regards,

    Bala

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Manoj,

      While creating the parameter for exit plug did you give the parameter as Url (It is casesensitive. U should be CAPS and rl should be small).

      If it is still not working, pls paste the complete procedure which you have done.

      Regards,

      VJR.

  • avatar image
    Former Member
    Dec 11, 2008 at 06:13 AM

    Hi,

    I remember I had done this functionality on click of Button in webdynpro application. It is there in SDN but i could not remember the link. Any how i will post the code below may be of some useful for you

    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)

    Regards

    Raghu

    Add comment
    10|10000 characters needed characters exceeded