Allows providing a custom query processor for the specific DataQuery.
TRVCreateQueryProcessorEvent = procedure (
const DataQuery: TRVUnicodeString;
var QueryProcessor: TRVReportQueryProcessor) of object;
property OnCreateQueryProcessor: TRVCreateQueryProcessorEvent;
•if you want to use a non-standard query processor;
•if you want to use different query processors for different data queries.
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.
QueryProcessor – a query processor to process DataQuery. If you return nil, a default processing will be created (a query processor will be requested from a linked data provider component). QueryProcessor will be owned by the report generator and will be freed when it finishes processing DataQuery, so do not free QueryProcessor yourself.
To create QueryProcessor, you can use CreateQueryProcessor method of a data provider component.