IEaxObject.UndoRedo

Fore Syntax

UndoRedo: IUndoRedo;

Fore.NET Syntax

UndoRedo: Prognoz.Platform.Interop.ForeSystem.UndoRedo;

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.

Fore 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.

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.ForeSystem;

Public Shared Sub Main(Params: StartParams);
Var
    Metabase: IMetabase;
    Analyzer: IEaxAnalyzer;
    Object: IEaxObject;
    UndoRedoObject: IUndoRedo;
Begin
    
// Get repository
    Metabase := Params.Metabase;
    
// 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;

See also:

IEaxObject