Skip to content

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.
See all Properties

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.
See all Methods

See also

Name Description
TDatalink Data event handling agent for controls.
TDataset Base class for records-based data-access.
TParams A collection of parameter values for SQL-based datasets.
TParam Parameter description class.