<< Click to display table of contents >> TCustomRVReportGenerator.OnProcessRecord |
Occurs before processing a record of a query processor.
type
TRVProcessRecordEvent = procedure (Sender: TCustomRVReportGenerator;
const DataQuery: TRVUnicodeString; Rule: TRVRowGenerationRule;
Cell: TRVReportTableCellData;
Session: TRVReportGenerationSession; RecNo: Integer;
QueryProcessor: TRVReportQueryProcessor) of object;
property OnProcessRecord: TRVProcessRecordEvent;
This event may be used to assign values to variables based on the data from this record.
If Execute is called with parameter UseThread = True, this event is called in a thread context.
Parameters
DataQuery – a data query string (such as SQL SELECT statement). This string is already processed: data fields and variables in it are replaced to their values.
Rule – a row generation rule of a report table. This parameter is assigned if the DataQuery belongs to this rule, otherwise, it is nil.
Cell – a cell of a report table.This parameter is assigned if the DataQuery belongs to this cell, otherwise, it is nil.
Session – an object representing a report generation session. It can be used to get values of variables and data fields.
RecNo – index of the record in the results of QueryProcessor, in the range 0..QueryProcessor.GetRecordCount-1.
QueryProcessor – a query processor created to process DataQuery.
See also