Generate the data schema (rdd) file

After you write or modify your Genero report application, you must generate the data schema (rdd) file. This file is a required input for the Report Design Document.

The data schema (rdd ) file is based on the SQL statement in your BDL (4gl) file. This rdd file is used in the report design document (4rd) to populate the Data View providing details about the fields that will being streamed by the application. The schema contains the list of database columns that make up your data record (orderline in the example program), as well as grouping details.

From the command line

Use the command-line option of the tool fglcomp to create a Report Writer data schema (rdd file). For example:

fglcomp --build-rdd SimpleReport.4gl

The output of this command will be SimpleReport.rdd. The rdd file will be stored in the same location as the 4gl file.

Note: If your BDL program contains multiple 4gl files, run fglcomp against the file containing your REPORT program block.

From Genero Studio

Add --build-rdd to the Compiler options property for your Genero source (4gl) file to generate the rdd file automatically each time the 4gl file is compiled. Select the 4gl file listing in the application node of the Project tab to display its properties in the Properties View. The rdd file will be stored in the directory specified in the Target Directory property of the application node that contains the 4gl file.