setTabSheetSelection(report: PP.Exp.EaxDocument, metadata: Object, callback: PP.Delegate);
report. Express report document.
metadata. Settings of table cells selection. This parameter is a JSON object with the following properties: type - selection type (currently only the Normal value is available), range - table cell range to be selected.
callback. Callback function.
The setTabSheetSelection method sets selection for cells of express report table.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component) and have a loaded table in express report working area. Select table cells in the range C2-D2:
// Get a service used to work with express report
var eaxMdService = expressBox.getService();
// Get express report document
var eaxAnalyzer = expressBox.getSource();
// Determine metadata
var metadata = {
type: "Normal",
range: {
height: 0,
width: 0,
left: 0,
top: 0,
type: "MultiPart",
parts: {
it: [{ // Set range of selected cells
height: 1,
width: 2,
top: 2,
left: 2,
type: "Cells"
}]
}
}
};
// Select table cells
eaxMbService.setTabSheetSelection(eaxAnalyzer, metadata);
// Refresh express report
expressBox.refreshAll();
After executing the example table cells in the C2-D2 range are selected.
See also: