319
edits
Changes
→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}
===Other subreport relationships===