Expressions with multiple global variables
Posted: Thu Nov 28, 2019 8:00 am
I need to change the filling color of an object based on two Bit tags.
for example, status_L and status_H are two bit tags.
In an older system, the expression (status_H + 2*status_L) is evaluated and the fill color is set according to the table:
0 - gray
1 - Red
2 - Green
3 - gray
Now im trying to do the same thing on iX Developer 2.40 SP4.
Despite the iX's expression builder allowing to insert a global variable on the expression, the global variables are never computed. The variable is only computed in the expression if it is the variable choosen in the fill property. No errors or warnings are generated. It simply doesnt work as expected.
Multiple variables on iX's expression are not allowed?
Or am i missing something to the global variables be evaluated on the expression?
thanks in advance
for example, status_L and status_H are two bit tags.
In an older system, the expression (status_H + 2*status_L) is evaluated and the fill color is set according to the table:
0 - gray
1 - Red
2 - Green
3 - gray
Now im trying to do the same thing on iX Developer 2.40 SP4.
Despite the iX's expression builder allowing to insert a global variable on the expression, the global variables are never computed. The variable is only computed in the expression if it is the variable choosen in the fill property. No errors or warnings are generated. It simply doesnt work as expected.
Multiple variables on iX's expression are not allowed?
Or am i missing something to the global variables be evaluated on the expression?
thanks in advance