getReport();
The getReport method returns modeling container data source.
The method returns a PP.Ms.MBObject.Problem value.
Executing the example requires that a model is opened, and the script given below is started in the browser console.
Determine type of the modeling container loaded to the module, and data source type:
// Get current unit object
var moduleObject = PP.App.getModuleObject();
// Get container loaded into unit
var reportBox = moduleObject.getReportBox();
console.log("Container type: " + reportBox.getTypeName());
// Get data source
var source = moduleObject.getSource();
console.log("Data source type: " + source.getTypeName());
After executing the example the browser console displays type of modeling container loaded to the module, and type of model data source:
Container type: ModelBox
Data source type: Problem
See also: