on 04-01-2011 9:56 AM
Hi experts,
In my Webdynpro componenet I am navigating between different views. I am displaying data in one view by entering the selection fields. And, when I come back to this view the selection and the data remains in the view. I want the view to be displayed in its initial state every time. Is there any method to reset the view, to be handled in WDDOEXIT?
Thanks,
Sharmila
Hi Sharmila.,
Use invalidate() method. Suppose u want to go back to first view.. in the OnActionBack., invalidate the node in first view., as.,
lo_nd_test->invalidate( ). then the fields in the first view gets reseted.
Reply if u need some more clarifications.,
Thanks & Regards
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sharmila,
As I suggested use invalidate() method., else in the inbound handle method.., i mean if ur inbound plug for first view is tostart then in the HANDLETOSTART method manually clear the all fields by using set_attribute( ) method., as
set_attribute( exporting attribute_name = 'ATTR'
value = ' ' ).
Hi Sharmila ,
Change the lifetime of the view to when visible.
and it will not decrease your performance .
Refer to this wiki for the same :
[http://wiki.sdn.sap.com/wiki/display/Community/HighperformanceofWebdynpro+ABAP]
Regards
Kuldeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sharmila ,
you can clear the values of the nodes by using INVALIDATE method of the context controller .
regards
Kuldeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sharmila,
Go to VIEW->properties tab-> you will find LIFETIME , by default it is FRAMEWORK CONTROLLED,
Just change this to WHEN VISIBLE.
Your issue will solved.
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
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.