Data.DB.TField.LookupDataSet

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property LookupDataSet: TDataSet read FLookupDataSet write SetLookupDataSet;

C++

__property TDataSet* LookupDataSet = {read=FLookupDataSet, write=SetLookupDataSet};

Properties

Type Visibility Source Unit Parent
property published
Data.DB.pas
Data.DB.hpp
Data.DB 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.

See Also