cancel
Showing results for 
Search instead for 
Did you mean: 

How to refresh context in other component?

Former Member
0 Kudos

Hi All,

let say I have 2 attributes(eg. Name and Age) in a node and binding it to targetComp from Source comp.

Name : XXXX

Age: 87

I am trying to show those two attributes in targetView as a popup. For 1st time, its working fine.

Name:YYYY

Age:24

But not for the 2nd time and so on. The old data is still in targetView. I tried invalidate the node but that doesn't work. I think for the 2nd time, targetComp wdDoInit is not getting called again?

Any idea?

Thanks

Manoj

Accepted Solutions (1)

Accepted Solutions (1)

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

put the code into the wdDoModifyView(). That is called at every roundtrip, wdDoInit() is invoked only once.

Cheers,

Ervin

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Example:

on the SOURCE view I enter a name and age and press the button "ToTargetView"

which routes me to TARGET view and shows the data in a popup:

If I now press the OK button, I get routed back to the SOURCE View where I enter other data and press again the button:

which leads me again to TARGET view that shows the actual data:

Is it something like this what you'd like to achieve ?

I hope this helps.

Regards,

Ervin

Former Member
0 Kudos

Hi Ervin,

Thanks a lot for the info. This is what I exactly need.

Regards,

Manoj

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

why you expect the wddoinit to run?

what you do there?

i think the context mapping is enough,