‎2009 May 27 12:39 PM
Hi guys!
I have the following situation.
I use a Tree, and an Item layout. All setting in the node_layout don't work,
With the item layout i set a specific item.
When I set this icon, i still have the "folder" icon of the node layout in my tree, so i have two displayed items.
Thats why i tried to set the icon of the node layout to the "dummy_icon"
however, all settings i try with the node layout didn't work. If I set an icon into the node layout EXP_IMAGE or N_IMAGE it doesn't work as well.
ls_item_layout-fieldname = gd_tree->c_hierarchy_column_name.
ls_item_layout-style = cl_gui_column_tree=>style_default.
ld_node_text = ls_equnr.
ls_node_layout-N_IMAGE = 'ICON_DUMMY' "doesn't work
ls_node_layout-EXP_IMAGE = 'ICON_DUMMY' "doesn't work
ls_node_layout-isfolder = ' ' "doesn't work
APPEND ls_item_layout TO lt_item_layout.
* Add node
CALL METHOD gd_tree->add_node
EXPORTING
i_relat_node_key = p_relate_key
i_relationship = cl_gui_column_tree=>relat_last_child
i_node_text = ld_node_text
is_outtab_line = ps_equi
it_item_layout = lt_item_layout
is_node_layout = ls_node_layout
IMPORTING
e_new_node_key = p_node_key.
‎2009 May 27 12:43 PM
Hi,
Check this demo program BCALV_TREE_06. You can find the soluition.
‎2009 May 27 12:43 PM
Hi,
Check this demo program BCALV_TREE_06. You can find the soluition.