Report template schema definition (.rsd) file
The report template schema definition (.rsd) file is used to manually add the structure of the fields and groups to a report template (.4rt).
The .rsd file is a high level data schema file, unique to templates, that is used to create the XML structure of the elements that will be included in the report template as placeholders. When creating a report from a template, the .rsd placeholders are populated with the data of the report design document provided by the data schema, or XML Schema definition (.xsd) file.
rootElementName
, and then structure the file with the following available
elements:
Element | Required syntax | Description | Reference |
---|---|---|---|
|
|
The field element is used to add the variables that you want to include in the report template as placeholders. The |
See the Variables page topic for more information. |
|
|
The |
See the Schema Association page topic for more information. |
|
|
The |
|
<?xml version="1.0" encoding="utf-8"?>
<ReportSchema fileVersion="30000" gstVersion="30000" rootElementName="model">
<Field name="showMeasures" type="boolean" sampleValue="1"/>
<Field name="fontName" type="string"/>
<Field name="logoURL" type="string"/>
...
<Trigger name="outerGroups">
<Trigger name="innerGroups">
<TemplateFieldsTrigger groupName="fields"/>
<TemplateFieldsTrigger groupName="fields"/>
<Trigger name="rows">
<TemplateFieldsTrigger groupName="fields"/>
</Trigger>
</Trigger>
</Trigger>
</ReportSchema>
Examine the various template schema files in $GREDIR/templates to better understand the different ways that a template schema file can be written.