O'Reilly logo

iReport 3.7 by Shamsuddin Ahammad

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding variables

Before adding variables, we need to understand a few terms:

  • Variable name: Each variable must have a name to identify it, in the places where it is required.
  • Variable class: Each variable has a particular type, thus the particular Java type must be selected for the variable in iReport.
  • Calculation: Variables can perform built-in calculations, such as sum, average, lowest, highest, standard deviation, variance, count, distinct count, and so on. If there are no built-in calculation types for an operation, we can build the expression using the wizard as we will do for our first variable "Total". However, for the grandtotal, we will use the built-in calculation type sum.
  • Reset type: For variables, we can specify the reset type at which ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required