Expression for data column visibility

Stimulsoft Dashboards.WEB discussion
Post Reply
jlorue
Posts: 126
Joined: Thu Apr 15, 2021 6:33 pm

Expression for data column visibility

Post by jlorue »

Hi,
I need to turn on/off a data column in a dashboard table, depending on the value of a variable (eg: if var1 = 1 then ON, if var1=0 then OFF).
I tried different expressions in the visibility setting, but none of them worked.
Could please let ne know what's wrong in this expression?

{IIF({var1}==1)}

Thanks
Attachments
Column visibility.png
Column visibility.png (14 KiB) Viewed 720 times
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Expression for data column visibility

Post by Lech Kulikowski »

Hello,

You can use the following expression:
{var1 == 1}

Thank you.
jlorue
Posts: 126
Joined: Thu Apr 15, 2021 6:33 pm

Re: Expression for data column visibility

Post by jlorue »

It worked!
Thanks Lech
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Expression for data column visibility

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply