It would be nice if we could use equations for computing individual field formatting (or at least color) rather than using the grid widget's conditional formats. Basically like what we can do at the item level now.
So instead of putting this in an field properties conditional formats
-1:PriInt=1:ForeColor=DarkRed
-1:PriInt=2:ForeColor=OrangeRed
-1:PriInt=3:ForeColor=DarkGreen
-1:PriInt=4:ForeColor=DarkBlue
I would put this in a new ForeColor Equation in the in the field properties
=ComputeColor( [Item], [Priority])
Essentially you would be a row equation for each formatting option. This would allow us all the power of equations and functions and also make conditional formatting logic the same as the conditional formatting logic (only one set to describe).
If folks still wanted to do it inline, we could write a simple function that wraps a Case statement. Something like this:
=DoCase(PrinInt=1, "DarkRed", PriInt=2, "OrangeRed", PriInt=3, "DarkGreen")
d
PS, See [Can I] conditional formatting based on two fields? for related discussion.
Comments
IF(PriInt=1, ForeColor="DarkRed")
")IF(PriInt=2, ForeColor="OrangeRed")
IF(PriInt=3, ForeColor="DarkGreen")
IF(PriInt=4, ForeColor="DarkBlue
ForeColor =
ComputeColor( [Item], [Priority])
-1:=2:backcolor=&hC3C3FF
-1:=3:backcolor=&h9696FF
-1:=4:backcolor=&h7171FF
-1:=5:backcolor=&h3C3CFF
-1:=6:backcolor=&h1E1EFF
-1:=7:backcolor=&h0B0BFF
-1:=8:backcolor=&h0000ED
-1:=9:backcolor=&h0606D2
-1:=10:backcolor=&h0000BD
0:=0:backcolor=&hF4FDFF
-1:Urgency=20:backcolor=&hC3C3FF
-1:Urgency=30:backcolor=&h9696FF
-1:Urgency=40:backcolor=&h7171FF
-1:Urgency=50:backcolor=&h3C3CFF
-1:Urgency=60:backcolor=&h1E1EFF
-1:Urgency=70:backcolor=&h0B0BFF
-1:Urgency=80:backcolor=&h0000ED
-1:Urgency=90:backcolor=&h0606D2
-1:Urgency=100:backcolor=&h0000BD