Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

cl_gui_alv_tree node layout not working!

Former Member
0 Likes
1,008

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
535

Hi,

Check this demo program BCALV_TREE_06. You can find the soluition.

1 REPLY 1
Read only

Former Member
0 Likes
536

Hi,

Check this demo program BCALV_TREE_06. You can find the soluition.