B
|
bussb 7/28/2013 |
Here is what I use for my shaded background conditions, adapt as needed: if ($data["Status"]=="Open")
|
G
|
gdude66 author 8/5/2013 |
Here is what I use for my shaded background conditions, adapt as needed: In the Events tab of PHPrunner for the List View, "List Page:After Record Processed" if ($data["Status"]=="Open")
|
C
|
copper21 8/5/2013 |
I now have this working by events using if ($data["growth"]<"0") $record["growth_style"].='style="background:#FF0000"'; if ($data["growth"]>="0"&& $data["growth"]<"0.2") $record["growth_style"].='style="background:#FF9933"'; if ($data["growth"]>="0.2") $record["growth_style"].='style="background:#00FF00"'; This produces red for values less than 0, orange for values between 0 and 0.2 and green for values greater than 0.2 Only problem is for no value it produces red as well. Any idea what I would put in if there were no value which would equal no color? eg stays default cell color? It is a calculated field so if the second or first cell has no value then no value will appear in the growth column.
|
G
|
gdude66 author 8/5/2013 |
Try this: if ($data["growth"]<"0") { $record["growth_style"].='style="background:#FF0000"'; } elseif ($data["growth"]>="0"&& $data["growth"]<"0.2") { $record["growth_style"].='style="background:#FF9933"'; } elseif ($data["growth"]>="0.2") { $record["growth_style"].='style="background:#00FF00"'; } else { } This will take what you have and if the value is anything other than what you have specified, the background color will be default. Brian
|