API:SimpleDS.TSimpleDataSet.MasterFields

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property MasterFields: string read GetMasterFields write SetMasterFields default 0;

C++

__property MasterFields = {default=0};

Properties

Type Visibility Source Unit Parent
property published
SimpleDS.pas
SimpleDS.hpp
SimpleDS TSimpleDataSet

Description

Names one or more fields in a master table to link with corresponding fields in this dataset in order to establish a master-detail relationship.

SimpleDS.TSimpleDataSet.MasterFields inherits from Datasnap.DBClient.TCustomClientDataSet.MasterFields. All content below this line refers to Datasnap.DBClient.TCustomClientDataSet.MasterFields.

Names one or more fields in a master table to link with corresponding fields in this dataset in order to establish a master-detail relationship.

Use MasterFields after setting the MasterSource property to specify the names of one or more fields to use in establishing a detail-master relationship between this dataset and the one specified in MasterSource.

MasterFields is a string containing one or more field names in the master table. Separate field names with semicolons.

Each time the current record in the master table changes, the new values in those fields are used to select corresponding records in this dataset for display.

Note: At design time, use the Field Link designer to establish the master-detail relationship between two datasets.

See Also