on 03-06-2009 10:16 AM
hi experts ,
i have created an application and on action of a button i want to get it refreshed , means it should work like home. Pls guide me in this regard.
Thanks in advance.
Hi Vishavdeep
Well we have few webdynpro applications with multiple views, by design, on the last step after save, we disable all other button and display a new button called 'RESTART' with only available choice. On click of this button
1. We initialize all the data of component.
2. Clear stored variable parameters & internal table used by assistance class
3. if everything was fine fire navigation to the FirstDefaultView of the webdynpro application.
Thus its almost restart of the application.
So design wise have a method INIT_COMP in the component controller of webdynpro component. and then at the last step when call to RESTART is made reinitialize all the data of your webdynpro component.
method onactionrestart.
wd_assist->reinit_my_obj_tables( ).
wd_this->fire_to_v_Start_plg( ).
endmethod
Greetings
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can achieve this using Exit Plug.
http://help.sap.com/saphelp_nw04s/helpdata/en/45/1bc575ba064574e10000000a114a6b/content.htm
method ONACTIONGO_EXIT .
data: L_REF_MAIN_WINDOW type ref to IG_MAIN_WINDOW .
L_REF_MAIN_WINDOW = WD_THIS->GET_MAIN_WINDOW_CTR( ).
L_REF_MAIN_WINDOW->FIRE_MY_EXIT_PLUG_PLG(
URL = 'http://www.sap.com' " String
).
Instead http://www.sap.com give your application URL
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.