Changes

Modify an iReport Template

1,210 bytes added, 14:42, 17 September 2013
Adding a Variable to an iReport Template
===Adding a Variable to an iReport Template===
Two Often it is necessary to add a variable to an iReport template. Variables are used to store calculations and totals in an iReport template. They are often used in the Summary Band portion of a report to store sums of numeric fields (e.g. areaSize) or record counts. There are two main ways to do itadd variables to an iReport template.  For numeric variables:For variables that are numeric (area sizes, number of devices, etc):# Add a variable manuallyFrom the '''Report Inspector''', Select the field that you wish to sum or count.# Drag the field to the Summary Bandof the iReport Template canvas# A dialogue will pop up, select '''The result of an aggregation function''' and choose the calculation type you want to perform.#: [[Image:IReport VariableAdd1.png|center|300px|''Select aggregation function'']]<div align="center">''Choose the type of calculation''</div># Choose '''OK'''# The variable will now appear in the '''Report Inspector''' and can be used in the iReport.#: [[Image:IReport VariableAdd2.png|center|300px|''Select aggregation function'']]<div align="center">''Choose the type of calculation''</div>
Adding a variable manually:
# Right From the '''Report Inspector''' right click -> Add Variable#: [[Image:IReport VariableAdd3.png|center|300px|''Select aggregation function'']]<div align="center">''Choose the type of calculation''</div>#
==Report Query Filtering==
319
edits