IMap.UndoRedo

Fore Syntax

UndoRedo: IUndoRedo;

Fore.NET Syntax

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

Description

The UndoRedo property returns parameters of undo/redo stack of a map.

Fore Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier. Add links to the Express, Map, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    TUnRed: IUndoRedo;
Begin
    MB := MetabaseClass.Active;
    Express := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
    TUnRed := Express.Map.Map.UndoRedo;
    TUnRed.Enabled := True;
    TUnRed.Limit := 30;
    (Express As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the undo/redo stack is available for express report map, the stack has a limit of 30 days for undo/redo 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;
Imports Prognoz.Platform.Interop.Map;
Imports Prognoz.Platform.Interop.Metabase;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    TUnRed: IUndoRedo;
Begin
    MB := Params.Metabase;
    Express := MB.ItemById["EXPRESS_REPORT"].Edit() As IEaxAnalyzer;
    TUnRed := Express.Map.Map.UndoRedo;
    TUnRed.Enabled := True;
    TUnRed.Limit := 30;
    (Express As IMetabaseObject).Save();
End Sub;

See also:

IMap