Skip to Content
avatar image
Former Member

Context node is not accessible in typed_context

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Mar 11 at 04:49 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 13 at 11:10 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 23 at 11:05 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 10 at 02:35 PM

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

    Add comment
    10|10000 characters needed characters exceeded