Creating an Embedded Application Object
This applies to: Managed Dashboards, Managed Reports
The embedded application object is used to control the Symphony embedded application. Create one by calling the following method, passing a container HTML element for the application (such as a div element):
dundas.embed.create(domElement, embedOptions)
The embedOptions
argument is optional and allows you to set any desired properties while creating the object instead of setting those properties on it later.
The example below shows how to create and load the Symphony embedded application object.
...
<head>
<script src="/Scripts/Embed/dundas.embed.min.js" type="text/javascript" ></script>
</head>
...
<body>
<!-- Create the container for the embedded application -->
<div id="dundasBI2" />
<script type="text/javascript">
var dundasBIUrl = 'https://placeholder.dundas-bi-url.com/';
document.addEventListener("DOMContentLoaded", function (event) {
var embedOptions = {
dundasBIUrl: dundasBIUrl,
controllerType: dundas.embed.ControllerType.DASHBOARD,
fileSystemId: 'f22ce55f-04cd-4207-9dd7-2cadeb44b96c',
viewOptions: dundas.embed.ViewOptions.TOOLBAR_ONLY,
parameterValues: []
};
// Create the embedded application object.
var dundasApp = dundas.embed.create(
document.getElementById('dundasBI2'),
embedOptions
);
// Load the application
dundasApp.load();
});
</script>
</body>