Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can I execute JavaScript functions automatically across all dashboards?

malcolmcareyApr 24 2017 — edited Apr 27 2017

I've tried to search around on this topic quite a bit and haven't found exactly what I'm looking for yet, but sorry if this question already exists somewhere.

Current Situation:

We have several dashboards and would like to apply some custom styling to each page using JavaScript. I've written a couple lines and then added it to a text element on a dashboard with HTML markup, and it is working fine. Now, in an effort to avoid adding this script and text element to every single dashboard (and every future dashboard), I tried researching ways to add this function in one place and have it execute across all dashboards on page load. I ended up tacking on this function to the end of the common.js file:

window.onload = function(){...};

However, after loading the page, the JavaScript either is not executing or it just didn't work. Every time I've seen someone add functions to the common.js file, it is as a function definition and then the function is called with a text element later in the dashboard.

So my question is am I able to add a JavaScript function to common.js (or another server JavaScript file) and have it automatically run when each dashboard loads?

Thanks for the help

EDIT: We are using OBIEE 12c.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details