Class TTrackRecSource

Unit

Declaration

type TTrackRecSource = class(TComponent)

Description

non visual components defining tracked dataset, log is stored by related TTrackRecTarget component

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;
Published property OnGetCustomMemo: TTrackEditMessage read FOnGetCustomMemo write FOnGetCustomMemo;

Description

Methods

Public procedure LoadValues;

store values of active record to memory (OldRecValues) to compare it later with a new values

Public procedure LoadKeyValues;

store key field values of active record to memory (FKeyValues) to use it later during log

Public procedure SaveChanges;

save all dataset changes to the log by TTrackRecTarget

Public procedure SaveViewLog(ForceSaving: boolean = false);

save view log with current state of dataset, can be used to store View event even it is not defined in the TrackingEvents

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 defines table for storing of tracking records

Published property TrackingEvents: TTrackingEvents read FTrackingEvents write FTrackingEvents;

Defines set of events which is tracked

Published property TrackingOptions: TTrackingOptions read FTrackingOptions write FTrackingOptions;

Defines tracking options: toTrackNoChanges - log is stored even no tracked field was changed toUseFieldName - FieldName instead of FieldLabel is used in the log

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 special 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 (used in the log)

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 change log

Published property OnGetMemo: TTrackEditMessage read FOnGetMemo write FOnGetMemo;

event used for definition of additional memo text

Published property OnGetCustomMemo: TTrackEditMessage read FOnGetCustomMemo write FOnGetCustomMemo;

event used for definition of custom memo text


Generated by PasDoc 0.15.0.