UndoRedo: IUndoRedo;
The UndoRedo property returns parameters of express report undo/redo stack.
To use undo and redo stack parameters, the IUndoRedo.Enabled property must be set to True.
Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier that contains a bubble chart.
Add links to the Express, Metabase system assemblies.
Sub UserProc;
Var
Metabase: IMetabase;
Analyzer: IEaxAnalyzer;
UndoRedoAnalyzer: IUndoRedo;
Begin
// Get repository
Metabase := MetabaseClass.Active;
// Get express report
Analyzer := Metabase.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
// Get express report undo/redo stack
UndoRedoAnalyzer := Analyzer.UndoRedo;
// Set availability and number of undo/redo stack operations
UndoRedoAnalyzer.Enabled := True;
UndoRedoAnalyzer.Limit := 20;
//Save changes
(Analyzer As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the undo/redo stack is available for express report; the number of available undo/redo operations is set to 20 operations.
See also: