CointegrationEquationWizardView.CurrentState

Syntax

CurrentState: Object;

Description

The CurrentState method determines currents state of the settings panel component for the Error Correction Model.

Example

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 getCurrentStateButt = new PP.Ui.Button({
	ParentNode: document.body, //DOM parent node
	Content: "Get Current State", //Text
	Click: PP.Delegate(onClickGetCurrentState)     
}); 
function onClickGetCurrentState()
	{
		//Get the panel, in which must contain settings panel for the Error Correction Model method
		var parametersPanel = workbookBox.getPropertyBarView().getParametersPanel();
		//Get the settings panel of the Error Correction Model method
		var cointegrationEquationWizard = parametersPanel._CointegrationEquationWizard;
		if (!cointegrationEquationWizard) return alert('settings panel of the Error Correction Model method cannot be applied to the selected series \n select another series');		
		//Get the CurrentState  settings panel of the Error Correction Model method
		var state = cointegrationEquationWizard.getCurrentState();
		alert(JSON.stringify(state));
	}

After executing the example the page will contain the WorkbookBox component and a button named Get Current State. To execute the example, select several series in the table, next click the Regression button in the Calculations ribbon tab and select Error Correction Model in the drop-down menu. Next click the Get Current State button. As the result a message that contains current parameters of the Error Correction Model method appears in the screen.

See also:

CointegrationEquationWizardView