on 04-13-2006 11:26 AM
Hi All
I have to bind a icon in a table column.
Hi,
Put tablecelleditor type for that column as image. The assign the icon filename in mimes folder to the image.
Regards,
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.