hide the DataBand(and all text in databand) by condition

Stimulsoft Dashboards.JS discussion
d-hcelik
Posts: 68
Joined: Fri Sep 04, 2020 1:40 pm

hide the DataBand(and all text in databand) by condition

Post by d-hcelik »

Hi
I want to hide(enabled=false) the DataBand(and all text in databand) by condition in JS report designer tool (not programatically)

Can I add a condition to databand?

I want this,I can do this for text but I need this for databand
If datasource.Mesken.length>5 {databand1.enabled=true } else {databand1.enabled=false}
Sergio Museninni
Posts: 16
Joined: Wed Mar 17, 2021 6:04 pm

Re: hide the DataBand(and all text in databand) by condition

Post by Sergio Museninni »

d-hcelik wrote: Wed Mar 17, 2021 7:27 am Hi
I want to hide(enabled=false) the DataBand(and all text in databand) by condition in JS report designer tool (not programatically)

Can I add a condition to databand?

I want this,I can do this for text but I need this for databand
If datasource.Mesken.length>5 {databand1.enabled=true } else {databand1.enabled=false}
Yes of course.

Please use condition tools for enabling or disabling components in report.
Please watch this video:
https://www.youtube.com/watch?v=jo5AMul5Zmk

Also, you can use expression as a value of the Enabled property of the components
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: hide the DataBand(and all text in databand) by condition

Post by Lech Kulikowski »

Hello,

Thank you for the provided solution.
d-hcelik
Posts: 68
Joined: Fri Sep 04, 2020 1:40 pm

Re: hide the DataBand(and all text in databand) by condition

Post by d-hcelik »

this is c#,I am using js designer tool exe
there is no conditon menu here
d-hcelik
Posts: 68
Joined: Fri Sep 04, 2020 1:40 pm

Re: hide the DataBand(and all text in databand) by condition

Post by d-hcelik »

I see it in appearence section,thanks
Sergio Museninni
Posts: 16
Joined: Wed Mar 17, 2021 6:04 pm

Re: hide the DataBand(and all text in databand) by condition

Post by Sergio Museninni »

Hello
The JS Designer.exe application also contains condition tools on Home tab on the toolbar. This works the same as in other stimulsoft designers.

Thank you
d-hcelik
Posts: 68
Joined: Fri Sep 04, 2020 1:40 pm

Re: hide the DataBand(and all text in databand) by condition

Post by d-hcelik »

thank you,I set enabled false so that area not shown but it show empty page
What should I do?I don't want empty page
Sergio Museninni
Posts: 16
Joined: Wed Mar 17, 2021 6:04 pm

Re: hide the DataBand(and all text in databand) by condition

Post by Sergio Museninni »

Hello
you can also enable or disable the report page using a condition. What do you want to show instead of an empty page?

Thank you
d-hcelik
Posts: 68
Joined: Fri Sep 04, 2020 1:40 pm

Re: hide the DataBand(and all text in databand) by condition

Post by d-hcelik »

this is dynamic report

there are many databand...if any databand is disabled it should not show it,it should not show empty page,it should next
d-hcelik
Posts: 68
Joined: Fri Sep 04, 2020 1:40 pm

Re: hide the DataBand(and all text in databand) by condition

Post by d-hcelik »

in one page there are many databands area...Some of them should be disabled by conditions so I can not disabled page.I want disable some databand and there should not be any empty area or empty page
Post Reply