Page 1 of 1

Enabled property of the page based on the null value

Posted: Wed Jun 10, 2015 8:15 pm
by jrSD
Is it possible to create an expression which turns the 'Enable' value of a page from True to False, etc.? For example, I have a report with multiple pages. When the filter for a specific page comes up null, said page is printed as a blank page. is there a way of disabling this page assuming null?

Re: Enabled property of the page based on the null value

Posted: Thu Jun 11, 2015 6:10 am
by HighAley
Hello.

You should set Conditions for the page.
If you disable the Component is Enabled option, the Page will be disabled if the expression is true.

Thank you.

Re: Enabled property of the page based on the null value

Posted: Thu Jun 11, 2015 8:18 pm
by jrSD
Thank you! Any chance I can get a little help writing the expression...pretty please?

Obviously, this is not correct: {IIF(DataBand4=null, Enabled=true, Enabled=False)}

Re: Enabled property of the page based on the null value

Posted: Fri Jun 12, 2015 9:32 am
by Ivan
Hello,

If we understand your task correctly then you need to write the following expression, for example:

Code: Select all

YourDataSource.Count == 0
where YourDataSource is datasource used in the DataBand4.

If the issue is still present, please send to us a sample report template with data, which reproduce the issue, for analysis.

Thank you.