I am using $V{REPORT_COUNT} in JasperReports to print serial number and it works well. But when I grouped by a field and started each group on a new page the serial number still continues across the groups.
I need to reset this variable $V{REPORT_COUNT} for each group.
Thanks.
If you want a count that resets on each page, then that’s not
$V{REPORT_COUNT}by definition.It sounds like you want the built-in variable
$V{PAGE_COUNT}. Or you might want the built-in$V{MyGroup_COUNT}.More generally you could create your own variable to count what you want. But the built-in ones probably meet your needs in this case.