Designing a Report / Adding report data (Data view) |
Genero Report Writer can produce reports from arbitrary XML input sources.
The xml source is described by an XML Schema. The Open schema file dialog proposes rdd and xsd file formats.
If an xsd file is selected, the designer interprets the file as follows:
For an example, see the Table.4rp report design document in the Reports sample project, located under the OrderReportXML application node. Open this report to see the OrderData.xsd used as data schema for the report (as shown in the Data View tab).
<input xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”> … <productReference xsi:nil=”true”></productReference>The RTL expression productReference.isNull() will yield true for this instance of the variable.
Recursive references are not supported. Elements involved in a recursive reference will be ignored by the designer.
Simple type element with minOccurs="0" are discarded by the designer. No variable is created.
The designer creates variables for optional attributes and issues a warning. An error occurs if the variable is not present at runtime.
When you declare the data of a report design document (.4rp) to use an arbitrary XML data sources, you must use the fgl_report_runFromXML API function in your report. See fgl_report_runFromXML.