how to do java counter i++ in iReport

a 夏天 提交于 2019-12-25 14:03:45

问题


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?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/4456708/how-to-do-java-counter-i-in-ireport

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!