Kap.Dashboard.getOpenDialog

Syntax

getOpenDialog ();

Description

The getOpenDialog method returns dialog box for opening an object from repository.

Comments

The method returns an instance of the PP.Ui.MetabaseOpenDialogclass.

Example

To execute the example, the page must contain a dashboard constructor named kapBox. The BODY tag must contain a DIV element with the "but" identifier. Add buttons clicking which will open dialog boxes used to save and open a repository object:

var openDialogButton = new PP.Ui.Button({
ParentNode: "but",
Content: "Open",
Click: function () {
kapBox.getOpenDialog().show();
}
});
var saveDialogButton = new PP.Ui.Button({
ParentNode: "but",
Content: "Save",
Click: function () {
kapBox.getSaveDialog().show();
}
});

After executing the example the Open and Save buttons are placed in the page. Clicking these buttons opens dialog boxes for opening and saving repository object.

See also:

Kap.Dashboard