Datasnap.DBClient.TCustomClientDataSet.GetDetailLinkFields

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Unit: Datasnap.DBClient
Parent: TCustomClientDataSet

Delphi

procedure GetDetailLinkFields(MasterFields, DetailFields: TList<TField>); overload; override;

C++

virtual void __fastcall GetDetailLinkFields(System::Generics::Collections::TList__1<Data::Db::TField*>* MasterFields, System::Generics::Collections::TList__1<Data::Db::TField*>* DetailFields)/* overload */;
inline void __fastcall  GetDetailLinkFields _DEPRECATED_ATTRIBUTE1("Use overloaded method instead") (System::Classes::TList* MasterFields, System::Classes::TList* DetailFields){ Data::Db::TDataSet::GetDetailLinkFields(MasterFields, DetailFields); }

Description

Introduces a method to list the field components that link this dataset as a detail of a master dataset.

Datasnap.DBClient.TCustomClientDataSet.GetDetailLinkFields inherits from Data.DB.TDataSet.GetDetailLinkFields. All content below this line refers to Data.DB.TDataSet.GetDetailLinkFields.

Introduces a method to list the field components that link this dataset as a detail of a master dataset.

As implemented in TDataSet, GetDetailLinkFields does nothing. Descendants override this method to fill the two lists with field components that define a master-detail relationship between this dataset and another (master) dataset. The MasterFields list is filled with fields from the master table whose values must equal the values of the fields in the DetailFields list. The DetailFields list is filled with fields from the calling dataset.