Express > Express Assembly Interfaces > IEaxObject > IEaxObject.UndoRedo
UndoRedo: IUndoRedo;
The UndoRedo property returns undo/redo stack parameters of express report object.
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;
Object: IEaxObject;
UndoRedoObject: IUndoRedo;
Begin
// Get repository
Metabase := MetabaseClass.Active;
// Get express report
Analyzer := Metabase.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
// Get bubble chart
Object := Analyzer.BubbleChart As IEaxObject;
// Get bubble chart changes stack
UndoRedoObject := Object.UndoRedo;
// Set availability and number of stack changes
UndoRedoObject.Enabled := True;
UndoRedoObject.Limit := 5;
//Save changes
(Analyzer As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the express report bubble chart will have the undo/redo stack available with the number of undo/redo operations limited to 5 operations.
See also: