on 12-20-2005 8:56 AM
hi folks,
i'm working with the Element TREE and now i'm wondering if it is possible to build a tree like that (similar to the tree in sapgui abap):
node
-subnode
-subnode Item1 Item2 Item3
Because all my Item-Fields are always in the next row after the subnode?
kind regards oliver
Hi Oliver,
Yes, this is possible. Just switch off the root node by setting rootNodeVisible = false in the view designer.
Kind regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Oliver,
Is the number of items fixed? If yes, just add more columns to the table and display them there. Another option would be to determine the max number of horizontially displayed items and to add as many columns dynamically at the runtime.
Just wondering, why do the items need to be displayed horizontially and not as leafs as part of the tree?
Kind regards,
Thomas
Hi Oliver,
>I guess the Nesting Tree in a Table could work, am i right?
Yes. Another option would be to use the *ByKey version of the hierarchy column. Using it, you don't need to have a recursive nodes in the context, but a only a single non-recursive one. The parent relationship needs to be expressed via two attributes of this node, one containing the id of the current item and the other one the id of the parent under which it will appear once rendered (there are corresponding attributes in the ui elements, which have to be bound). Btw. There is no need to order the elements concerning their parent relationship. The renderer does that automatically.
Kind regards,
Thomas
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.