cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro ABAP component TREE - on event onaction do onloadchildren

Former Member
0 Kudos

Hi experts,


I have a specific requirement from my client. On our custom WD ABAP app (see below) which has a CL_WD_TREE component we want to force the event onaction on the tree node to do exactly the same of event onloadchildren of the node selected:

This will avoid some questions on the users that are not pressing the small triangle to load node's children. Is there any way to load children when executing event onaction on the node selected?

Thanks in advance.

Best Regards,
AS

Accepted Solutions (0)

Answers (2)

Answers (2)

ramakrishnappa
Active Contributor
0 Kudos

Hi Andre,

Hope you require to call supply function on action. Then you just invalidate the tree node, so that the supply function gets called automatically.

Sample code:

     data lo_node type ref to if_wd_context_node.

    

     lo_node = wd_context->get_child_node( name = 'MY_TREE_NODE').

    

     lo_node->invalidate( ).

Hope this helps you.

Regards,

Rama

former_member222068
Active Participant
0 Kudos

Hi Andre,

If you need to fill child data based on the parent, then define supply function to the child node.

for eg: create SALES node under node MATERIAL. MATERIAL is a parent node and SALES is a child node. define supply function to the child node as shown

Supply function gets called automatically when mateials node is filled

Supply function gets called

1. When the node is initial

2. on the lead selection

Thanks & Regards,

Sankar Gelivi