Skip to Content
author's profile photo Former Member
Former Member

Webdynpro ABAP component TREE - on event onaction do onloadchildren

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Feb 14, 2014 at 11:18 AM

    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


    tree.PNG (28.5 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 14, 2014 at 11:44 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.