cancel
Showing results for 
Search instead for 
Did you mean: 

Add Image to table content

Former Member
0 Kudos

Hi Experts,

I have a table control in abap web dynpro component and I am populating the same using context node. My table contains one extra column which contains image and that will change as per the value of another cell content.

Eg. if particular cell contains value 'R' then that row image should be Red icon and if it contains G then row image contains Green image.

Any Help??

Thanks,

Prashant

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

follow the steps:

1. Add a attribute to the node binded to table of type string.

2. Have a table column and add image ui element to it.

3. Bind the source property of image to the new attribute created.

4.Now set the attribute binded to image based on your requirement.

For Red : Give the value to attribute as ~Icon/RedLed.

For Green : ~Icon/GreenLed

Answers (2)

Answers (2)

Former Member
0 Kudos

Use this help

https://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-UsingUIelementsinALVcomponentcells

arjun_thakur
Active Contributor
0 Kudos

Hi,

Refer this thread: