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.