19.1.1. Data source script file functions
There are a few functions that must be implemented in the data source script file. These functions are called by the Demorize system when fetching data from the data source.
- Update() - Allows the script to update its internal data and prepare to generate the actual data.
- GetFieldNames() - Returns an array with the names of the fields in the generated data table.
- GetRecordCount() - Returns the number of rows of data available in the generated data table.
- GetValue(record, field) - Returns the data value for the given record and field as a string. Record is a zero based index and field is the field name.