cancel
Showing results for 
Search instead for 
Did you mean: 

How to Refresh the page at runtime

Former Member
0 Kudos

I want to refresh the page at run time and bring down the last submitted data without going back or refreshing the page manually.If any one knows please tell me.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Please put the following line inside wdDomodifyview.

view.resetView();

Kind Regards,

S.Saravanan

Message was edited by: Saravanan S

Former Member
0 Kudos

Hi

Thanks for your quick response.

I tried the way in which you told but my data is not refreshed.

In my view when i entered some values and submit it means the data should go to back end at the same time it has to be refreshed in the same page, in which i entered values.

I supposed that the issue reached you.

Former Member
0 Kudos

Hi Krishnaveni,

If you using Static UIElements,

After the storage, set the attributes you bind to inputfield to empty

eg:

wdContext.currentContextElement.set<Contextattribute>("");

Regards,

Saravanan K

Former Member
0 Kudos

Hai ,

In my case i am using table element to show the data , i am using input field to take input data. when i submit button that data will appear on that table.

i think this is your requirement then, write the table retrieve nethod in on actionsubmit method of button, other wise try to put your retrieval code in wdDoModifyView().

regards,

Former Member
0 Kudos

Hai

Use the follwing Steps

public static void wdDoModifyView(com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean

firstTime)

"Put the follwing code inside in the wdDoModifyView"

firstTime=true

if(firstTime)

{

view.resetview()

then when you create dynamic transparentcontainer <"Name> or something

and you use

<"Name>.destroyAllChildren();

}

Regards

Dhinakar J

Former Member
0 Kudos

Dhinakaran,


if(firstTime)
{ 
  view.resetView();
}

This is a "no-op" instruction. When "firstTime" is true view has it original state, so there is no need to call resetView(). This call only eats CPU time and wastes memory.

VS