Skip to Content
avatar image
Former Member

How to bind a icon in the table column

Hi All

I have to bind a icon in a table column.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 13, 2006 at 10:36 AM

    Hi,

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

    Regards,

    Mahesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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