I want to change the style of a field due to values in a grid.
(in OnRecord)
if ({field1} == '1')
{
sc_field_style({field1},'#FF0000');
}
This works. Every field in the records that have the value ‘1’ are displayed with red background
But I want only to change font color and not background of the cell. So I use this
(in OnRecord)
if ({field1} == '1')
{
sc_field_style({field1},,,'#FF0000');
}
Result is: every content of all fields without regarding of the value are displayed in red font color
What is wrong?
Joe