on 08-09-2007 12:09 PM
Hi folks,
i am trying to display a hierarchial tree display with 3 levels. upto two levels my program is working find. only the problem when add the third level. let me know if there is mistake in the code.
Sample code.
CLEAR node.
node-node_key = 'Root'.
node-isfolder = 'X'.
node-text = GC_SETTOP.
node-dragdropid = ' '.
APPEND node TO node_itab.
*
Preare hierarchy set from individula internal tables
CLEAR :WA_PGROUP.
LOOP AT I_PGROUP INTO WA_PGROUP WHERE SETNAME = GC_SETTOP.
CLEAR node.
node-node_key = WA_PGROUP-SUBSETNAME.
node-relatkey = 'Root'.
node-isfolder = 'X'.
node-relatship = cl_gui_simple_tree=>relat_last_child.
node-text = WA_PGROUP-SUBSETNAME.
node-dragdropid = ' '. "handle_tree. " handle of behaviour
APPEND node TO node_itab.
*
*
CLEAR: WA_PLEVEL.
LOOP AT I_PLEVEL INTO WA_PLEVEL WHERE SETNAME = WA_PGROUP-SUBSETNAME .
CLEAR node.
node-node_key = WA_PLEVEL-SUBSETNAME.
node-relatkey = WA_PGROUP-SUBSETNAME.
node-isfolder = 'X'.
node-relatship = cl_gui_simple_tree=>relat_last_child.
node-text = WA_PLEVEL-SUBSETNAME.
node-dragdropid = handle_tree. " handle of behaviour
APPEND node TO node_itab.
endloop.
endloop.
I think you have the WRONG forum buddy!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
7 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.