fgl_report_setAutoformatType

Sets the auto-formatting type if no 4rp template is specified.

Syntax

fgl_report_setAutoformatType(
   type STRING )
  1. type - One of "COMPATIBILITY", "FLAT LIST", "NEW LIST"

Usage

Function that sets the auto-formatting type if no 4rp template is specified. By default such a report is rendered in compatibility mode. This function provides additional rendering options:

  • A compatibility report - the report is output in ASCII format, as in legacy reports.
  • A flat list - this is a simple list design, similar to the output from the List Report template available from the Genero Studio main menu option File > New > Reports > Report Designs.
  • A new list - this is a simple list design that expands a template to render the report.
    Note: You can use the new list to create a custom generic report.

The flat list and new list designs are well suited to produce Excelâ„¢ output from arbitrary reports.

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.