doUndoAction(report: PP.Exp.EaxAnalyzer, metadata, callback: PP.Delegate);
report. Express report to be updated.
metadata. Metadata.
callback. Callback function.
The doUndoAction method is used to work with undo/redo stack in express report.
Structure of the metadata parameter corresponds to wsdl UndoRedo and may contain the following values:
enabled. Indicates if undo stack is available.
undo. Undoes the specified number of actions.
redo. The specified number of actions is redone.
isEmpty. If the field is set to True, undo stack is cleared.
delUndoRedo. Deletes the specified number of actions available for undo/redo. First, the actions available for redo are deleted.
After the doUndoAction method is applied, refresh visualizer or object metadata.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component. Execute any action to fill the stack of available undo actions. Undo the executed action by means of the code:
report = eaxAnalyzer.getActiveSheet(); // Set metadata for undoing of the 1 operation metadata = { "undo" : "1" }; eaxMdService.doUndoAction(report, metadata) // Refresh report expressBox.refreshAll();
After executing the example the last action is undone.
See also: