undo();
The undo method undoes the last operation executed with table in express report working area.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Assign any value to the table cell, then cancel the operation:
// Get table view var gridView = expressBox.getDataView().getGridView(); // Assign a value to the cell gridView.setCellValue(12, 3, 2); // Output a simple message alert("Then cancel the operation of value assigning"); // Cancel the operation of value assigning gridView.undo();
First a value was set in the cell D5:
After clicking OK the previous operation is cancelled:
See also: