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

how to get only expanded node after open & close in CL_GUI_ALV_TREE?


I have a tree structure using CL_GUI_ALV_TREE.

I would like to capture only the expanded nodes AFTER open and close operation.

If the user opens all the nodes and then closes them, I get all the nodes when using GET_EXPANDED_NODES.

I want to get only the expanded nodes that the user currently sees on the screen (so in open and close you will not get it as open).

whatever I tried doesn't work.

Do you have any idea how to do it?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 21, 2007 at 02:42 PM

    this methods calls method of attribute MR_COLUMN_TREE without setting the parameter NO_HIDDEN_NODES to 'X'

    that's why you get every node that is "open" even if not "visible"

    as this attribute MR_COLUMN_TREE is protected, you cannot access it...

    you should consider using an object of class CL_GUI_COLUMN_TREE directly in place of CL_GUI_ALV_TREE so that you can call the method with this parameter set...

    you will have far more to do by hand but you will get more flexibility...

    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.