Dashboard.getSource

Syntax

getSource();

Description

The getSource method returns dashboard data source.

Comments

The method returns object of the PP.Mb.Object 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:

console.log("Moniker: " + kapBox.getMoniker() + "\nSource name: " + kapBox.getSource()._Name);

After executing the example the console displays message with moniker and name of the opened dashboard.

See also:

Dashboard