CustomAnalysisWizard.CurrentState

Syntax

CurrentState: Object

Description

The CurrentState property determines current settings for the data validation wizard that validates data by custom time series analysis.

Comments

Use the setCurrentState method to set the property value, and the getCurrentState method to get the property value. Property value cannot be set from JSON.

Example

To execute the example, the HTML page must contain an instance of the CustomAnalysisWizard class named customAnalysisWizard (see CustomAnalysisWizard Constructor). Determine new settings for the data validation wizard that validates data by performing custom time series analysis:

// Determine new settings of wizard
var state = {
    // Apply the rule to observations
    "calculationType": PP.TS.MsCalculationType.Pointwise,
    "kind": "Simple",
    "transform": {
        // Calculation method - pointwise (forward)
        "calculationDirection": PP.TS.Ui.TsSpliceDirection.Forward,
        "calculationType": PP.TS.MsCalculationType.Pointwise,
        // Expression
        "formulas": {
            "its": {
                "it": [{
                        "k": 0, // Expression key
                        // Use deterministic calculation method
                        "kind": PP.TS.Ui.TsFormulaKind.Deterministic,
                        "method": {
                            "deterministic": {
                                // Expression text
                                "expression": "{Billions of National Currency|Russia|FMB[t]}"
                            }
                        }
                    }
                ]
            }
        }
    }
};
// Apply these settings
customAnalysisWizard.setCurrentState(state);

After executing the example, validation rule in this wizard is applied to observations, pointwise forward calculation method is set, and the expression text says {Billions of National Currency|Russia|FMB[t]}:

See also:

CustomAnalysisWizard