on 11-24-2005 5:28 AM
Anybody know how to catch the action of closing the browser window?
For example:
If I want to delete some certain files when the web dynpro application browser is closed (quit the app), where can I put the codes to define the action, which will take effects everytime the the running application window is closed.
Regards
Irene
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Irene,
Sorry for the reply.
I misunderstood your question.
Please ignore previous reply. It was for closing child window.
Use your Component controller's wdExit method to do whatever you want.
This method will call when you close your application.
Regards,
Bhavik
Message was edited by: Bhavik Devisha
Hello Irene Chen
I think it's not necessary to catch the action if you need
> If I want to delete some certain files when the web
> dynpro application browser is closed (quit the app),
you can use wdDoExit() function put your code there and the code will run where you close your application
best regards
Evgeny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
First u create an instance for the window during creation
IWDWindowInfo win=wdComponentAPI.getComponentInfo().findInWindows("windowname");
<b>IWDWindow win_obj=wdComponentAPI.getWindowManage().createWindow(win,true);</b>
With this instance u can destroy the window. if ur using popup window u can destroy the popup window by passing this instance to popup
window through component controller
u can destroy the window by using this codes.
<b>IWDWindow cl=wdContext.currentContextElement().getRef();</b>//getref is instance of window of type IWDWindow
<b>cl.destroy();</b> //To destoy the window.
All the contents of the window will be destroyed if it is used.U cannot reterive any information after its is destroyed
u can define the code in any action(button)
regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.