Changes

Create iReport Templates with Subreports

752 bytes added, 18:23, 19 September 2013
Kinds of Subreports
===Geospatial relationships===
In addition to Location and Link relationships, many objects in IMSMA can store geospatial/geographic information (i.e. point/polygon information). This relationship with the geospatial data can be modeled in a report/subreport relationship for any item that has geospatial information associated with it. To include point/polygon information on an object's main report, follow 3 basic steps:
*Step 1: Create a main report for an object with geospatial info
*Step 2: Create a GeospatialInfo subreport on the main report
*Step 3: Create a Geopoint subreport on the GeospatialInfo report
 
Step 1: Create a main report for an object with geospatial info
# Create a main report with an object that has geospatial information.
# Ensure that the '''''geospatialInfos''''' field is added to the main report.
 Step 2: Create a GeospatialInfo subreport on the main report# Add On the main report, add a subreport using the '''GeospatialInfo''' datasource# Pass the '''''geospatialInfos''''' field to the subreport in a parameter (e.g. GeospatialInfoList)#. '''Note: {{note|''' instead of passing the '''''$F{guid}''''' field to the parameter, the parameter value should be '''''$F{geospatialInfos}'''''}}# Create a parameter on the subreport with the same name as in #3.
# In the GeospatialInfo subreport use the parameter in the following ImsmaQuery language syntax
guid IN $P{parametername}
Step 3: Create a Geopoint subreport on the GeospatialInfo report
# On the Geospatialinfo subreport, add a subreport using the '''Geopoint''' datasource
# Pass the '''''guid''''' field to the subreport in a parameter (e.g. GeospatialGUID). '''Note:''' Pass the '''''$F{guid}''''' field '''NOT''' the '''''$F{geospatialInfos}''''' value.
# In the Geopoint subreport use the parameter in the following ImsmaQuery language syntax
geospatialinfoguid IN $P{parametername}
Certain items in {{IMSMANG}} have subsets This has the effect of data that are contained within them. For example, an education may have education details such as limiting the Geospatial records to only those records whose guid is linked to the education type, total audience, and percentage geospatialinfo of women and menthe main report. Other sub
===Other subreport relationships===
319
edits