Sign in Join
FPDoc Onlineexperiment

TMasterDataLink class

In unit DB

Datalink for Master-Detail relationships between datasets.

Declaration

pascal
TMasterDataLink = class(TDetailDataLink)

Inheritance

  1. TMasterDataLink
  2. TDetailDataLink
  3. TDataLink
  4. TPersistent
  5. TObject

Descends from it: TMasterParamsDataLink

Description

TMasterDataLink is a TDatalink descendent which handles master-detail relations. It can be used in TDataset descendents that must have master-detail functionality: the detail dataset creates an instance of TMasterDataLink to point to the master dataset, which is subsequently available through the Dataset property.

The class also provides functionality for keeping a list of fields that make up the master-detail functionality, in the FieldNames and Fields properties.

This class should never be used in application code.

See also

Properties

FieldNamespublicList of fieldnames that make up the master-detail relationship.
FieldspublicList of fields as specified in FieldNames.

Methods

ActiveChangedprotected
CheckBrowseModeprotected
GetDetailDataSetprotected
LayoutChangedprotected
RecordChangedprotected
DoMasterDisableprotected
DoMasterChangeprotected
CreatepublicCreate a new instance of TMasterDataLink.
DestroypublicFree the datalink instance from memory.

Events

OnMasterChangepublicCalled whenever the master dataset data changes.
OnMasterDisablepublicCalled whenever the master dataset is disabled.

Inherited

From TDetailDataLink (1)

DetailDataSet

From TDataLink (31)

Active ActiveRecord BOF BufferCount DataEvent DataSet DataSetChanged DataSetScrolled DataSource DataSourceFixed Edit Editing EditingChanged Eof ExecuteAction FirstRecord FocusControl GetActiveRecord GetBOF GetBufferCount GetEOF GetRecordCount MoveBy ReadOnly RecordCount SetActiveRecord SetBufferCount UpdateAction UpdateData UpdateRecord VisualControl

From TPersistent (8)

Assign AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath GetOwner

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.