Class TTrackRecSource

Unit

Declaration

type TTrackRecSource = class(TComponent)

Description

non visual components defining tracked dataset

Hierarchy

  • TComponent
  • TTrackRecSource

Overview

Methods

Public procedure LoadValues;
Public procedure LoadKeyValues;
Public procedure SaveChanges;
Public procedure SaveViewLog(ForceSaving: boolean = false);

Properties

Public property LastAction: TTrackingEvent read FLastAction;
Public property LastMsg: string read FLastMsg;
Public property LastMsgSpec: string read FLastMsgSpec;
Public property KeyValues: string read FKeyValues write FKeyValues;
Published property TrackedDataSet: TDataSet read FTrackedDataSet write SetTrackedDataSet;
Published property Disable: boolean read FDisable write FDisable;
Published property TrackRecTarget: TTrackRecTarget read FTrackRecTarget write SetTrackRecTarget;
Published property TrackingEvents: TTrackingEvents read FTrackingEvents write FTrackingEvents;
Published property TrackingOptions: TTrackingOptions read FTrackingOptions write FTrackingOptions;
Published property TrackedFields: TStrings read FTrackedFields write SetTrackedFields;
Published property TrackedSpecialFields: TStrings read FTrackedSpecialFields write SetTrackedSpecialFields;
Published property KeyFields: string read FKeyFields write FKeyFields;
Published property TableName: string read FTableName write FTableName;
Published property ChangesFormatStr: string read FChangesFormatStr write FChangesFormatStr;
Published property TableOpenStr: string read FTableOpenStr write FTableOpenStr;
Published property TableCloseStr: string read FTableCloseStr write FTableCloseStr;
Published property OnEditMessage: TTrackEditMessage read FOnEditMessage write FOnEditMessage;
Published property OnGetMemo: TTrackEditMessage read FOnGetMemo write FOnGetMemo;

Description

Methods

Public procedure LoadValues;

store values of active record

Public procedure LoadKeyValues;

store key field values of active record

Public procedure SaveChanges;

save all changes

Public procedure SaveViewLog(ForceSaving: boolean = false);

save view log with current state of dataset

Properties

Public property LastAction: TTrackingEvent read FLastAction;

indicate last tracking event

Public property LastMsg: string read FLastMsg;

indicate last tracking message

Public property LastMsgSpec: string read FLastMsgSpec;

indicate last tracking special message

Public property KeyValues: string read FKeyValues write FKeyValues;

contain KeyValues used for storing of Track records

Published property TrackedDataSet: TDataSet read FTrackedDataSet write SetTrackedDataSet;

Link to DataSet which is tracked

Published property Disable: boolean read FDisable write FDisable;

Defines whether tracking is disabled for this dataset

Published property TrackRecTarget: TTrackRecTarget read FTrackRecTarget write SetTrackRecTarget;

Link to TrackRecTarget which defined table for storing of tracking records

Published property TrackingEvents: TTrackingEvents read FTrackingEvents write FTrackingEvents;

Defines events which is tracked

Published property TrackingOptions: TTrackingOptions read FTrackingOptions write FTrackingOptions;

Defines tracking options

Published property TrackedFields: TStrings read FTrackedFields write SetTrackedFields;

Defines list of field witch will be tracked

Published property TrackedSpecialFields: TStrings read FTrackedSpecialFields write SetTrackedSpecialFields;

Defines list of field witch will be tracked

Published property KeyFields: string read FKeyFields write FKeyFields;

Defines field (or fields seperated by ;) witch contain key value of records

Published property TableName: string read FTableName write FTableName;

Defines name of tracked table

Published property ChangesFormatStr: string read FChangesFormatStr write FChangesFormatStr;

Defines string witch will be used for formating of info changes use parameters: %f - for name of field %o - for old value of field %n - for new value of field

Published property TableOpenStr: string read FTableOpenStr write FTableOpenStr;

Defines used string after table is opened

Published property TableCloseStr: string read FTableCloseStr write FTableCloseStr;

Defines used string after table is closed

Published property OnEditMessage: TTrackEditMessage read FOnEditMessage write FOnEditMessage;

event used for final edition of text with changes information

Published property OnGetMemo: TTrackEditMessage read FOnGetMemo write FOnGetMemo;

event used for definition of additional memo text


Generated by PasDoc 0.15.0.