generateWbk(report, callback);
report. PP.Prx.Report. Report
callback. PP.Delegate. Callback function.
The generateWbk method sends a query for workbook generation.
The method implements logic of pressing the Time Series Analysis button on the tool ribbon.
To execute this example, the page must contain the ReportBox component named reportBox (see Example of the ReportBox Component Layout). The report should be based on a time series database.
// Get service and report dv = reportBox.getDataView(); prxMdService = dv.getService(); report = reportBox.getSource(); // Set event handler that displays server response to the console callback = function(sender, args) { console.log(args.Response); }; // Send query for workbook generation prxMdService.generateWbk(report, callback);
After executing the example the browser console displays a JSON object containing server response for workbook generation.
See also: