OBIEE 12c: How to Add a Custom Browser Script?
(Doc ID 2575832.1)
Last updated on JULY 11, 2022
Applies to:
Business Intelligence Suite Enterprise Edition - Version 12.2.1.0.0 and laterBusiness Intelligence Server Enterprise Edition - Version 12.2.14.200714 to 12.2.14.200714 [Release 12g]
Information in this document applies to any platform.
Goal
You want to add a custom browser script. As per the instructions in the Integrator's Guide:
-
The target JavaScript functions that Actions use to Invoke a Browser Script call are hosted in the UserScripts.js file found in the following location:
MW_HOME/user_projects/domains/bifoundation_domain/servers/bi_server1/tmp/_WL_user/analytics_11.1.1.2.0/<installation dependent folder>/war/res/b_mozilla/actions/UserScripts.js
- You must backup the UserScripts.js file and reinstate it after every patch or upgrade, otherwise it will be replaced with a default file, and you will lose your custom JavaScript functions.
And you are running into a couple of issues:
- There is no analytics_11.1.1.2.0 directory under MW_HOME/user_projects/domains/bifoundation_domain/servers/bi_server1/tmp/_WL_user
- You don't want to lose your functions every time you patch or upgrade
This document describes how to overcome these two issues.
Please Note the following disclaimers:
- This is a customization that is out of the scope of the current product documentation. Only customization in official documentation or official technical brief are supported.
- Issues related to this may have to be reproduced with a default | non-customized installation.
- You are responsible for backups and maintenance of the customization: Unless specifically noted, patching may overwrite your changes.
- Please make the appropriate backups before editing and be careful when editing the files.
- Tip: It is better to comment out the original code vs. removing it.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |