getSource ();
The getSource method returns source of open dashboard.
The method returns an object of the PP.Mb.Object class.
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 a button clicking which shows a message containing name of open dashboard's source:
var infoButton = new PP.Ui.Button({ ParentNode: "but", Content: "Information", Click: function () { alert("Moniker: " + kapBox.getMoniker() + "\nData source: " + kapBox.getSource()._Name); } });
After executing the example the Information button is placed in the page. On clicking this button the screen shows a message that contains name of the source for open dashboard.
See also: