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

tree control of class CL_GUI_SIMPLE_TREE

Hello I use a tree control of the class CL_GUI_SIMPLE_TREE, is it possible that all folders are open when the I open the screen?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2008 at 11:07 AM

    Hi,

    Yes it is possible.Use this method expand_root_nodes...

    CALL METHOD go_tree->expand_root_nodes
        EXPORTING
          expand_subtree = 'X'.

    Cheers,

    Jose.

    Add a comment
    10|10000 characters needed characters exceeded

    • in your example set a breakpoint at

      METHOD HANDLE_EXPAND_NO_CHILDREN.
      ...
            CALL METHOD G_TREE->ADD_NODES  "break
      

      and you will see that the subtree is build at runtime when you expand the node. And you can't expand nodes by method that do not (yet) exist.

      As Uwes example shows it works when you add all nodes at initialization.

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.