iReport templates provide the foundation on which IMSMA reports are based. A report iReport template defines:
* the data source (e.g. Land, Activity, Accident)
* the attributes that should be displayed on the report (e.g. Land ID, Land Name and Areasize for a land report)
* the overall appearance of the report (title, formatting, etc.)
A tutorial on using How to create and edit iReport and building templates can with the iReport tool may be found in [[Use iReport| '''here''']].
==The IMSMA Report Template Manager==__NOEDITSECTION__The IMSMA Report Template Manager allows adding, changing and deleting report templatesiReport template definitions. To access the Report Template Manager, choose '''Customisation > Report Template Manager'''.
This opens the Report Template Manager.
==Add a new iReport Template into IMSMA==__NOEDITSECTION__To add a new iReport template:<ol><li>Click the [[Image:FieldTemplateIcon.png]] button. The Add Report Template window displays.</li>[[Image:fig84ReportTemplatesWindow.png|500px|center]]<li>Enter a name for the IMSMA report template in the '''Name''' field.</li><li>Enter a description for the IMSMA report template in the '''Description''' field.</li><li>Select the iReport template that you would like to associate with IMSMA report template by doing the following:</li><li>Click the '''Browse''' button.</li><li>Navigate to the directory where the iReport '''.jrxml''' files are saved.</li><li>Select the '''.jrxml''' file associated with the iReport template. You do '''not''' need to include any .jasper file. {{IMSMANG}} will not be able to read a .jasper file.</li><li>Click the '''Open''' button.</li>:The name of the .jrxml file displays in the File field. <li>Click the '''Save''' button.</li>{{note| If you select a template that has sub-reports in a different folder, you will be prompted to select the sub-report after the save button is pressed.}}</ol>==Preview, Change and Remove iReport Templates==__NOEDITSECTION__iReport templates can be previewed, changed and removed using the following buttons in the Report Template Manager window.
<center>
{| class="wikitable" width="600"
|-
| align="center" colspan="2" | '''Preview, Change and Remove Buttons in the Report Template ManagerOverview of functions for iReport template definitions'''
|-
| width="55pt" | '''Button'''
| width="475pt" | '''Description'''
|-
| align="center"| [[Image:Run.png | Run]] || Allows you to create a report. This function may also be started from the Reports menu and is described [[Add iReports in IMSMA | ''' here''']].|-| align="center"| [[Image:ViewIcon.png | Preview]] || Allows you to preview a report iReport template. This will [[Preview an iReport Template in IMSMA | preview ]] the layout, but no data will be included.|-| align="center"| [[Image:FieldTemplateIcon.png | Add]] || Allows you to [[Delete an iReport Template Definition from IMSMA Database | add]] an iReport template definition to the {{IMSMANG}} database.
|-
| align="center"| [[Image:FieldViewIcon.png | Edit]] || Allows you to [[View or Change an iReport Template Definition in IMSMA | update the ]] an existing report iReport templatedefinition, for example for assigning it a new name, or changing the .jrxml template file. If you change the .jrxml template file, it has to be changed to a template that uses the same type, that is, you cannot change from a "Location" report to a "Land" report.
|-
| align="center" | [[Image:EcksButton.png | Delete]] || Allows you to [[Delete an iReport Template Definition from IMSMA Database | delete a report ]] an iReport templatedefinition. You can only delete a report template if there is no report in IMSMA building on that template, because then the report would get unusabledefinition. Therefore, if you really would like to delete a an iReport templatedefinitions, you have to first delete all the associated reports.