Oracle Analytics Cloud and Server

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

Javascript and onload in a dashboard

Received Response
1
Views
2
Comments
dirkt
dirkt Rank 2 - Community Beginner

I am trying to fire an onload event that would run javascript to customize some CSS whenever a dashboard is run. But I can't figure out what to file to modify. I would need to add the javascript and then call the javascript function from the onload event. If you do this from the home page it's pretty simple. One way top do that would be to modify the file %OBIEE_HOME\bi\bifoundation\web\msgdb\pages\bieehome\bieehome.htm to call the js in NQOnLoadEvent, after adding the js to D:\obiee\user_projects\domains\$($Env:COMPUTERNAME)\servers\bi_server1\tmp\_WL_user\analytics\za01ic\war\res\b_mozilla\common.js. But how to do it from a dashboard? I am thinking that all of the html is dynamically generated so there is no way to make this change in a static file somewhere.

Has anyone done something like this?

OBIEE 12.2.1.1.0

Windows Server 2012 R2

Answers

  • Sorry but ... aren't you looking for a custom style/skin?

    Because doing that you can customize everything and then you set that custom as the default for the system or you select the style at the dashboard level.

    The good thing with this approach: customisations will survive patching etc. (as long as you do it the right way!)

  • dirkt
    dirkt Rank 2 - Community Beginner

    No, I'm already doing that. What I'm trying to do is modify the CSS based on the date instead of having to update a file in the custom skin. So when the beginning of the month rolls around the previous month will show as a different color. Currently I am having to update the CSS file in the skin and update the deployment. The javascript would do this dynamically.