on 06-10-2015 11:19 AM
Hello All,
we have a requirement to check if there is any unsaved data in my view and upon exit from the view without saving, we should give a pop up to confirm navigation.
How to check if there is any unsaved data in a view and to give a pop up to confirm navigation if there is any unsaved data?
We tried the option of calling popup in WDDOEXIT method of the view. However this was not successful.
Regards,
Aslam
Hi,
You can achieve this using Context Change Log. SAP Help - Context Change Log (Recording User Entries) - Developing Web Dynpro ABAP Applications - SAP Library
In the WDDOINT method enable the context change log using enable_context_change_log ( ) method. In the onAction of Navigating to next view/exiting call get_context_change_log( ) method which returns internal table with changed data, If the returned entries are not initial (changed) display a popup to confirm.
You can check this document for reference: http://scn.sap.com/docs/DOC-58382
hope this helps,
Regards,
Kiran
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 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.