Saturday, 25 February 2012

Custom URL on Dashboard



As John said, this functionality is moved to header.js. In 11G all the hand-shakes and/or defnitions are through XML. To achieve the custom URL ex: adding a

new link under help menu:

1) Edit saw.header.xml from Oracle_BI1/bifoundation/web/msgdb/common.
2) Create a new XML tag, and give some name. For ex: <resource id="kmsgHeaderCustomURL" />
3) Edit saw.header.xml from /bifoundation/OracleBIPresentationServicesComponent/coreapplication_obips1/msgdb/l_en/customMessages/uicmsgs, and give some TEXT

NAME. <WebMessage name="kmsgHeaderCustomURL"><TEXT>URL NAME</TEXT>
4) Edit header.js from '/Oracle_BI1/bifoundation/web/app/res/b_mozilla' folder.
5) Add d.push(new obips.ContextMenu.MenuOption(saw.header.getLocalizedString("kmsgHeaderCustomURL"),"",null,new obips.Callback(this,this.onCustomURL)));
6) Now define this onCustomURL function below:
saw.header.SearchBar.prototype.onCustomURL=function(){saw.header.Menubar.getManager().hidePopupPanel();obips.launcher.launchNewWindow("http://oracle.com","_b

lank")}
7) Save and re-deploy.

Best advice is to create customMessage folder and making these changes. For ex: Instead of chaning it in ORACLE_BI1, create a new "customMessages" folder if

doesn't exist under /BI_Instance/bifoundation/OracleBIPresentationServicesComponent/coreapplication_obips1/msgdb/ and copy the step (1) saw.header.xml to

this folder and make the necessary changes. Now for step (2) - create a new folder

/BI_Instance/bifoundation/OracleBIPresentationServicesComponent/coreapplication_obips1/msgdb/l_en/customMessages and do the the same.

If you want to avoid step (7), then manually copy the changed header.js to

/user_projects/domains/BIfoundation/servers/bi_server1/tmp/_WL_user/analytics_11.1.1/$RANDOMFOLDERNAME$/war/res/b_mozilla and bounce the services.

For ref: Please also refer to this thread -> https://forums.oracle.com/forums/thread.jspa?threadID=2252212

No comments:

Post a Comment

Thanks to Comment
--Add--