Hi,
So if I understood properly you have two context nodes C1 and C2 and the corresponding context node classes are CL1 and CL2 respectively. Now you need to read an attribute of C2 from class CL1.
You can do it by the following steps.
1. Define an attribute A2 in CL1 TYPE REF TO CL2.
2. In the DO_INIT_CONTEXT method of the view implementation set the attribute with the instance of the context node C2 by the following code
A2 ?= me->typed_context->C2->collection_wrapper->get_current( ).
3. Now you can access the attribute A2 in your class CL1.
Hope this helps.
Regards,
Sayan