Direct access to context node of component controller from different views.
I have a view V1, view V2, component controller CP and inside of this component controller context node CN.
I fill-in data of CN from method of V1. I've checked it in debugger, the data is really stored in CN of CP.
Now, I want to access the data of this CN from method of V2 and, to my surprise, I can't see the data, stored in CN, this container is empty.
The way I'm trying to access to context node of component controller:
My questions are:
1. What is the reason for that? And how can I access to the stored data in CN via method of V1 from the method of V2?
2. Does comp_controller is a singleton and the same for all views of the same component?
3. Is it appropriate way to access to context node of component controller directly from the view of the same component, without defining a context node inside of view and dealing with the binding?
Mike B. replied
I've solved my issue. The problem was in lack of WD_USAGE definition.
The steps to solve such kind of issue are:
1. Redefine WD_USAGE
2. Check what usage you are using and define binding for that usage case
After that I can read and write data directly to component controller's context node from different views of the same component.
Thanks to everybody for the help!