TMasterParamsDataLink¶
Class to establish a master-detail relationship between dataset, based on parameters.
Declaration¶
Source position: db.pas line 2108
type
TMasterParamsDataLink = class(TMasterDataLink)
public
constructor Create;
procedure RefreshParamNames;
procedure CopyParamsFromMaster;
property Params: TParams; {rw}
end;
Description¶
TMasterParamsDataLink is a TDataLink descendent that can be used to establish a master-detail relationship between 2 TDataset instances where the detail dataset is parameterized using a TParams instance. It takes care of closing and opening the detail dataset and copying the parameter values from the master dataset whenever the data in the master dataset changes.
Properties¶
| Member | Visibility | Description |
|---|---|---|
| Params | public | Parameters of detail dataset. |
Methods¶
| Member | Visibility | Description |
|---|---|---|
| CopyParamsFromMaster | public | Copy parameter values from master dataset. |
| Create | public | Initialize a new TMasterParamsDataLink instance. |
| RefreshParamNames | public | Refresh the list of parameter names. |