counting how many true or false in a column

counting how many true or false in a column

  

In my webapp I am going to create a Report Generator page, for example I created a table on a diferent page with a yes or no (true or false) because I used boolean for the check box. I want to display in the report generator page how many yes or no in that table. can any one help me? thanks.

-Daryl

true = 1, false = 0, then simply count.


Hi Daryl,

You mentioned that you created a table in different page , are you storing this table data in database ? if yes you can simply get count of records based on true\false , if not you can simply take two variables True Count\False Count and than iterate over the list and increment the corresponding count variable based on true or false in the list.



Regards

-PJ-