DonLarson
6 years agoQrew Deputy
Re: multiple reference criteria for a status icon field
Owen,
Getting the syntax right is always a trick when you get beyond one or two sets of parentheses. In the Case Statement you can put additional criteria after the value of the case object. I also recommend putting the images in variables so that your logic is easier to read.
// Variable Images
var text IMGOne = long url string one ;
var text IMGTwo= long url string two;
// Logic and UI
Case ( [Status],
"Logging" , If ( isnull([Event Code]), $IMGOne, IMGTwo),
"Closed" , If ( [Checkbox]=true, $IMGOne, $IMGTwo)
)
This keeps your Formula Rich Text Box nice and clean.
------------------------------
Don Larson
Paasporter
Westlake OH
------------------------------
Getting the syntax right is always a trick when you get beyond one or two sets of parentheses. In the Case Statement you can put additional criteria after the value of the case object. I also recommend putting the images in variables so that your logic is easier to read.
// Variable Images
var text IMGOne = long url string one ;
var text IMGTwo= long url string two;
// Logic and UI
Case ( [Status],
"Logging" , If ( isnull([Event Code]), $IMGOne, IMGTwo),
"Closed" , If ( [Checkbox]=true, $IMGOne, $IMGTwo)
)
This keeps your Formula Rich Text Box nice and clean.
------------------------------
Don Larson
Paasporter
Westlake OH
------------------------------