refresh (args);
args. Parameters that determine what should be refreshed.
The refresh method refreshes component in accordance with the metadata.
To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component), and also add the following code in the handler, that processes document opening event:
var tsPanel = workbookBox.getDataView()._TabStatPanel; tsPanel.expand(); var refreshStatButt = new PP.Ui.Button({ ParentNode: document.body, //DOM parent node Content: "Refresh", //Text Click: PP.Delegate(onClickRefreshStat) }); function onClickRefreshStat() { wbk.setStatCorrTabSheetSource(null); wbk.setStatCoeffTabSheetSource(null); wbk.setStatWeightsTabSheetSource(null); tsPanel.refresh(); }
After executing the example the Refresh button is placed in the HTML page. Open the statistics panel by clicking the Statistics button. On clicking the Refresh button the Equation, Characteristics, Correlation Matrix and Weights Matrix tabs are hidden from the statistics panel. To make these tabs available, select a Linear Regression series in the workbook. To add such a series to the workbook, select two non-calculated series, next choose Linear Regression in the Regession group of the Calculations tab, or choose a series with the Baxter-King Filter formula type. To add such a series to the workbook, select any non-child series in the workbook and choose the Baxter-King Filter option in the Smoothing group of the Calculations ribbon tab.
See also: