DB.TField.LookupDataSet
From RAD Studio VCL Reference
Contents |
Delphi Information
From DB.pas
property LookupDataSet: TDataSet read FLookupDataSet write SetLookupDataSet;
Unit: DB
Type: property
Visibility: published
Member Of: TField
C++ Information
From DB.hpp
__property Db::TDataSet * LookupDataSet = {read=FLookupDataSet,write=SetLookupDataSet};
Unit: DB
Type: property
Visibility: public
Member Of: TField
Description
Identifies the dataset used to look up field values.
Use LookupDataSet to specify the dataset to use for looking up field values in a field with a FieldKind of fkLookup.
Note: LookupDataSet can't refer to a unidirectional dataset.
When a field component is a lookup field, the Value of the field component is the value of the LookupResultField in the LookupDataSet. The record in the LookupDataSet that contains the correct value is found by matching the LookupKeyFields in the LookupDataSet with the current values of the KeyFields in the DataSet.