on 02-14-2014 10:53 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.