count variable basing on the field's Boolean values.

0

hi ,

i have a variable named sumClient of Calculation Type = count , i want to count the number of client in My report  basing on Boolean variable CL, so i have put in the variable Expression

of the variable sumClient this code : ($F{CL}.booleanValue()== true)?1:0 but this is returning all the number of client that i have in the report even if CL =false.

 

NB : in my Report i'm generating a  table basing on a List of bean ressource.

could you help me please , Thank you

 

 

 

belhouene.tarek's picture
Joined: Apr 25 2013 - 2:01am
Last seen: 5 years 10 months ago

1 Answer:

0

Try

new Boolean($P{CL}.booleanValue() == true)

OR

$P{CL}==Boolean.TRUE

new Boolean($P{PRINT_INSTRUCTIONS}.booleanValue() == false)
hozawa's picture
57680
Joined: Apr 24 2010 - 4:31pm
Last seen: 8 months 1 week ago
Feedback
randomness