cancel
Showing results for 
Search instead for 
Did you mean: 

Refresh Data during navigation from one view

Former Member
0 Kudos

Hi,

i have Two views in WD.

my navigations as follows:

view1 -- Select a row and click edit button --> view2 (show the date that can be edited)

now i go from view2 --> view1.

Now , view1 --selecting other row of the table --> View2(showing the previous row details).

please give me slon for this..

regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

In View we have frame controlled and When_visible properties set as When_Visible then it refresh the data

or do wdContext.node<name>().invalidate();

Thanks,

Tulasi

Edited by: Tulasi Palnati on Jul 23, 2008 1:23 PM

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Map the table node from View1 to View2 through ComponentController..

and in View 2 get the values as follows

String value1=wdContext.current<tableNode>Element().get<value1>();

String value2=wdContext.current<tableNode>Element().get<value2>(); etc

Regards

LN

srinivas_sistu
Active Contributor
0 Kudos

Hi,

While navigating from view1 to view2 are you passing any parametres/setting any context variables????

If so test the value of the variable which is a key in identifying which row of the table is selected...

2. Are you using Dynamic UI in view2???

if so, make sure before every time you create dynamic UI in doModifyView() you are destroying the childs of transparent container that are previously created using TCObject.destroyAllChild()....

3. Make sure on navigating back from view2 to view1 you are clearing the context node of view2 using node.invalidate()...

If any of the above doesn't work for you, please explain your scenario clearly....

Regards,

Srinivas.

Former Member
0 Kudos

Hi,

If you want to refresh data, try invalidating the node.

wdContext.node<Required-node>.invalidate();

Regards,

Apurva