Expression doesn't works

Stimulsoft Dashboards.WIN discussion
fgauthier
Posts: 12
Joined: Thu Jul 11, 2024 9:08 am

Expression doesn't works

Post 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"
fgauthier
Posts: 12
Joined: Thu Jul 11, 2024 9:08 am

Re: Expression doesn't works

Post by fgauthier »

Attached is the mrt file :D
Attachments
TDBTest.mrt
(8.53 KiB) Downloaded 193 times
Lech Kulikowski
Posts: 6648
Joined: Tue Mar 20, 2018 5:34 am

Re: Expression doesn't works

Post by Lech Kulikowski »

Hello,

Please send test data for your report.

Thank you.
fgauthier
Posts: 12
Joined: Thu Jul 11, 2024 9:08 am

Re: Expression doesn't works

Post by fgauthier »

Here is the table in JSON
Attachments
ResultatsDerniersLotsView.JSON
(4.51 KiB) Downloaded 196 times
Lech Kulikowski
Posts: 6648
Joined: Tue Mar 20, 2018 5:34 am

Re: Expression doesn't works

Post by Lech Kulikowski »

Hello,

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

Thank you.
fgauthier
Posts: 12
Joined: Thu Jul 11, 2024 9:08 am

Re: Expression doesn't works

Post by fgauthier »

Can you tell me whats wrong with it? And what can i use instead ?
Lech Kulikowski
Posts: 6648
Joined: Tue Mar 20, 2018 5:34 am

Re: Expression doesn't works

Post by Lech Kulikowski »

Hello,

Please explain what result do you need?

Thank you.
fgauthier
Posts: 12
Joined: Thu Jul 11, 2024 9:08 am

Re: Expression doesn't works

Post 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.
Lech Kulikowski
Posts: 6648
Joined: Tue Mar 20, 2018 5:34 am

Re: Expression doesn't works

Post by Lech Kulikowski »

Hello,

Unfortunately, no.

Thank you.
fgauthier
Posts: 12
Joined: Thu Jul 11, 2024 9:08 am

Re: Expression doesn't works

Post by fgauthier »

Hello,

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