cancel
Showing results for 
Search instead for 
Did you mean: 

Refresh / Reload Webdynpro application

Former Member
0 Kudos

Hi All,

Is there any way to reload / refresh a webdynpro application . My requirement is on click of a button i want to reload the same webdynpro application so that the application ( view / context / global variables ) will be in the same state as when we initially click on the iview from detailed navigation.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Raj,

To reset all the contexts you can use the following code:

wdContext.getContext().reset(true);

Thanks n Regards,

Jhansi Miryala

RobEricsson
Participant
0 Kudos

I've never tried reloading the entire application.

However, to reset the state of a context, you can invalidate the root node and then restore it to it's initial state by calling the wdDoInit() method. Something like

wdContext.invalidate();

wdDoInit();

Rob