cancel
Showing results for 
Search instead for 
Did you mean: 

How to invalidate the Context of View B From View A?

Former Member
0 Kudos

Hello,

I have to Views, A And B.

Is it possible to invalidate the Context of View B From View A? If yes, than how?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

YOu cant...

I think krishna was trying to say "can't".. spelling mistake i guess !

Thats the reason why u have a component controller common to all the views within a component

Former Member
0 Kudos

Hi,

Map the node of View B to the Component Controller node of similar structure

and then invalidate the node of teh component controller from View A .

wdThis.wdGet<Controller>>().wdGetContext().node<NODE NAME>>().invalidate();

Hope this helps.

Regards,

Sowjanya

Former Member
0 Kudos

If you don't have a mapping then trigger an event from the controller and invalidate the context in the view B by subscribing the event.

The method which triggers the event can be called from the viewA

Former Member
0 Kudos

And I can't simple get to the Context of View B from View A without any mapping or event?

Former Member
0 Kudos

Sorry

The view is a Private class where as Controllers are public

Sorry u cannot reach them directly

Former Member
0 Kudos

No u will not be able to do .

That is why Component Controller is meant for global access within a component.

U just copy the same node of View B and do a mapping with node of ViewB and then write teh above line of code.

Regards,

Sowjanya.