01-27-2010 6:42 AM
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?
01-27-2010 7:55 AM
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
01-27-2010 7:08 AM
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.
01-27-2010 7:12 AM
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 ?
01-27-2010 7:55 AM
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