Access Data for Building Templates
The data model defines the XML format that is merged with the RTF template. The Template Builder requires sample data to build the template. You must load sample data to use most of the template builder functionality.
If you are not connected to Publisher, then use the procedure in Load XML Data from a Local File. If you are connected, then use the procedure in Load Data from the Publisher Catalog.
Load XML Data from a Local File
One method of loading data to the Template Builder is to save a sample of the report data to a local directory.
If you do not have access to the report data model, but you can access the report, then you can alternatively save sample data from the report viewer.
To save data from the report viewer:
- In the Publisher catalog, navigate to the report.
- Click Open to run the report in the report viewer.
- Click the Actions icon, then click Export, then click Data. You are prompted to save the XML file.
- Save the file to a local directory.
- Use the Load Sample XML feature below to load the saved XML file to the Template Builder.
The Load Data group from the Publisher menu enables you to select and load the saved XML file to the Template Builder.
-
Sample XML - Enables you to load a sample XML file that contains all fields that you want to insert into the template as a data source. If you are not connected to the Publisher, then use this method to load the data.
-
XML Schema - Enables you to load an XML Schema file (.xsd) that contains the fields available in the report XML data. The XML schema has the advantage of being complete (a sample XML file might not contain all the fields from the data source). For the preview, the Template Builder can generate dummy sample data for an XML Schema. However, the preview works better if you also upload real sample data.