The syntax diagram for the ReportLib.fillReport function is as follows:
ReportLib.fillReport( report Report in, source DataSource in)
eglReport Report; eglReportData ReportData; eglReport.reportData = eglReportData;
eglReportData.connectionName = "mycon";
In this case, the SQL statement that accesses data is in the report design file, which is created outside of EGL.
// an array of records, with data myRecords customerRecord[]; eglReportData.data = myRecords;
mySQLString = "Select * From MyTable"; eglReportData.sqlStatement = mySQLString;
ReportLib.fillReport (eglReport, DataSource.sqlStatement);