CountIf doesn't increment on boolean value

Stimulsoft Reports.NET discussion
Post Reply
fuhrj
Posts: 120
Joined: Wed Jun 11, 2008 12:51 pm
Location: Lancaster, Ohio

CountIf doesn't increment on boolean value

Post by fuhrj »

I have a function that returns a boolean based on a date that is passed into it. I've verified that the function is returning the correct output.

In a Group footer section, I have this Expression in a textbox

{CountIf(Data1, ReportTable.requestID, IsWalkIn(ReportTable.scheduledDate) == true) }

The counter is always 0 if I set it to true or false.

How do you evaluate for boolean value?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

CountIf doesn't increment on boolean value

Post by Jan »

Hello,

Please use following expression:

Code: Select all

{CountIf(Data1, IsWalkIn(ReportTable.scheduledDate)) }
or

Code: Select all

{CountIf(IsWalkIn(ReportTable.scheduledDate)) }
Thank you.
fuhrj
Posts: 120
Joined: Wed Jun 11, 2008 12:51 pm
Location: Lancaster, Ohio

CountIf doesn't increment on boolean value

Post by fuhrj »

Thanks Jan!

I just learned that this worked as well

Code: Select all

{CountIf(Data1,IsWalkIn(ReportData.scheduledDate) == true)}
Is there any documentation on the acceptable properties for this method? It would appear that there are three versions now.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

CountIf doesn't increment on boolean value

Post by Jan »

Hello,

Please visit following link:
http://www.stimulsoft.com/Documentation ... ctions.htm

Thank you.
Post Reply