Search code examples
jasper-reports

How to increment a variable everytime I use it?


How to increment a variable everytime I use it?

I made a variable called variable_1 and it starts at 1 and should increment every time I call/use it.

Variable properties


Solution

  • Thank you @dada67

    enter image description here

    I made the changes to my report and it worked.

    new java.util.concurrent.atomic.AtomicInteger(1) is my Initial Value Expression.

    Thanks again