Formula in valueIcons

Hi,
how is possilbe specify valueIcons using a formula as identifier?
My DS return an hour and I want show an icon depending of time of day (morning, afternoon, evening) that match with this hour, but I want do this using in valueIcons definition. I want do this on client because I need the hour and don’t want pass other information about time of day.

Thaks.

Sounds like you need: getValueIcon()

Returns the appropriate valueIcon for a cell based on the field and the data value for the cell. Default implementation returns null if ListGridField.suppressValueIcon is true otherwise looks at ListGridField.valueIcons.

http://www.smartclient.com/docs/6.5.1/a/b/c/go.html#method..ListGrid.getValueIcon

Or if you’re using a form

http://www.smartclient.com/docs/6.5.1/a/b/c/go.html#method..FormItem.getValueIcon

Good, works like a charm!
Thaks a lot nickc!

Maybe the override of getValueIcon() corrupt “showValueIconOnly :false” function on one field?