ControlChanged(sender, args);
sender. Event source.
args. Event information.
The ControlChanged event occurs after changing a parameter in the wizard.
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:
metabase.EndRequest.add(PP.Delegate(function(){ if(workbookBox.getPropertyBarView().getParametersPanel()) { //Add parameters panel expand event handler, in order if there is output series wizard, //to add parameter change event handler to the wizard in the output series wizard workbookBox.getPropertyBarView().getParametersPanel().Toggled.addOne(PP.Delegate(addHandler)); } })); //Parameters panel expand event handler function addHandler() { if(workbookBox.getPropertyBarView().getParametersPanel()._OutputSerieWizard) { //Add parameter change event handler in output series wizard workbookBox.getPropertyBarView().getParametersPanel()._OutputSerieWizard.ControlChanged.addOne(PP.Delegate(onControlChanged)); } } //parameter change event handler in output series wizard function onControlChanged() { alert("Parameter change event occurred in output series wizard"); }
To execute the example, in the table select a series that has one of the formula types given below in the PP.TS.UI.TsFormulaKind enumeration:
Linear regression
Linear regression (instrumental variables estimation)
Non-linear regression.
Error correction model.
Open the Parameters panel in the Series tab of the side panel and select any of the given output series parameters. Parameter change event is fired and appropriate message appears in the screen.
See also: