Skip to Content
0

Context node is not accessible in typed_context

Mar 09 at 04:24 AM

47

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Kumar Rituraj Mar 11 at 04:49 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 13 at 11:10 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Kabir Siddarth Mar 23 at 11:05 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Apr 10 at 02:35 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded