The user interface in Oracle BI EE is generated by using scripts and is therefore highly customizable.
The look-and-feel is controlled by skins and styles. Skins define the user interface chrome (visible graphic features) outside the home and dashboard area.
Oracle BI EE is shipped with several styles, such as Skyros, blafp (browser look and feel), and FusionFX (fusion applications).
The following sections provide information about how to customize the web user interface:
Skins and styles change the way an interface looks.
You can control the way that the interface for Oracle BI EE is displayed to users by creating skins and styles. The primary difference between skins and styles is that styles only apply to dashboard content, whereas skins apply to every other part of the user interface. For example, within Oracle BI EE, skins apply to components that are used in analyses and scorecarding.
You specify the default style and skin in the instanceconfig.xml file. The content designer can then alter certain elements to control how dashboards are formatted for display, such as the color of text and links, the font and size of text, the borders in tables, the colors and attributes of graphs, and so on. See Modifying the User Interface Styles for Presentation Services for additional information.
Styles and skins are organized into folders that contain Cascading Style Sheets (CSS) and images. While skins and styles are typically used to customize the look and feel of analyses and dashboards by providing logos, color schemes, fonts, table borders, and other elements, they can also be used to control the position and justification of various elements by including specialized style tags in the relevant style sheet file. See About Style Customizations for additional information.
Some points to keep in mind as you plan to customize the web user interface.
In Oracle BI Presentation Services, you customize the user interface elements and appearance by modifying styles and skins, not with JavaScript, and you do not modify JavaScript files because the objects and methods in scripts might change, and because these files might be replaced when upgrading.
(In a dashboard, users with the appropriate permissions can customize an individual dashboard section by adding HTML to it. This HTML can include JavaScript. For more information, see Working with HTML Markup in User's Guide for Oracle Business Intelligence Enterprise Edition.)
You can adapt the Oracle BI EE deployment to a particular language. For information, see Localizing Oracle Business Intelligence
.Oracle BI EE ships with various styles, such as blaf (browser look and feel), FusionFX (fusion applications), and Skyros. If you are going to customize the look-and-feel of Oracle BI EE or Oracle BI Publisher, Oracle strongly recommends that you use the custom style provided in the bicustom-template.ear as your starting point.
This custom style is a copy of the Skyros style. See Modifying the User Interface Styles for Presentation Services for additional information.
Most of the common Skyros styles and image files, including the style sheet (master.css), are contained in a master directory. The topic Customizing Your Style describes this directory and its structure in detail.
Within the style sheet, each element (or class) that is available for update is documented by comments.
Other style sheets are also contained within the Skyros style and skin folders. You are not likely to need to update these files unless you are creating an advanced custom skin that provides styles for each detail of the user interface.
When creating your own styles and skins for Presentation Services, you must create CSS, graph.xml, and image files, and then make them available to Oracle BI EE. You can use two approaches to make these files available:
Approach 1: You use the bicustom.ear file to package your files into a single file that can then be easily deployed throughout the nodes in a cluster. This approach is useful when deploying in a clustered environment for scaled-out production systems. See Approach 1: Deploying the "bicustom.ear" File for the First Time?.
To redeploy the bicustom.ear file, see Approach 1: Redeploying the "bicustom.ear" File.
Approach 2: You use a shared file system. This approach is useful when you want to see your changes in Oracle BI EE immediately or when your customizations are outside the Presentation Services firewall. See Approach 2: Deploying Using Shared Folders.
To view the modifications that you made using Approach 2, see Approach 2: Viewing Your Modifications to a Shared Folder.
Enterprise Archive (EAR) files are archive (ZIP) files composed of a specific folder and file structure.
You can create an EAR file using any ZIP tool (for example, 7-zip) and then renaming the ZIP extension to EAR. Oracle provides the bicustom-template.ear file as a starting point.
The bicustom-template.ear file contains a bicustom.war file. Web Archive (WAR) files are also ZIP files composed of a specific folder and file structure. You must update the bicustom.war file within the bicustom-template.ear file to include your custom skin files. The bicustom.war file that is shipped with Oracle BI EE contains an example folder structure to help you get started.
Note:
This approach automatically deploys your custom skin to all nodes in your Oracle BI EE cluster.
To deploy the bicustom.ear file for the first time:
Copy ORACLE_HOME/bi/bifoundation/jee/bicustom-template.ear
to BI_DOMAIN/bidata/components/OBIPS/bicustom.ear
.
Note:
The patch or upgrade process may overwrite the bicustom-template.ear file, but it does not overwrite the bicustom.ear file.
Update the bicustom.ear file.
Extract the bicustom.war file from the bicustom.ear file.
Extract the files from the bicustom.war file.
Edit the files to create your custom style and save your changes. See Customizing Your Style for additional information.
Update the bicustom.war file with your changes.
Update the bicustom.ear file with your new bicustom.war file.
Deploy the bicustom.ear file.
Log in to Oracle Weblogic Server Administration Console (see Managing Oracle Business IntelligenceJava Components Using the Oracle WebLogic Server Administration Console for additional information.)
Click Lock & Edit.
Click Deployments in the Domain Structure region.
Click Install in the Deployments table.
Navigate to the folder containing the bicustom.ear file (by default, this file is located in BI_DOMAIN/bidata/components/OBIPS/
).
Select the bicustom.ear file.
Click Next.
Select Install this deployment as an application.
Click Next.
Select I will make the deployment accessible from the following location.
Click Finish.
Click Save.
Click Activate Changes.
Start the new application.
Click Deployments in the Domain Structure region.
Select the bicustom check box in the Deployments table.
Click Start, and then select Servicing all requests.
Update the instanceconfig.xml file to specify which style and skin to use as the default value of the Styles option in the Dashboard Properties dialog. For additional information about updating styles in a dashboard, see Changing the Properties of a Dashboard and its Pages in User's Guide for Oracle Business Intelligence Enterprise Edition.
If these entries are not present in the instanceconfig.xml file, then fusionFX is the default style. Styles and skins are located in the ORACLE_HOME\bi\bifoundation\web\appv2\res directory.
Open the instanceconfig.xml file for editing, located in:
BI_DOMAIN/config/fmwconfig/biconfig/OBIPS
Include the element and its ancestor elements as appropriate, as shown in the following example:
<ServerInstance> <UI> <DefaultStyle>Skyros</DefaultStyle> <DefaultSkin>Skyros</DefaultSkin> </UI> </ServerInstance>
where DefaultStyle and DefaultSkin are the names of the custom style and skin properties, respectively.
To use the Alta custom style and skin, replace the word Skyros
above with the word Alta
.
Note:
These names must match the names given to the folders containing the style and skin. Do not include underscores. For example: If your folder begins with the characters s_, such as s_Skyros, then omit s_.
Save your changes and close the file.
Restart Presentation Services. See About Managing Oracle Business Intelligence Processes for additional information.
To redeploy the bicustom.ear file, see Approach 1: Redeploying the "bicustom.ear" File.
Enterprise Archive (EAR) files are archive (ZIP) files composed of a specific folder and file structure.
To update your custom skin:
Update the bicustom.ear file. (See Approach 1: Deploying the "bicustom.ear" File for the First Time?.)
Update the deployment.
Log in to Oracle Weblogic Server Administration Console.
Click Lock & Edit.
Click Deployments in the Domain Structure region.
Select the bicustom checkbox in the Deployments table.
Click Update.
Click Finish.
Click Activate Changes.
Click Release Configuration.
Restart Presentation Services.
Note:
If you are changing component values, such as an image or font color in your customized files, you do not need to restart Presentation Services. Additionally, you do need to restart Presentation Services if you make a change to the default skin or style in the instanceconfig.xml file.
Approach 2 is best suited to development or test environments where you want the changes that you make to the CSS and image files in your custom style and skin folders to be visible in Oracle BI EE as soon as possible.
This approach is also used when your customizations are outside the Presentation Services firewall.
In Oracle BI EE, static files are located in ORACLE_HOME\bi\bifoundation\web\appv2
. Web servers have their own ways of exposing static directories that can be located anywhere within their file system, including a shared file system such as clustering. Refer to the documentation for your specific server on exposing static directories.
Note:
See the following documents for full information about how to configure Oracle WebLogic Server to work with web servers such as Apache HTTP Server, Microsoft Internet Information Server (Microsoft IIS), and Oracle HTTP Server:
Using Oracle WebLogic Server Proxy Plug-Ins 12.2.1
Administrator's Guide for Oracle HTTP Server
Create your custom style.
Extract the bicustom.war file from the bicustom-template.ear file.
Extract the contents of the bicustom.war file to a location accessible to Oracle Weblogic Server (for example, c:\custom
).
Edit the files to create your custom style and save your changes. See Customizing Your Style for additional information.
Deploy the custom folder.
Log in to Oracle Weblogic Server Administration Console.
Click Lock & Edit.
Click Deployments in the Domain Structure region.
Click Install in the Deployments table.
Navigate to the folder containing your custom style (for example, c:\custom).
Click Next.
Select Install this deployment as an application.
Click Next.
Select bi_cluster as the deployment target.
Click Next.
Set the name to AnalyticsRes.
Select I will make the deployment accessible from the following location.
Click Next.
Select Yes, take me to the deployment's configuration screen.
Click Finish.
Click the Configuration tab.
Enter /analyticsRes in the Context Root box.
Click Save.
Click OK.
Click Activate Changes.
Click Release Configuration.
Start the new application.
Click Deployments in the Domain Structure region.
Select the analyticsRes checkbox in the Deployments table.
Click Start, and then select Servicing all requests.
Update the instanceconfig.xml file to specify the path that points to your customization, which can then be accessed by Presentation Services.
Presentation Services generates the user interface for the Analysis editor and dashboards, which visualize data from Oracle BI Server, the core server behind Oracle Business Intelligence.
Open the instanceconfig.xml file for editing, located in:
BI_DOMAIN/config/fmwconfig/biconfig/OBIPS
Locate the ServerInstance section.
Include the elements, as shown in the following example:
<ServerInstance> <UI> <DefaultStyle>Skyros</DefaultStyle> <DefaultSkin>Skyros</DefaultSkin> </UI> <URL> <CustomerResourcePhysicalPath>c:\custom\res </CustomerResourcePhysicalPath> <CustomerResourceVirtualPath>/analyticsRes/res </CustomerResourceVirtualPath> </URL> </ServerInstance>
where DefaultStyle and DefaultSkin are the names of the custom style and skin properties, respectively.
To use the Alta custom style and skin, replace the word Skyros
above with the word Alta
.
Note:
The CustomerResourceVirtualPath points to the location entered in the Context Root box.
If you are embedding a Presentation Services' dashboard or report in an ADF application, you must include the SkinMappings element following the DefaultStyle and DefaultSkin elements, as shown in the following example:
<ServerInstance> <UI> <DefaultStyle>Skyros</DefaultStyle> <DefaultSkin>Skyros</DefaultSkin> <SkinMappings> <skinMapping> <biadfSkinFamily>fusion</biadfSkinFamily> <biSkin>FusionFx</biSkin> </skinMapping> <skinMapping> <biadfSkinFamily>blafplus-rich</biadfSkinFamily> <biSkin>blafp</biSkin> </skinMapping> <skinMapping> <biadfSkinFamily>skyros</biadfSkinFamily> <biSkin>Skyros</biSkin> </skinMapping> </SkinMappings> </UI> <URL> <CustomerResourcePhysicalPath>c:\custom\res </CustomerResourcePhysicalPath> <CustomerResourceVirtualPath>/analyticsRes/res </CustomerResourceVirtualPath> </URL> </ServerInstance>
Save your changes and close the file.
Restart Presentation Services.
To view your modifications to a shared folder, see Approach 2: Viewing Your Modifications to a Shared Folder.
Once you have configured your shared folder, you can view the changes to the CSS files and images.
To view your modifications:
Reload the metadata.
In Oracle BI EE, click the Administration link in the global header.
On the Administration tab, click the Reload Files and Metadata link.
Clear the browser's cache. Note that this process is dependent on the browser being used.
Click any link on the global header (for example, Home or Catalog) to see your changes.
Note:
If you add files, such as an image file, to your custom style folder, you must restart Presentation Services.
To create your custom style, you must edit one or more files.
The bicustom.war folder structure from which the style directory is extracted, contains the following in the application resources (res) directory (./res/), which houses the relevant files:
./res/filemap.xml
./res/s_Custom/
./res/s_Custom/master/
./res/s_Custom/master/master.css
./res/s_Custom/master/graph.xml
./res/s_Custom/master/custom.css
./res/s_Custom/master/styleproperties.res
./res/s_Custom/master/*.png
./res/s_Custom/master/*.gif
The style directory, prefixed by s_, contains the style sheet, image files, and a graph xml file.
All classes are located within the CSS or the graph.xml file.
The table below describes the content of the "res" folder structure.
Folder or File Name | Description |
---|---|
filemap.xml2 |
The filemap.xml file enables you to specify that your style or skin extends another style or skin. By default, s_Custom1 extends s_Skyros, which is defined in the filemap.xml file. This means that if a file cannot be found as part of your custom style or skin, then Presentation Services knows where to look next for that file. The content within the filemap.xml file looks similar to the following: <FileMap> <Styles Default="s_blafp"> <Hierarchy>s_Skyros/s_Custom</Hierarchy> </Styles <Skins Default="sk_blafp"> <Hierarchy>sk_Skyros/sk_Custom</Hierarchy </Skins> </FileMap> |
s_Custom |
s_Custom is a folder containing the files that define a style named Custom. The prefix, s_, indicates that the folder contains a style. This name displays in the Dashboard Properties dialog, Styles option. For additional information about updating styles in a dashboard, see Changing the Properties of a Dashboard and its Pages in User's Guide for Oracle Business Intelligence Enterprise Edition. If you want to change the default style manually by using the instanceconfig.xml file, the style name that you specify in the instanceconfig.xml file must match the style name specified as part of this folder name. You can name your style whatever you choose, but it must begin with s_. If you do change the name of the custom style, you must also update the filemap.xml file with the new style's name. If the files and folders that you add to the new style folder share the same names as files and folders in the base style (as defined in the filemap.xml file), then these new files and folders are used instead of the files in the base style. Use the files and folders in the base style as a guide for creating your custom style folders. You can define as many different styles as you like. Make a copy of the s_Custom folder in the same folder and name it by prefixing it with s_ (for example, s_Corporate). If you create additional custom styles, you must also add them to a style hierarchy in the filemap.xml file. |
sk_Custom |
sk_Custom1 is a folder that you create to customize the full skin and not just the style. You create sk_Custom as a sibling of the s_Custom folder. sk_Custom is not provided as part of the bicustom-template.ear file. The prefix, sk_, indicates that the folder contains a skin. If you want to change the default skin manually by using the instanceconfig.xml file, the skin name that you specify in the instanceconfig.xml file must match the skin name specified as part of this folder name. You can name your skin whatever you choose, but it must begin with sk_. If you do change the name of the custom skin, you must also update the filemap.xml file with the skin's new name. If the files and folders that you add to the new skin folder share the same names as files and folders in the base skin (as defined in the filemap.xml file), then these new files and folders are used instead of the files in the base skin. Use the files and folders in the base skin as a guide for creating your custom style folders. You can define as many different skins as you like. Make a copy of the sk_Custom folder in the same folder and name it by prefixing it with sk_ (for example, sk_Corporate). If you create additional custom skins, you must also add them to a skin hierarchy in the filemap.xml file. |
master |
The master folder contains all of the files that you likely need to create a custom style. |
master.css |
The master.css file contains all the CSS classes that are used by the style and defines the majority of the CSS classes and styles that are used throughout Presentation Services and Oracle BI Publisher. Changing the styles defined in the classes contained in this file widely impacts Oracle BI EE. Oracle does not recommend changing the CSS class selectors (CSS class names) in this file. Change the styles defined within each CSS class. The master.css file also contains comments to help you understand what classes apply and to which parts of the user interface they apply. |
custom.css |
The custom.css file is an empty (or blank) file that is imported by the master.css file. You can use the custom.css file to add your own CSS classes (for example, to apply styles to analyses) and override classes in the master.css file without changing the master.css file. Keeping your changes in the custom.css file, a separate file, enables you to take advantage of future improvements to the master.css file that are applied by patches and upgrades. |
graph.xml |
The graph.xml file enables you to define all the default styles that are applied to various graphs within analyses. The graph.xml file is documented with comments. These comments describe the valid values for each setting and provide a description of the elements for that style. |
styleproperties.res |
The styleproperties.res file provides advanced control over some of the elements of the user interface. For example, you can specify which version of the data loading animation to use when your dashboard is rendered. Data loading animations are used in the "status indicator" area of a web page when a page is loading data from the server. There are two different versions of the data loading animation: one animation uses dark foreground colors for use on light backgrounds and the other animation uses the reverse. The styleproperties.res file is documented with comments. These comments provide a description of the elements. |
.png and .gif (image files) |
All required images and the most common images are located in the master directory. These images are primarily .png and .gif formats. You can replace these images with your own files, preferably with images of the same size. |
File names, such as s_Custom, are case-sensitive and in lowercase on Linux.
Using the filemap.xml file to specify the style or skin that you are extending is applicable only for Presentation Services.
You can modify the CSS for Skyros to effect changes to any element contained within the CSS.
For example, if you want to change the background color of the master branding area from black to bright blue, perform the following steps:
To modify the background color: