cancel
Showing results for 
Search instead for 
Did you mean: 

How to bind a icon in the table column

Former Member
0 Kudos

Hi All

I have to bind a icon in a table column.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Put tablecelleditor type for that column as image. The assign the icon filename in mimes folder to the image.

Regards,

Mahesh

Former Member
0 Kudos

Can u please tell me clearly.

I have to bind that image dynamically.

arun_srinivasan
Contributor
0 Kudos

hi,

For Table Insert a column, insert a tablecelleditor and select the button.Go to the properties of button , Set the Property of the image source .

Place the icon image in the following workspace\projectname\src\mimes\Components\packagename

hope this helps,

regards,

Arun

Former Member
0 Kudos

Choose a table cell editor for that column that is able to display an icon, e.g. Caption, Image, LinkToAction

Create a context attribute "iconURL" under the data source node of the table.

Bind the corresponding property of the table cell editor, e.g. Image.source, to this attribute.

At runtime, the data source node will have elements. Element at index i will be displayed in table row i.

Set the "iconURL" attribute of each node element to the icon URL to be displayed in the table row.

You can use the predefined icons by using an URL of the form "~sapicons/<icon_filename>", or you can put your icons inside folder src/mimes/components/<componentName> and use the filename as URL.

Armin