on 01-11-2008 9:28 PM
Hi experts,
If we create a tree UI element in ABAP WD, we automatically get a 'Collapse All' icon.Is it possible to have a 'Expand All' icon as well?
thanks in advance,
Pras
On the tree root (TREE UiElement), there's a property for "onExpandAll" Event.
Just put the name of an action, and then implement your "expand all" method; yes you do have to code yourself, like others said. The only difference between a custom button is that the newly coded functionality is shown beside the default collapse button.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Pras,
You will not get any Collapse All icon when you create a tree UI Element .
You can expand or collapse the tree by clicking on the Parent Elements in the tree.
If you want to explicitly handle the Expand All and Collapse All functionality you need to put a button in the toolbar with name Expand ALL and handle it explicitly by setting attribute EXPANDED to abap_true for each and every element in the tree for Expand All action and vice versa for Collapse All.
Hope this is of some help.
Regards,
Ismail.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Toni,
you have to put a button for Expand all. Then on the action of that button read the whole node to an itab, then loop the itab.. then fro each record,
attach to a new element
make the property expanded for the element
add the element to the node..
After looping bing the itab back to node,
Regards
Sarath
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.