-
Book Overview & Buying
-
Table Of Contents
Google Web Toolkit 2 Application Development Cookbook
By :
In the previous recipes, we retrieved data from the database and just viewed those after designing the report. However, we haven't done any other processing using the retrieved data. Sometimes, we may need further processing of data. For example, we have retrieved the quantity and unit price of all products of a particular sale; now we might want to calculate the total by multiplying quantity and unit price. We may also want to calculate the grand total (add all totals) of that sale. Please note that the total and the grand total are not stored in the database. We want to calculate these during the runtime of the report. Variables are used in such cases.
In iReport, the report variable is a special object for a report which holds a value during the runtime of the report based on the expression and other setups (Reset Type, Reset Group, Increment Type, Increment Group, and so on).
The subreport created in the previous recipe will be used here to add variables...
Change the font size
Change margin width
Change background colour