I would like to change the color of a dynamic text element with a formula. Is it possible to reference a dynamic text in a formula and change the background color or foreground color?
There is a special color Status. You can find it in the color dropdown list (in the element properties tool window).
You may add new statuses in Event Types table using Administrator app and specify the colors you need.
I think we will add new feature to set colors dynamically because the existing approach is not comfortable in case of many colors.
Hello,
You can use “;” to split a formula as you did in version 5.
In version 6 you can also use a function to calculate channel data like that: NewData(1.23, 1)
where 1.23 is value and 1 is status.
Thank you for the answer.
I m a newbie in this application and I didn’t work with earlier versions alot.
What I need for the moment is to have just a formula like :
If channel Value between LimitA and Limit B then set status Y
Else If channel Value between LimitC and Limit D then set status Z, etc.
public int MyStat()
{
if (1 <= Cnl && Cnl <= 2) // your limits
return 100; // your status
else if (3 <= Cnl && Cnl <= 4)
return 200;
else
return 300;
}