Purpose
In this tutorial, you learn how to deploy analyticsRes, and customize and develop skins, styles, and messages to change the overall appearance of Oracle Business Intelligence 11g (Oracle BI EE 11g).
Overview
Oracle BI EE 11g's UI is generated by using scripts and is therefore highly customizable. The "look and feel" is controlled by skins, styles, and messages. Skins define the UI chrome (visible graphic features) outside the home and dashboard area. A prime example of chrome or skins is a toolbar. Styles control the appearance of a dashboard and its various views, such as the font style and font color within a pivot table view. Messages store the text for various UI elements (for example, brand name).
Oracle BI EE 11g is shipped with two default styles: blafp (browser look-and-feel plus) and fusion (FusionFX)—both found in the <ORACLE_HOME>/bifoundation/web/app/res directory. This tutorial uses these default styles to provide a starting point to build the custom style and skin that you want to deploy.
Software Requirements
The following is a list of software requirements:
Oracle BI EE 11.1 or later must be installed along with the default samples, Sample Sales Lite.
Oracle WebLogic Server (WLS) 11.1 or later must be the default application server to work in tandem with Oracle BI EE.
The eden zip file must be downloaded from this link.
The testfile.zip must be downloaded from this link.
A text editor (such as WordPad or Notepad) must be installed.
Mozilla Firefox 3.6 or higher is the preferred browser. Caution: If you use Internet Explorer, you may not be able to see some of your style sheet changes.
Prerequisites
Before starting this tutorial, you should:
Have the proper permissions for installing and configuring Oracle BI EE and WLS on your company's system
Have downloaded the testfile.zip file to your local hard drive, unzipped, and copied the test.txt file to<ORACLE_INSTANCE>/bifoundation/OracleBIPresentationServicesComponent/coreappplication_obips1/analyticsRes on your local hard drive
Have downloaded the sample eden.zip file to your local hard drive, unzipped, and copied the Eden subordinate directories to <ORACLE_INSTANCE>/bifoundation/OracleBIPresentationServicesComponent/coreappplication_obips1/analyticsRes
Have the Home page as your starting page in Oracle BI EE. Depending on what has been configured as your starting page, you might be presented with the Home page or My Dashboard page when you sign in to Oracle BI EE. If your starting page is My Dashbaord, you can always navigate to the Home page by clicking the Home page link on the global header.
Have some familiarity with creating analyses and dashboard pages by using Oracle BI EE
Note: Screen captures for this tutorial were taken in a Windows XP Professional environment; therefore, Start menu options will vary.
Deploying analyticsRes and Developing a Custom Skin
Before you can begin to customize the appearance of Oracle BI EE, you must create a directory to house the customizations, which can then be accessed by Oracle Business Intelligence Presentation Services (Presentation Services). Presentation Services generates the UI for the Analysis Editor and dashboards, which visualize data from Oracle BI Server, the core server behind Oracle BI. Various application servers have their own ways of exposing static directories. The steps below allow you to expose the static directory within WLS by deploying it as a J2EE application.
Note: Default styles and skins located in the <ORACLE_HOME>/OracleBI1/bifoundation/web/app/res directory should not be modified because potentially it can be overwritten with any upgrade or new installation.
Exposing a Static Directory in WebLogic Server
|
Deploying a Custom Skin
After exposing the analyticsRes file to WLS successfully, you can now use this directory to develop custom skins.
To customize the skin for Oracle BI EE, perform the following steps:
Deploying a Custom Style
For this topic, you use the s_Eden style directory that you previously copied to<ORACLE_INSTANCE>/bifoundation/OracleBIPresentationServicesComponent/coreappplication_obips1/analyticsRes and make modifications to two style sheets.
You begin this topic by creating a simple analysis and adding it to My Dashboard. Adding an object to the dashboard will make viewing your style changes easier.
To begin building your dashboard and customizing the styles for My Dashboard and an analysis, perform the following steps:
1 . | Open a browser window and log in to Oracle BI EE as you did above. From the Home page, click New > Analysis. |
---|---|
2 . | From the Select Subject Area dialog box, select Sample Sales Lite. The Analysis Editor appears. |
3 . | In the Subject Areas pane, expand Products and double-click Products Hierarchy. Products Hierarchy appears in the Selected Columns pane. |
4 . | Similarly, add Per Name Year from the Time folder and Revenue from the Base Facts folder. The Selected Columns pane should look like this: |
5 . | a. Click the Results tab. Your Pivot Table view appears. Note that the default view for hierarchical columns is pivot table. b. Click the red X for the Title view to remove it from your analysis. |
6 . | Click the Save icon () and save your analysis as "My analysis" in the My Folders directory. |
7 . | Next, you add the analysis to My Dashboard. On the global header, click Dashboards > My Dashboard. My Dashboard appears. |
8 . | Click the Page Options icon () and select Edit Dashboard. The Dashboard Editor appears. |
9 . | a. Expand My Folders in the Catalog pane and drag "My analysis" to the Drop Content Here canvas. The Dashboard Editor should look like the following image: b. Save your dashboard. Click the Save icon (). |
10 . | You are now ready to change the stylesheet for your dashboard. From the Tools menu (), select Dashboard Properties. The Dashboard Properties dialog box appears. |
11 . | a. In the General Properties grouping, select Eden from the Style drop-down list. b. Click OK and then click Save and Run. The Eden-style My Dashboard appears. |
12 . | a. Navigate to<ORACLE_INSTANCE>/bifoundation/OracleBIPresentationServicesComponent /coreappplication_obips1/analyticsRes/s_Eden/b_mozilla_4and open portalcontent.css. b. Change the MY Dashboard outer border. Locate the .PortalBodyInteractive class and change the border color from #006600 (gray) to #ff00ff (pink). |
13 . | a. Change the MY Dashboard inner border. Locate the .DashboardPageContentOuterDiv class and change the border color from #daf1de (light green) to#9999ff (lavender). b. Save the file. |
14 . | Restart Presentation Services once again, open Oracle BI EE, clear the cache in the browser, and navigate to My Dashboard to view the changes. Your dashboard should look similar to this: |
15 . | a. Navigate to<ORACLE_INSTANCE>/bifoundation/OracleBIPresentationServicesComponent /coreappplication_obips1/analyticsRes/s_Eden/b_mozilla_4and open views.css. b. Locate the .PTChildPivotTable class. Beneath this class, locate the classes .PCH0 through .PCH10. Change the font color from #C9CBD3 (light gray) to#ff00ff (pink) and the interior border color (for the variable headers) from #979991 (dark gray) to #ffff66 (yellow) as indicated in the image below. c. Save the file. |
16 . | Restart Presentation Services once again, open Oracle BI EE, clear the cache in the browser, and navigate to My Dashboard to view the changes. Your dashboard should look similar to this: You can continue to experiment with the different classes within the Eden style sheets. Each style sheet manages different aspects of the display. |
Deploying Custom Messages
There may be occasions when you wish to customize messages that appear to your users. For example, if you enforce constraints in your database, you might want to provide a custom error message to display to the end user when one of those constraints is violated. Another example is the use of a write-back template. The write-back template is an XML-formatted file that contains SQL statements, which are needed to insert and update records in the write-back table and columns that you have created. You can create multiple write-back templates, customizing each one for the fields that are used in each specific analysis. You use the same analyticsResdirectory to store custom messages and write-back templates.
The Eden zip file provides a sample write-back XML file (testtemplate) and a sample message file (l_en). These are located in<ORACLE_INSTANCE>/bifoundation/OracleBIPresentationServicesComponent/coreappplication_obips1/analyticsRes/customMessages.
1 . | Typically, you or your administrator would create a directory named customMessages within analyticsRes where you store the XML templates. To create a language-dependent message file, you must also create a folder for the required language—for example, a folder named l_en, representing the English language. You would then create an XML file containing the instructions for the application (for example, an analysis that allows write-back) or a message that you wish the end users to see (the constraint example above). The XML code is structured similarly to the following:This sample code provides a label, namely Report Center, for the message name (kmsgHeaderBIBrandName) that is stored within the CompanyName.xml file. By using this code, you can change the brading for your sample dashboard. a. Navigate to<ORACLE_INSTANCE>/bifoundation/OracleBIPresentationServicesComponent /coreappplication_obips1/analyticsRes/customMessages/l_en/messagesand open CompanyName.xml. b. Select the text Report Center. |
---|---|
2 . | a. Change the text to Analytic Dashboards. b. Save the file. |
3 . | Restart Presentation Services once again, open a browser window, and navigate to the Oracle BI EE Sign In window. You immediately notice the new branding for the page: |
Summary
Using your own skin, styles, and messages allows you to customize the Oracle BI EE environment to suit your business requirements.
In this tutorial, you should have learned how to:
Expose the analyticsRes directory by deploying it as a J2EE application
Modify an Oracle BI EE UI skin
Modify an Oracle BI EE UI style
Create a customMessages file