Script for Embedding file in OBIEE Dashboard

Paste the below mentioned script in the text section in dashboard. Also remember to check the flag for contain HTML Markup.


<IFRAME id="_myframe" src="http://localhost:7780/analyticsRes/SampleApp/common/go/content/doc.pdf" width="900px" height="1000px" scrolling="" frameborder="0"></IFRAME>
<script>
document.getElementById('_myframe').src = "http://" + location.hostname + ":7780/analyticsRes/SampleApp/common/go/content/doc.pdf";
</script>

2 comments: