PrxMdService.setActiveSheet

Syntax

setActiveSheet (report, key, callback);

Parameters

report. Report.

key. Sheet key.

callback. Callback procedure.

Description

The setActiveSheet method sets the active report sheet.

Example

The ReportBox component with the ReportBox name and the service to work with the regular report with the PrxMbService name is required on the HTML page to execute an example (see. Example of the ReportBox Component Layout) containing several sheets. Set active report sheet:

// Get collection of report sheets
sheets = prxReport.getSheets();
// Get the number of sheets
sheetC = sheets.length;
// Get the key of the last report sheet
key = sheets[sheetC - 1].k;
// Set active report sheet
prxMdService.setActiveSheet(prxReport, key);
// Refresh report
reportBox.refreshAll();

After executing the example the last sheet of regular report is selected.

See also:

PrxMdService