RevisionComparisonWizard.CurrentState

Syntax

CurrentState: Object

Description

The CurrentState property determines current settings for data validation wizard that compares data 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 RevisionComparisonWizard class named revisionComparisonWizard (see RevisionComparisonWizard Constructor). Determine new settings for the data validation wizard that compares data versions:

// Determine new wizard settings
var state = {
    // Change type - "Value decreased"
    "compType": PP.TS.ValidationRevisionMetadataComparisonType.Decrease,
    "value": {
        "compOper": PP.TS.ValidationComparisonOperator.LessOrEqual,
        "percentage": True,
        "value1": 3
    }
};
// Determine new settings
revisionComparsionWizard.setCurrentState(state);

After executing the example the "Nothing is selected" value is set in the Data Revision field of this wizard, the Changes Type group shows: "Value has decreased", comparison operator is Less Than or Equal, and the value is set to 3%:

See also:

RevisionComparisonWizard