cancel
Showing results for 
Search instead for 
Did you mean: 

Load data into subnode table

Former Member
0 Kudos

In my context, I have a subnode (0..n) embedded in a node (0..n). In my view, I am using a link to action in my table that will open a table popin (where I will show the subnode table). Therefore, I can not use a supply function (supply functions require the row to be the lead selection, and I need to table-popin multiple rows). Could someone tell me what I need to do to be able to load a table into the subnode?

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Robert

In onAction event of the LinkToAction provide this code.

data: lr_element type ref to if_wd_context_element.

data: lr_node type ref to if_wd_context_node.

  • The Below statement give you the element of the node which is clicked

lr_element = wd_event->get_context_element( 'CONTEXT_ELEMENT' ).

lr_node = lr_element->get_child_node( '<name of child node>' ).

  • fill internal table based on the attribute values of lr_element

lr_node->bind_table( <internal table> ).

Abhi

Answers (0)