UndoRedo: IUndoRedo;
UndoRedo: Prognoz.Platform.Interop.ForeSystem.UndoRedo;
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 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.
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: