我需要显示每组的行号序列。
我已使用$ V {PAGE_COUNT}和评估时间为现在
我得到的报告数据是 A组
1
2
3
4
...........
页面结束......
A组
1
2
3
4
页面结束---------
B组
1
2
3
4
5
页面结束....
但我的要求是
A组
1
2
3
4
...........
页面结束
A组
5
6
7
8
9
页面结束.......
B组
1
2
3
4
5
页面结束....
我需要同一组的所有行都是连续的序列。并且当组改变时从1开始序列
答案 0 :(得分:1)
在这种情况下,您应该使用GroupName_COUNT
变量。
When declaring a report group, the engine automatically creates a count variable that calculates the number of records that make up the current group (that is, the number of records processed between group ruptures). The name of this variable is derived from the name of the group it corresponds to, suffixed with the _COUNT sequence. It can be used like any other report variable, in any report expression, even in the current group expression, as shown in the BreakGroup group of the /demo/samples/jasper sample)
更多信息在这里:Data Grouping