cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Context node is not accessible in typed_context

Former Member
0 Likes
537

Hi Experts,

I have created a context node at the component controller now I am trying to access the context node to set_collection from another component's event handler

lr_component->typed_context->my_context_node->collection_wrapper->set_collection( test ).

but it says my_context_node doesn't exist, I don't get this error when I try adding some of the existing standard context node names here.

Please help!

Thanks.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Likes

May I know in which method u r writing ur code?

developerone
Contributor
0 Likes

You are probably using the wrong reference. Check if your IMPL class has ZTYPED_CONTEXT in class attributes.

Former Member
0 Likes

Hi Rituraj,

Thanks for replying

Class has an attiribute ztyped_context already, but when i use it in the statement lr_component->Ztyped_context->my_context_node->collection_wrapper->set_collection( test ). It says Ztyped_context doesn't exist. what could be the issue?. Pls help.

Thanks.

kumar_rituraj
Active Participant
0 Likes

Hi,

use

lr_component->Ztyped_context->my_context_node->collection_wrapper->set_collection( test ).

If ztyped_context is not their, then create this attribute and assign enhanced class name.

Regards

Rituraj