OutputSerieWizardView.CurrentState

Syntax

CurrentState (selectedSerie, fireEvent);

Description

The CurrentState property sets state of the component of output series selection wizard.

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 outputSerieWizardViewButt = new PP.Ui.Button({
	ParentNode: document.body, //DOM parent node
	Content: "OutputSerieWizardView", //Title      
	Click: PP.Delegate(onClickOutputSerieWizardView)     
}); 
function onClickOutputSerieWizardView()
	{
		//Get panel that must contain output series select wizard
		var parametersPanel = workbookBox.getPropertyBarView().getParametersPanel();
		//Get output series select wizard
		var outputSerieWizard = parametersPanel._OutputSerieWizard;
		//If the selected series has formula type that differs from formula types contained in the PP.TS.UI.TsFormulaKind enumeration,
		//a message appears saying that output series wizard cannot be applied to the selected series
		if (!outputSerieWizard) 
			{				 
				alert('Output series wizard cannot be applied to the selected series. \n Select another series');				 
			}
		else
			{
				//Get CurrentState of  output series selection wizard
				var state = outputSerieWizard.getCurrentState();
				//Output output series name
				alert('Output series: ' + state.inputSerie.n);
			}
	}

After executing the example the WorkbookBox component and a button named OutputSerieWizardView are placed in the HTML page. 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:  

Open the Parameters panel in the Series tab of the side panel, click the OutputSerieWizardView button and select any of the output series parameters. After that a message containing selected parameters appears in the screen. If a type other than the above mentioned is selected, clicking this button shows the following message: Output series selection wizard cannot be applied to the selected series. Select another series.

See also:

OutputSerieWizardView