Dashboard.getOpenDialog

Syntax

getOpenDialog();

Description

The getOpenDialog method returns the dialog box for opening repository object.

Comments

The method returns instance of the PP.Ui.MetabaseOpenDialog class.

Example

To execute the example, make sure that the repository contains a dashboard with the 88665 key.

Create an HTML page with example of placing the KapBox component and execute the following operations:

  1. Open the dashboard with the 88665 key:

kapBox.open({
    Key: 88665
});
  1. Execute the following in the console:

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 added, clicking which open appropriate dialog boxes to open another dashboard and to save repository object.

See also:

Dashboard