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

Set tree view item image

Former Member
0 Likes
4,700

Hi,

I am trying to initialize tree view. I am manually adding tree view items. My code looks like bellow:

NODE-RELATKEY = c_nodekey-root.

NODE-RELATSHIP = CL_GUI_SIMPLE_TREE=>RELAT_LAST_CHILD.

NODE-HIDDEN = ' '.

NODE-DISABLED = ' '.

NODE-ISFOLDER = ' '.

NODE-N_IMAGE = 'ICON_EXECUTE_OBJECT'.

APPEND NODE TO NODE_TABLE.

The problem is that I am not able to set item image. The code like describe above does not work. In some example codes I saw just:

NODE-N_IMAGE = icon_execute_object.

But, this code is not valid, when I write it in this way, compiler shouts error

Field "ICON_EXECUTE_OBJECT" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. .

How to do it? I need to insert ICON_EXECUTE_OBJECT image to tree view item.

Thank you in advance.

Hi,

I am trying to initialize tree view. I am manually adding tree view items. My code looks like bellow:

NODE-RELATKEY = c_nodekey-root.

NODE-RELATSHIP = CL_GUI_SIMPLE_TREE=>RELAT_LAST_CHILD.

NODE-HIDDEN = ' '.

NODE-DISABLED = ' '.

NODE-ISFOLDER = ' '.

NODE-N_IMAGE = 'ICON_EXECUTE_OBJECT'.

APPEND NODE TO NODE_TABLE.

The problem is that I am not able to set item image. The code like describe above does not work. In some example codes I saw just:

NODE-N_IMAGE = icon_execute_object.

But, this code is not valid, when I write it in this way, compiler shouts error

Field "ICON_EXECUTE_OBJECT" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. .

How to do it? I need to insert ICON_EXECUTE_OBJECT image to tree view item.

Thank you in advance.

1 REPLY 1
Read only

Former Member
0 Likes
401

Resoved.