Generic reports
A generic report is a report that you can expand at runtime, bypassing the need for a report design document. It can be a standard (flat list) format, or a custom report.
Create a generic report with a standard format
To create a generic report with a standard flat list format, set the autoformat type to FLAT LIST
:
IF fgl_report_loadCurrentSettings(NULL) THEN
CALL fgl_report_setAutoformatType("FLAT LIST")
This creates a simple list design, similar to the output from the List Report template available from the Genero Studio main menu option .
Create a custom generic report
To create a generic report that you can customize, do one of the following:
- Set the autoformat type to
NEW LIST
and use the rendering hints to set the properties. See Create a custom generic report for simple list or form list.This is the recommended method for most cases. However, the template must be based on the provided SimpleListTemplate.rsd or FormListListTemplate.rsd schema.
- Use a report template (.4rt) and design-time APIs to
provide the details. See Create a custom generic report for other template types.
This method allows you to create generic reports for schemas other than SimpleListTemplate.rsd or FormListListTemplate.rsd.