MissingMetadataWizard.CurrentState

Syntax

CurrentState: Object

Description

The CurrentState property defines current settings for the Missing Metadata validation wizard.

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 MissingMetadataWizard class named missingMetadataWizard (see MissingMetadataWizard Constructor). Determine new settings for data validation wizard that validates data by comparing it with time series database:

// Determine wizard settings
var state = {
    // Find missing data in observation metadata
    "calcType": PP.TS.MsCalculationType.Pointwise,
    "attributes": {
        "its": {
            "it": [{
                    /* As observation metadata
                     specify the Countries attribute */
                    "id": "COUNTRIES", // Attribute identifier
                    "k": 10 // Attribute key
                }
            ]
        }
    }
};
// Apply these settings
missingMetadataWizard.setCurrentState(state);

After executing the example the wizard detects missing data that corresponds to the Countries observation attribute:

See also:

MissingMetadataWizard