cancel
Showing results for 
Search instead for 
Did you mean: 

How to Refresh a View

Former Member
0 Kudos

Hi.

Can anyone tell me how to refresh a view in Java Webdynpro.

Is there any methods to do refresh? Plz let me know.

Regards

Bala

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Only with the setLeadSelection, my code works.

Thanks for the reply!

Former Member
0 Kudos

Hi.

Im generating the buttons dynamically in the view using WdDoModfyView()

If I call view.reset(), will the changes will be gone or will it be there.

Regards

Bala

Former Member
0 Kudos

Hi,

<i>view.resetView()</i> resets the view's layout to the initial state declared at design time. That is, all dynamic modifications to the view layout are thrown away and the view returns to the state it was in when it was initialised.

So what do you want to refresh? Is it only data on the view?

Regards,

Satyajit.

Former Member
0 Kudos

Hi,

I think refreshing a view mean that you want to refresh content and the caption of some of the fields, For this what you can do is set the context atrributes associated with wit each field to NULL or to space.

Hope this hepls you.

jeet

Answers (4)

Answers (4)

Former Member
0 Kudos

You only have to trigger a server roundtrip. What's the exact use case?

Armin

Former Member
0 Kudos

Hi.

Thanks to everyone for the reply.

My issue solved by getting more information on view.reset().

Regards

Bala

Former Member
0 Kudos

Hi,

Have you tried <i>view.resetView()</i>? This will reset the view to its original state. Note that this should be done in <i>wdDoModifyView()</i> method.

Regards,

Satyajit.

Former Member
0 Kudos

I have the same problem,

Ï have a dropdown with some values, and depending of the value of this dropdown I can change the value of a Caption that its above.

E.g: The user selects a Country from a Dropdown, so a Caption with the name of the Owner of this Country is shown, if the user change again the caption changes too.

Thanks in advance

Former Member
0 Kudos

Hi Balachandar,

What do you mean by refresh a view.

what is ur exact requirement

With Regards

Naidu