TrendWizard Constructor

Syntax

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

Parameters

settings. JSON object that contains values of class properties.

Description

The TrendWizard constructor creates an instance of the TrendWizard 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 wizard that validates data by comparing time series trends and place it in a dialog box:

/* Create a data validation wizard by means of comparison of time series trends */
var trendWizard = new PP.TS.Ui.TrendWizard({
    Source: workbookBox.getSource() // Data source
});
// Get and load database hierarchy to dialog
var metaHierarchy = workbookBox.getSource().getHier();
trendWizard.setHierarchy(metaHierarchy, true);
// Get DOM tree for this wizard
var dom = trendWizard.getDomNode();
// Set wizard style
PP.addClass(dom, "PPValidationSettingsDlgContent");
// Add the created wizard to dialog
var dialog = new PP.Ui.Dialog({
    Caption: "Compare trends",
    Content: trendWizard,
    Width: 735, // Dialog width
    Height: 150 // Dialog height
});
// Display this dialog
dialog.show();
// Get object breadcrumb for the wizard
var breadcrumb = trendWizard._Breadcrumb;
/* Hide and display again breadcrumb
   to ensure its correct displaying */
breadcrumb.hide();
breadcrumb.show();

After executing the example the data validation wizard that compares time series trends is created and shown in a dialog box:

See also:

TrendWizard