RevisionMetadataComparisonWizard.CurrentState

Syntax

CurrentState: Object

Description

The CurrentState property defines current settings for the data validation wizard that compares metadata versions.

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 RevisionMetadataComparisonWizard class named revisionMetadataComparisonWizard (see RevisionMetadataComparisonWizard Constructor), and the workbook data source must contain observation attribute with the ID COUNTRIES and the key 10. Determine new settings for the data validation wizard that compares metadata versions:

// Determine new wizard settings
var state = {
    // Specify that value increased
    "compType": PP.TS.ValidationRevisionComparisonType.Increase,
    // Compare observation metadata
    "calcType": PP.TS.MsCalculationType.Pointwise,
    "attributes": {
        "its": {
            "it": [{
                    id: "COUNTRIES",
                    k: 10 // Attribute key
                }
            ]
        }
    }
};
// Apply these settings
revisionMetadataComparisonWizard.setCurrentState(state);

After executing the example data revision is no more specified in this wizard. Also it was found that the value has increases and the comparison is based on metadata of the Countries observation attribute:

See also:

RevisionMetadataComparisonWizard