Page 1 of 1

CountIf doesn't work in events?

Posted: Sat Dec 02, 2017 11:48 pm
by vineet
I can use CountIf(Column == true) in a text label and get the correct count.

Now, I want to disable a page by using the same countIf function if its value is == 0. When I try to use it in the Conditions editor for the page, it doesn't work. When I tried to use it in the BeforePrint event of the page, it didn't work either.

How do I hide a page if the total count of data = 0?

Re: CountIf doesn't work in events?

Posted: Mon Dec 04, 2017 9:50 pm
by Alex K.
Hello,

There are no standard ways for this task.
Please send us a sample report with test data, we will try to find a solution for you.

Thank you.

Re: CountIf doesn't work in events?

Posted: Wed Dec 06, 2017 1:39 am
by vineet
That's what I thought. Never mind, I created another datasource with the filtered results and am checking the count in the before print event of the page to enable/disable it.

Re: CountIf doesn't work in events?

Posted: Wed Dec 06, 2017 12:58 pm
by Alex K.
Hello

Ok
Please let us know if you need any additional help.

Thank you.