cancel
Showing results for 
Search instead for 
Did you mean: 

"Resetting" a component

Former Member
0 Kudos

Hi,

I have a WD component with two views A and B. The other view B has actually another WD component embedded. I can navigate between these two views.

Now I would like to somehow "reset" the other component (in view B) when leaving it (=navigating back to A). By resetting I mean that all the context nodes would be empty and cotroller attributes initial.

Is there some easy way to reset the other component?

Regards,

Pa

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

I finally decided to invalidate the root node of my main controller. I am still a bit unclear that how to handle all the view contexts also (since they have their own complex contexts). But I think that I will manage this by myself. Thanks for help.

Former Member
0 Kudos

hi,

Invalidating your root node would be the better option for resetting...

Thanx,

Arjun.G

Former Member
0 Kudos

hi,

Invalidating your root node would be the better option for resetting...

Thanx,

Arjun.G

Sm1tje
Active Contributor
0 Kudos

Not quite sure if this works, but what about

IF_WD_CONTEXT_NODE->SET_STATIC_ATTRIBUTES_NULL ??

Former Member
0 Kudos

Use IF_WD_CONTEXT_NODE->invalidate() method, for the node which you want to reset.