Application Development 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: 

Dynamic icons in table control

giancarla_aguilar
Participant
0 Kudos

I have to create dynamic icons on a button column on my table control. I have a column of buttons for the long text and on the button is the icon ICON_CREATE_TEXT. For different rows/entries on the table control, there is a corresponding button to view the long text of each row. The requirement is for the icon to be dynamic. If the long text is empty, the icon should be ICON_CREATE_TEXT but if the long text exists, the icon should be ICON_CHANGE_TEXT.

I know that the screen should be changed during PBO, but how? The SCREEN structure does not contain the icon definition.

Is this possible?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You should be able to call function module "ICON_CREATE" within the PBO, e.g. inside the module called with the "loop with control", and set the appropriate icon / quickinfo for the button on each row. In the example I have here, the column if "Pushbutton (Output Field)" and hase the "With icon" option ticked.

Jonathan

3 REPLIES 3

Former Member
0 Kudos

Hi,

You can cretae two columns 1 for no text and 1 for text and give the icons in Layout.

In PBo just loop at table control columns whichever is applicable u show/hide and modify the columns.

Hope it helps.

Regards

Arbind.

giancarla_aguilar
Participant
0 Kudos

Thought about that too, but for every row, it is possible to have different icons.

Is it possible to show icon CREATE column in row 1, and and show icon CHANGE column in row 2 ?

Former Member
0 Kudos

You should be able to call function module "ICON_CREATE" within the PBO, e.g. inside the module called with the "loop with control", and set the appropriate icon / quickinfo for the button on each row. In the example I have here, the column if "Pushbutton (Output Field)" and hase the "With icon" option ticked.

Jonathan