Functions to introspect reports at runtime (librdd)

The module librdd (part of the standard reporting library libgre.42x) provides programmatic access to the structures contained in rdd files (files produced by the 4GL compiler from 4GL sources with the option --build-rdd).

Table 1. Functions to introspect reports at runtime
Function Description
rdd_getEveryRowFields (
  rddFileName STRING,
  reportName STRING)
Function that loads a rdd file and returns the field names of the fields contained in the first PRINT statement from the ON EVERY ROW section of the specified report.
rdd_loadRddAndGetReportInfos (
  rddFileName STRING)
Function that loads a rdd file and returns a data structure describing the reports contained in this file.
rdd_debugReportInfos (
  reportInfos DYNAMIC ARRAY of rddReportInfo)
Function that displays the report information contained in a rdd file for debugging purposes.

The source of the module is located in $GREDIR/src/api/librdd.4gl.