cancel
Showing results for 
Search instead for 
Did you mean: 

Interface nodes

Former Member
0 Kudos

Hi Experts

I have a requirement where i have to pass the value from one component to another.

I tried using interface nodes but the values are not getting trasferred to the other component .I used display messages to check thn came to knw the component controller of using coponent is getting called many times thats means the component is getting instantiated evry time thats why nodes data dint get retained .Tried using interface methodasalso but the problem remains the same .

The using component is further getting used in many components .

Is there global constants concept in WD ABAP whose value dint get changed evn when the component is instantiated again.

Please suggest.

Thanks

Monika

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Monika,

try to use the below code to get the used component details in other component

data lo_nd_attach type ref to if_wd_context_node.

data ls_el type wd_this->element_attach.

data lt_attach type standard table of wd_this->element_attach.

lo_nd_attach = wd_context->get_child_node( name = wd_this->wdctx_attach ).

lo_nd_attach->get_static_attributes_table( importing table = lt_attach ).

where attach is the node name and write the code in a controller method

Thanks

Bala Duvvuri