Writing the Genero BDL report program / Fetching report data |
You can use SQL statements to retrieve the data for the report from database tables, requiring a connection to the database and the use of an SQL cursor.
The SimpleReport.4gl program uses this technique, shown in the runReportFromDatabase function.