RevisionMetadataComparisonWizard Constructor

Syntax

PP.TS.Ui.RevisionMetadataComparisonWizard(settings: Object);

Parameters

settings. JSON object that contains values of class properties.

Description

The RevisionMetadataComparisonWizard constructor creates an instance of the RevisionMetadataComparisonWizard class.

Example

To execute the example, the HTML page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component). Create a data validation wizard that compares metadata versions and place it in a dialog:

// Get the Data workbook tool ribbon tab
var dataCategory = workbookBox.getRibbonView().getDataCategory();
// Determine callback function
var onRequestMetadata = function (sender, args) {
    dataCategory.RequestMetadata.fire(dataCategory, args);
};
// Create a dialog of data validation rule by copnaring metadata versions
var revisionMetadataComparisonWizard = new PP.TS.Ui.RevisionMetadataComparisonWizard({
    Source: workbookBox.getSource(), // Determine data source
    RequestMetadata: new PP.Delegate(this.onRequestMetadata, this)
});
// Get DOM tree for this wizard
var dom = revisionMetadataComparisonWizard.getDomNode();
// Set wizard style
PP.addClass(dom, "PPValidationSettingsDlgContent");
// Add the created wizard to the dialog
var dialog = new PP.Ui.Dialog({
    Content: revisionMetadataComparisonWizard,
    Caption: "Metadata version comparison", // Dialog title
    Width: 730, // Dialog width
    Height: 200 // Dialog height	
});
// Display this dialog
dialog.show();

After executing the example the data validation wizard that compares metadata versions is created and placed in a dialog:

See also:

RevisionMetadataComparisonWizard