UndoRedo: IUndoRedo;
UndoRedo: Prognoz.Platform.Interop.ForeSystem.UndoRedo;
The UndoRedo property returns parameters of express report undo or 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 this example an undo/redo stack is available for express report; the number of available undo/redo operations is set to 20 operations.
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;
UndoRedoAnalyzer: IUndoRedo;
Begin
// Get repository
Metabase := Params.Metabase;
// 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;
See also: