field colors in list view

Hi

I’m sure I’m missing something obvious, but how do you set the color of the fields in list view dynamically. For example, if I have a column for profit/loss I want to show the figure in a row as green if it’s a profit and red if it’s a loss. I can use a colored image as Graham pointed out in another post, but how do I affect the attributes of a field dynamically?

Thanks

Sham

Hi Sham,

You can use HTML to get that effect.

Thanks Robert. So are you saying the only way to do this is to set my displayType to HTML_AREA and then populate it with html data, setting the color etc? This then completely bypasses Servoy’s CSS stylesheets because I can’t use those in a html field.