Page 1 of 2

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

Posted: Wed Mar 17, 2021 7:27 am
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}

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

Posted: Wed Mar 17, 2021 6:15 pm
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

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

Posted: Wed Mar 17, 2021 6:52 pm
by Lech Kulikowski
Hello,

Thank you for the provided solution.

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

Posted: Thu Mar 18, 2021 6:27 am
by d-hcelik
this is c#,I am using js designer tool exe
there is no conditon menu here

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

Posted: Thu Mar 18, 2021 6:31 am
by d-hcelik
I see it in appearence section,thanks

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

Posted: Thu Mar 18, 2021 7:18 am
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

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

Posted: Thu Mar 18, 2021 8:58 am
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

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

Posted: Thu Mar 18, 2021 10:55 am
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

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

Posted: Thu Mar 18, 2021 11:03 am
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

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

Posted: Thu Mar 18, 2021 11:09 am
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