[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Datalink for Master-Detail relationships between datasets.
Source position: db.pas line 1455
type TMasterDataLink = class(TDetailDataLink) |
||
protected |
||
procedure ActiveChanged; override; |
||
procedure CheckBrowseMode; override; |
||
function GetDetailDataSet; override; |
||
procedure LayoutChanged; override; |
||
procedure RecordChanged(); override; |
||
procedure DoMasterDisable; virtual; |
||
procedure DoMasterChange; virtual; |
||
public |
||
constructor Create(); virtual; |
|
Create a new instance of TMasterDataLink |
destructor Destroy; override; |
|
Free the datalink instance from memory |
property FieldNames: String; [rw] |
|
List of fieldnames that make up the master-detail relationship |
|
List of fields as specified in FieldNames |
|
property OnMasterChange: TNotifyEvent; [rw] |
|
Called whenever the master dataset data changes |
property OnMasterDisable: TNotifyEvent; [rw] |
|
Called whenever the master dataset is disabled |
end; |
|
Datalink for Master-Detail relationships between datasets. |
|
| | ||
|
Represents the link between a detail data source and a master datasource. |
|
| | ||
|
Data event handling agent for controls |
|
| | ||
| | ||
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 TDataLink.Dataset property.
The class also provides functionailty for keeping a list of fields that make up the master-detail functionality, in the TMasterDatalink.FieldNames and TMasterDataLink.Fields properties.
This class should never be used in application code.
|
Base class for records-based data-access |
|
|
Datasource this datalink is connected to |
|
|
Dataset this datalink is connected to |
|
|
List of fieldnames that make up the master-detail relationship |
|
|
List of fields as specified in FieldNames |
lazarus-ccr.sourceforge.net |