IEaxObject.UndoRedo

Syntax

UndoRedo: IUndoRedo;

Description

The UndoRedo property returns undo/redo stack parameters of express report object.

Comments

To use undo and redo stack parameters, the IUndoRedo.Enabled property must be set to True.

Example

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 undo/redo stack of bubble chart
    UndoRedoObject := Object.UndoRedo;
    
// Set availability and number of undo/redo stack operations
    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:

IEaxObject