on 01-12-2011 9:44 AM
Hi experts!
I need to show a popup after the user click on symbol 'X' of the browser. The popup advise that if the user don't save the informations, the same informations will be lost. Where I have to put the code? Can you give me an exemple of the code?
Thanks a lot.
Edited by: webdynpro.gc on Jan 12, 2011 10:44 AM
Hi webdynpro ,
if your application is run in portal then you can do set work protection mode as suggested by basker
When a Web Dynpro application is run in a portal it is necessary to set Work Protection mode to avoid any data loss by navigating away from the application. When the Work protection mode is set to dirty and the user tries to navigate away from the application the portal manager will display a window with three options prompting the user to choose one.
below is the code to set work protection mode .
DATA: lr_portal_mgr TYPE REF TO if_wd_portal_integration.
* get api
lr_comp_api = wd_this->wd_get_api( ).
* get portal manager
lr_portal_mgr = lr_comp_api->get_portal_manager( ).
* set dirty
lr_portal_mgr->set_application_dirty_flag( dirty_flag = abap_true ).
regards
chinnaiya P
Edited by: chinnaiya pandiyan on Jan 12, 2011 4:47 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it will go to wddoexit method on closing the browser but navigation cannot be stopped.
so as basakaran suggested you can try work protected mode.
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.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.