09-20-2007 4:14 PM
Hi,
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?
Thanks,
Itay
09-21-2007 3: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...