Embed Oracle Analytics Content into a Custom Application that Uses Oracle JET
If the custom application uses Oracle JET, then the embedded Oracle Analytics content extends the application with the component it needs.
Before you begin to embed analytics content, confirm that the custom application uses the same major version of JET that Oracle Analytics uses.
To find the version of JET that Oracle Analytics uses, log into Oracle Analytics, open the browser console, and run this command:
requirejs('ojs/ojcore').versionThis procedure uses an example embedding application named OAJETAPP.
Complete Example
<!-- OAJETAPP/src/index.html -->
<script
src="https://<instance>.analytics.ocp.oraclecloud.com/public/dv/v2/embedding/jet/embedding.js"
type="text/javascript"></script>
```
```html
<!-- OAJETAPP/src/js/views/dashboard.html -->
<div class="oj-hybrid-padding"
style="position: absolute; width: calc(100% - 40px); height: calc(100% - 120px)">
<h3>Dashboard Content Area</h3>
<oracle-dv
id="oracle-dv"
project-path="/Shared Folders/embed/test-embed">
</oracle-dv>
</div>
```
```javascript
// Initialize after the oracle-dv element is present.
oracle.oa.embedding.ready().then((application) => {
application.applyBindings();
});