Page 1 of 2

Expression doesn't works

Posted: Wed Jul 17, 2024 2:39 pm
by fgauthier
Hello,

Anyone can tell me whats wrong with this expression.

Code: Select all

{IIF(Trim(ToUpperCase(ResultatsDerniersLotsView.codeMeilleur)) == "MAX" , 20 , 40)}
It always return 40 even if the value of ResultatsDerniersLotsView.codeMeilleur is "MAX"

Re: Expression doesn't works

Posted: Wed Jul 17, 2024 2:42 pm
by fgauthier
Attached is the mrt file :D

Re: Expression doesn't works

Posted: Wed Jul 17, 2024 3:49 pm
by Lech Kulikowski
Hello,

Please send test data for your report.

Thank you.

Re: Expression doesn't works

Posted: Thu Jul 18, 2024 7:44 am
by fgauthier
Here is the table in JSON

Re: Expression doesn't works

Posted: Fri Jul 19, 2024 9:45 am
by Lech Kulikowski
Hello,

Unfortunately, it is not possible to use such an expression for Gauges.

Thank you.

Re: Expression doesn't works

Posted: Fri Jul 19, 2024 10:23 am
by fgauthier
Can you tell me whats wrong with it? And what can i use instead ?

Re: Expression doesn't works

Posted: Fri Jul 19, 2024 10:42 am
by Lech Kulikowski
Hello,

Please explain what result do you need?

Thank you.

Re: Expression doesn't works

Posted: Fri Jul 19, 2024 11:02 am
by fgauthier
In fact, i was doing test with the expression. I need it in the range property of the gauge. I need to reverse the color range when the field value is "MIN". Is the expression will work in the range expression ? I actually dont have acces to the version that provides the expression in range.

Re: Expression doesn't works

Posted: Mon Jul 22, 2024 2:05 pm
by Lech Kulikowski
Hello,

Unfortunately, no.

Thank you.

Re: Expression doesn't works

Posted: Mon Aug 19, 2024 7:50 am
by fgauthier
Hello,

Is there a way to reverse the color of a gauge with blockly?