Dynamic Style Sheet

Dynamic Style Sheet

  
Hi, there's been a request for a line color to change according to a record's status....

How can i do that? Is there anyway to associate a function with a line's color??

Best regards,

Diogo CS Cordeiro
Hi Diogo,

Here's one way you can do that:
1 - Select a cell in the table (you might need to use the Web Widget Selector to select a cell)
2 - Dbl-click Extended Properties
3 - Property Name = style
4 - Property Value = if(TableRecords1.current.Customer.isActive, "background-color:blue","")
5 - Repeat this procedure for all the cells you want to apply the background color to

You could also apply a style directly to an entire row, but you would need to do it using javascript, and also make sure the styles applied by default to the cells would not overwrite this row style.

Hope this helps,
Tiago Simões