Showing posts with label Logos. Show all posts
Showing posts with label Logos. Show all posts

Oracle BI EE 10.1.3.3/2 – Changing logos in the Answers Title View

We had a question in one of our forums today, wherein the question was “How do we add a custom picture as a logo to a reports Title View?”. Though it is very much documented, i am not sure whether it works the same way as documented. Lets see how to go adding a custom oracle logo to the Answers Title View. The first step that one would have to do is, copy the image to 2 folders.
1.   {OracleBI}\web\res\app\s_oracle10\images
2.   {OracleBI}\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\images
I am assuming that you are using the default style of s_oracle10. Restart your presentation services and the OC4J.Then open a report where you would like to add the image to and click on the edit title view.
      
In order, to use the images in the title view, one would have to enter the relative path of the image that we just copied. It would look like this
fmap:images/oralogo_small.gif
fmap is a keyword and is case sensitive. Then we are good to go. Let me know if anyone has got their title views working by following the documentation.
      

How To Change Title Logo Based On User Selected Value


Use Narrative view with formatting and then Presentation variable.
For Customer = AMERICAN EXPRESS
For Customer = FORD
First one here is TITLE view, tried using the presentation variable in Title View Logo but that didn’t
work. Second one is a narrative view with exact same HTML formatting as Title view, here pv work fine.
Here is the code(you can copy HTML from View Source). Put Narrative on the top and don’t use title view
<table class=”TitleTable” cellspacing=”0″ style=”" width=”100%”><tr><td class=”TitleLogo” style=”" rowspan=”4″><img border=”0″ src=”/analytics/res/s_oracle10/images/@{pvCustomer}.jpg”></td><td class=”TitleCell” style=”" title=”">Performance Summary – @{pvCustomer}</td></tr><tr><td class=”TitleNameCell” style=”" title=”"></td></tr></table>

All Resource files at one place


Many times I have confused to use fmap :)
For suppose I have placed html file in images folder (OracleBI\web\app\res\s_oracle10\images) and tried accessing using ‘fmap: images/help.html’ this was pointing me to wrong url http://localhost/analytics/Missing_images/help.html suppose to be http://localhost/analytics/images/help.html.
Then I have realized each and every resource folder has specific purpose in context to fmap usage i.e. if you want to place any image file then you need place it in only images folder.
If you want to place any help files we need to place these in “help” folder, by default help folder will not be there so create a help folder under OracleBI\web\app\res\s_oracle10 then keep what ever web file need.

But suppose you want to refer doc file as help file, then this is not possible using “fmap:help/help.doc”

If suppose you have dev, test, prod servers and you are doing an incremental releases then you need to look for all resource folders for any change at each release migrating from one server to other server.

To avoid all above problems its better to manage all resource files in one folder (virtual directory) local to BI server and access resource files from that url.

How to do that?
This method works well with IIS.

Create a virtual directory; this can be in three ways
Way 1:
1) start – run—inetmegr
2) locate analytics web folder
3) Right click – new – select virtual directory
4) Follow GUI
5) Alias as “ObieeResourcesFiles” or what ever name --next
6) Choose a folder to place all resources
7) Say next next
8) In 6th step folder place all resource files needed.

Way 2:
1) Go to C:\inetpub\wwwroot
2) Create a folder “ObieeResourcesFiles”
3) Restart iis services.
4) Place your resource files into this folder

Way 3:
1) Create a folder “ObieeResourcesFiles”
2) Right click folder select properties
3) Goto web sharing tab select bullet Share this folder.
4) Say okay, place all resource files here.

Now goto IIS manager you will be able to see your resource files in folder “ObieeResourcesFiles” in this directory locate any file – right click—select Browse, corresponding file will be opened in internet explorer copy that url paste it in where ever required in report.
Url look like http://localhost/virtualdirectory/resourcefile
Sample: http://localhost/ObieeResourcesFiles/Help.htm

Following image shows how it works.

Hope it helped you.