RAD Studio VCL Reference
TDataSet.GetDetailLinkFields Method

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

procedure GetDetailLinkFields(MasterFields: TList; DetailFields: TList); virtual;
virtual __fastcall GetDetailLinkFields(TList MasterFields, TList DetailFields);

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. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!