Class TTrackRecSource
Unit
DBTrackTool
Declaration
type TTrackRecSource = class(TComponent)
Description
non visual components defining tracked dataset, log is stored by related TTrackRecTarget component
Hierarchy
- TComponent
- TTrackRecSource
Overview
Methods
Properties
Description
Methods
|
procedure LoadValues; |
store values of active record to memory (OldRecValues) to compare it later with a new values
|
|
procedure LoadKeyValues; |
store key field values of active record to memory (FKeyValues) to use it later during log
|
|
procedure SaveChanges; |
save all dataset changes to the log by TTrackRecTarget
|
|
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
|
property LastAction: TTrackingEvent read FLastAction; |
indicate last tracking event
|
|
property LastMsg: string read FLastMsg; |
indicate last tracking message
|
|
property LastMsgSpec: string read FLastMsgSpec; |
indicate last tracking special message
|
|
property KeyValues: string read FKeyValues write FKeyValues; |
contain KeyValues used for storing of Track records
|
|
property TrackedDataSet: TDataSet read FTrackedDataSet write SetTrackedDataSet; |
Link to DataSet which is tracked
|
|
property Disable: boolean read FDisable write FDisable; |
Defines whether tracking is disabled for this dataset
|
|
property TrackRecTarget: TTrackRecTarget read FTrackRecTarget write SetTrackRecTarget; |
Link to TrackRecTarget which defines table for storing of tracking records
|
|
property TrackingEvents: TTrackingEvents read FTrackingEvents write FTrackingEvents; |
Defines set of events which is tracked
|
|
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
|
|
property TrackedFields: TStrings read FTrackedFields write SetTrackedFields; |
Defines list of field witch will be tracked
|
|
property TrackedSpecialFields: TStrings read FTrackedSpecialFields write SetTrackedSpecialFields; |
Defines list of special field witch will be tracked
|
|
property KeyFields: string read FKeyFields write FKeyFields; |
Defines field (or fields seperated by ;) witch contain key value of records
|
|
property TableName: string read FTableName write FTableName; |
Defines name of tracked table (used in the log)
|
|
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
|
|
property TableOpenStr: string read FTableOpenStr write FTableOpenStr; |
Defines used string after table is opened
|
|
property TableCloseStr: string read FTableCloseStr write FTableCloseStr; |
Defines used string after table is closed
|
|
property OnEditMessage: TTrackEditMessage read FOnEditMessage write FOnEditMessage; |
event used for final edition of text with change log
|
|
property OnGetMemo: TTrackEditMessage read FOnGetMemo write FOnGetMemo; |
event used for definition of additional memo text
|
|
property OnGetCustomMemo: TTrackEditMessage read FOnGetCustomMemo write FOnGetCustomMemo; |
event used for definition of custom memo text
|
Generated by PasDoc 0.15.0.
|