Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Automatically embedding javascript code in each dashboard

Received Response
21
Views
8
Comments
Rank 2 - Community Beginner

Hi,

We have a javascript code that we'd like to include in every dashboard page of our OBIEE environment. Currently we are doing this by manually embedding it in every dashboard of the server, but it's going to become messy when external developers also have to incorporate their own dashboards.

  • Is there a way to include a piece of javascript code in every dashboard page (or even in every OBIEE page)?

We use OBIEE 12.2.1.0, soon to be 12.2.1.3.

Thanks a lot.

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • Rank 8 - Analytics Strategist

    Don't believe you can do that without hacking the core product, which you don't want to do as that would invalidate your license agreement with Oracle.

    Your only option is manual / procedural.

    Though manual could be facilitated by having a standard text area which you tell all developers must be included in every dashboard page, with the text area having your javascript.

    What are you trying to achieve?

  • Rank 2 - Community Beginner

    Our approach is having a standalone analysis which only includes a narrative view with the embedded script. Then, each dashboard includes the analysis at the top of each page.

    The script uses jQuery to replace the single dashboard name header with the complete list of dashboards present in the current _portal folder, along with <a> links to each one. Thus, users can navigate to related dashboards in a similar fashion to the dashboard page navigation bar.

  • Rank 2 - Community Beginner

    I guess Robert's implicit question is:

    Just what are you trying to achieve that you need to have this in the first place?

  • Rank 8 - Analytics Strategist

    Yes, that is what I was trying for.... and failing obviously! 

  • Rank 2 - Community Beginner

    The scope is described in the previous comment: essentially, we have a heavily customized style and the dashboard header is as follows:

    firefox_2018-03-05_13-18-07.png

    The user can access all the dashboards present in the current "_portal" folder as well as the pages under the dashboard.

    The script is already working, it's just that we were wondering if there was a way of simplifying the process of enabling it on every dashboard.

  • Rank 8 - Analytics Strategist

    And your customisation does not cause any issues with the standard security model?

    i.e. What happens when I as a user do not have rights to access 'This is DB2'?

  • Rank 2 - Community Beginner

    The script imitates the behavior of the dashboard menu and requests + parses the "getDashboardList" json from the server, so the permissions set in the catalog are adopted in this custom header. Basically, it plays by OBIEE's own rules.

    Developers can then restrict access to certain dashboards by adjusting the permissions in the catalog.

  • Rank 8 - Analytics Strategist

    Sounds good, but other than just using the off the shelf dashboard functionality, which you quite obviously do not want to do, then I fear my original answer stands, there is no magic bullet for this.

Welcome!

It looks like you're new here. Sign in or register to get started.