how to do java counter i++ in iReport

2019-09-14 12:53发布

i want to do counter variable, im using ireport 3.4.2

in java we can simply do like i++ to increament. how can i do t in iReport?

2条回答
Viruses.
2楼-- · 2019-09-14 13:38

$V{variable1}++ is absolutely legal in iReport, as long as variable1 is Integer and the Calculation is Count or Incremental Count

查看更多
唯我独甜
3楼-- · 2019-09-14 13:41

The above answer might be right also, but i didnt tried it. I try to created variable and set the calculation field "count" and then set the variable expression correctly based counter factor. it works.

查看更多
登录 后发表回答