on 12-10-2008 1:36 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Why it is not working? have u checked all the stpes clearly?
Can u you tell how u have done it?
Regards,
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bala,
I created as per one of the forum by Nibu Wilson where he goes on to pass this javascript to the exit plug. There was also another option of closing by getting the absolute URL of the html page stored in the mimes folder and sending it to the exit plug. However both the solutions were not working.
Thank You.
Kind Regards,
Manoj Durairaj
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.