TFlexCelReport.AddConnection Method
Adds an adapter to use from the template on the DIRECT SQL commands. For security reasons, make sure this adapter ONLY GRANTS READONLY ACCESS TO THE DATA
Syntax
Unit: FlexCel.Report
procedure TFlexCelReport.AddConnection(const connectionName: string; const adapter: TFlexCelSQLQueryMethod; const recordCountMode: TRecordCountMode = TRecordCountMode.Normal); overload;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | connectionName | string | This is the name you will use on the template to refer to this adapter. |
const | adapter | TFlexCelSQLQueryMethod | A method that will execute a query when needed. |
const | recordCountMode | TRecordCountMode | Optional: Default value is TRecordCountMode.Normal USe it to set how FlexCel will count the records returned by the query. |