CountIf doesn't work in events?

Stimulsoft Reports.WEB discussion
Post Reply
vineet
Posts: 69
Joined: Fri Nov 10, 2017 3:12 am

CountIf doesn't work in events?

Post 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?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: CountIf doesn't work in events?

Post 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.
vineet
Posts: 69
Joined: Fri Nov 10, 2017 3:12 am

Re: CountIf doesn't work in events?

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: CountIf doesn't work in events?

Post by Alex K. »

Hello

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

Thank you.
Post Reply