Create a hidden “Use value as color” column to the LEFT of the columns you want to color code.2. Write the column’s formula similar to the following example:
gray:=239:239:239;
yellow:=255:255:208;
green:=224:255:223;
blue:=224:255:255;
red:=255:64:64;
white:=255:255:255;
black:=0:0:0;
none:=-1:-1:-1;
@If(RequestStatus=“Draft”;yellow:none;
RequestStatus=“Waiting for First Level Approval”;gray:none;
RequestStatus=“Waiting for Second Level Approval”;gray:none;
RequestStatus=“Approved”;green:none;
RequestStatus=“Waiting for Trip Report”;green:none;
RequestStatus=“Complete”;blue:none;
RequestStatus=“Denied”;red:white;
RequestStatus=“Cancelled”;black:white;
none:none)
The first color in each list is the background color. The second color is the text color.
Lawrence, thanks for your idea. Yesterday after i posted, i had a look at “Use value as color” option. But after writing the code i passed the field name (on last line for which i wanted the value for that column).
So that made the difference. Thanks for your help.