KB-26250: Link with two Boolean tags as source.

Question:

How
can I create a link with two Boolean-type tags as their value source to
change the colors in a screen object, according to the table below?

 Tag 1  Tag 2  Color
 0  0  Red
 0  1  Yellow
 1  0  Blue
 1  1  Green

Solution:

To do so, a possible solution is to create a table link at the screen object’s ForegroundColor property. Then, at this link’s Source field, add the tags in the following format: Abs(Tag1.Value * 2 + Tag2.Value)

In
this added table, create four lines whose values variate between 0 and
3, and set up the color the object must take according to the value.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *