fgl_report_runFromXML

Replays the report from an XML file.

Syntax

fgl_report_runFromXML(
   dataFileName STRING) 
  RETURNS ok BOOLEAN
  1. datafileName - filename of an XML file containing the data.
  2. ok - Returns TRUE if no error occurred.

Usage

Function that can run a report using as the data source an arbitrary XML file. This would be a file that was not created by a Genero program using fgl_report_createProcessLevelDataFile .

This function will replay the report from the file, replacing the running of the report (the START REPORT, OUTPUT TO REPORT, and FINISH REPORT statements).

The function sets up the report engine based on the current settings that have previously been loaded by a call to fgl_report_loadCurrentSettings, and may have been modified by calls to fgl_report_selectDevice or fgl_report_selectPreview. The function automatically calls fgl_report_commitCurrentSettings.

See Data From an XML File for an example program.

For an example of Genero code using a reporting function, see Using report output functions. This example may not use the specific function discussed in this topic, however it provides details on where you would place this (and other) report output functions.

The Report Design

When it comes to the report design document (.4rp), you must declare the XSD associated with the XML file, as no data schema (.rdd) is created, as reports using this function do not include the Genero BDL report statements. See Support for arbitrary XML data sources.