on 06-13-2010 8:40 AM
Hi Gurus,
A tree(recursive) has been created with following structures. It is expected that all the tree leaves could be expanded initially when the tree appears. I can only show the 1st level NODES when the tree appears, but don't know how to show the LEAVES..
Any instructions? Thanks in advance.
TREE
|__ NODE1
|__ LEAF1
|__ LEAF2
|__ NODE2
|__ LEAF3
|__ NODE3
|__ LEAF4
Hi,
Check the expanded property of TreeNodeType to 'X'.
It will display ur tree with default nodes expanded to display the items.
Thanks and Regards,
Divya S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi both, firstly thanks for your replies.
But unfortunately, I think I had already done the same thing as instructed, while the tree still only shows to level NODES intially.
Design time :
TREE_ROOT (1..1)
TREE_NODE (0..n)
TREE_NODE_RECURSIVE (recursive of TREE_NODE)
TREE_LEAF (0..n)
Run time:
TREE_ROOT
NODE1
LEAF1
LEAF2
NODE2
LEAF3
LEAF4
I have ticked the EXPANDED flag in TreeNodeType.
In method WDDOINIT, firstly I added 2 elements under node TREE_NODE (which means there're 2 nodes: NODE1 & NODE2), and then I added 2 elements under NODE1 (which means there should be 2 leaves: LEAF1 & LEAF2), but finally the tree only shows NODE1 & NODE2. The leaves (LEAF1 & LEAF2) don't appear unless I mannually expanded NODE1.
Any steps missing? Many thanks...
Hi,
Try the following Web Dypro component: WDR_TEST_EVENTS. This has lot of examples on trees. It will be helpful.
Regards,
Saud
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fill the entire context in WDDOINIT and set expanded property of the TREE UIelement always to ABAP_TRUE or Checked
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.