Pretty simple to do. IN the onrecord eventy you test the criteria and then use a macro to change the color:
sc_field_style({My_Field}, “Background-Color”, “Size”, “Color”, “Family”, “Weight”) [TABLE=“class: macros_desc_table”]
[TR]
[TD] This macro allows to modify the grid field style dinamically.
[TABLE=“border: 0, width: 100%”]
[TR]
[TD=“class: corpo1, align: left”]Parameter[/TD]
[TD=“class: corpo1, align: left”]Description[/TD]
[/TR]
[TR]
[TD=“class: corpo1, align: left”]Field[/TD]
[TD=“class: corpo1, align: left”]Name[/TD]
[/TR]
[TR]
[TD=“class: corpo1, align: left”]Background-Color (optional)[/TD]
[TD=“class: corpo1, align: left”]Field cell background Color[/TD]
[/TR]
[TR]
[TD=“class: corpo1, align: left”]Size (optional)[/TD]
[TD=“class: corpo1, align: left”]Field font size[/TD]
[/TR]
[TR]
[TD=“class: corpo1, align: left”]Color (optional)[/TD]
[TD=“class: corpo1, align: left”]Font Color[/TD]
[/TR]
[TR]
[TD=“class: corpo1, align: left”]Family (optional)[/TD]
[TD=“class: corpo1, align: left”]Font family[/TD]
[/TR]
[TR]
[TD=“class: corpo1, align: left”]Weight (optional)[/TD]
[TD=“class: corpo1, align: left”]Font weight[/TD]
[/TR]
[/TABLE]
[B]Ex. 1:[/B]
sc_field_style({my_field}, '#33FF99', '15px', '#000000', 'Arial, sans-serif', 'bold');
[/TD]
[/TR]
[/TABLE]
[B]Macro Scope[/B]
[TABLE=“class: macros_desc_scope_table, cellpadding: 0, cellspacing: 0”]
[TR]
[TD]Grid application[/TD]
[/TR]
[TR]
[TD=“width: 120px, bgcolor: #f7f4f4”]onRecord[/TD]
[/TR]
[/TABLE]