cancel
Showing results for 
Search instead for 
Did you mean: 

How to refresh view of an application programmatically using java WebDynpro

Former Member
0 Kudos

I want to refersh page of an application in ess portal without using external refresh

button .I want to do this task programatically in java webdynpro.

Accepted Solutions (1)

Accepted Solutions (1)

abhijeet_mukkawar
Active Contributor
0 Kudos

hi,

Have you tried view.resetView()?

This will reset the view to its original state, and this should be written in wdDoModifyView() method.

and this can be followed by the code with whatever changes you want next .

hope it helps

regards,

abhijeet

Answers (2)

Answers (2)

Former Member
0 Kudos

Laxmikant,

There are different flavors of "refresh":

1. Resetting data: try wdContext.getContext().reset(true) in view, probably you need to reset context in component controller (if view context nodes are mapped) and it might be necessary to re-execute certain BAPI-s

2. Resetting UI: if you are creating UI controls programmatically, you can reset view UI to initial state via IWDView.resetView();

3. Reset navigation: probably you have several views in window and have navigated between them. Then you need to add additional plug(s) and fire them to navigate back inside WD window.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Laxmi,

view.reset() will do refresh.

If you want to refresh view content or value of the fields. you can intialize page by setting context atrributes associated with each field to NULL or empty space.

Regards, Suresh KB