TdxServerModeCustomDataSource.PopulateFields(TStrings) Method
Obtains the names of fields available in the data source.
Declaration
procedure PopulateFields(AList: TStrings);
Parameters
Name | Type |
---|---|
AList | TStrings |
Remarks
By default, all the fields contained in the target source of data (a table or a query‘s result set) are available in the data source. You can populate and customize the field list at design time via the IDE’s Fields Editor accessible via the data source component’s context menu. The PopulateFields method clears AList and populates it with field names from the list.
You can call the PopulateFields method to obtain valid values for the KeyFieldNames property.
Note
The PopulateFields method populates AList with the names of the fields referenced by the Fields list. In table-based server mode data sources, if this list is empty, the target table‘s schema is used to retrieve field names to AList.