Create Interesting Visualizations in Web Intelligence Report Using HTML Components
Create Interesting Visualizations in Web Intelligence Report Using HTML Components
Applies to:
BusinessObjects Web Intelligence XI Release 2, XI R3 For more information, visit the Business Objects
homepage.
Summary
This document provides a guide for how to embed HTML components in a Web Intelligence Report. It also
provides example of creating some interesting visualizations in a Web Intelligence Report using HTML.
Limitations of the process are briefly mentioned.
Author:
Arijit Das
Author Bio
The author has been associated with Tata Consultancy Services Ltd. for 2.5 years and has worked in
Telecom and Utilities domain as a BusinessObjects Consultant. He has mainly worked in development of
Universe and Web Intelligence Reports in BusinessObjects Enterprise XI Release 2 and BusinessObjects
Enterprise XI R3.
Table of Contents
Introduction ......................................................................................................................................................... 3
Examples of HTML components in WebI ........................................................................................................... 3
Add a marquee in WebI Report ...................................................................................................................... 4
Requirement ................................................................................................................................................................ 4
Solution ........................................................................................................................................................................ 4
Customization .............................................................................................................................................................. 4
Limitations ........................................................................................................................................................... 7
Related Content .................................................................................................................................................. 8
Disclaimer and Liability Notice ............................................................................................................................ 9
Introduction
The purpose of a web browser is to read HTML documents and display them as web pages. When we use
Web Intelligence as a web based application, embedding HTML contents in the report provides a good way
to enhance the reporting capability of BusinessObjects Web Intelligence (WebI).
The purpose of this document is to show how to add HTML components in a WebI report using some simple
examples of HTML components to enhance reporting in Web Intelligence.
3. You can add HTML code in a table cell(s) as well as in a free-standing cell.
Note: You can build HTML tagged objects in the universe as well. But while using that in WebI, in the display property of
the cell using the object you must select Read Cell Content as HTML.
Note: In the Edit mode, only the HTML code will be visible inside the cell. In the view mode, the code will be translated to
web content.
If browser setting allows, JavaScript and CSS can also be used to enhance HTML functionalities.
3.
4.
5.
Adjust the cell height and width to define the scroll area.
6.
This will show a scrolling text This is a marquee in the defined scroll area within the WebI report when
viewed in HTML report panel.
Customization
Create following variables in WebI:
Variable
Purpose
Allowed Values
Variable
Type
Example
Content
String
=This is a
Marquee
Direction
String
=RIGHT
Behavior
String
=ALTERNATE
BkgColor
Define the
background color of
scroll area.
Color value
String
=#FAFAFA
ScrollSpeed
String
=8
In the cell defining the scroll area, give the formula as below:
="<html><MARQUEE direction="+[Direction]+" BEHAVIOR="+[Behavior]+"
BGCOLOR="+[BkgColor]+" SCROLLAMOUNT="+[ScrollSpeed]+" ONMOUSEOVER=this.stop();
ONMOUSEOUT=this.start();>"+[Content]+"</MARQUEE></html>"
If you want a scrolling image, define the variable Content with <IMG> tag, e.g. =<img src=URL />.
A view having columns for Event, Current Score, and Score of Previous attempt.
Show a table in the report with columns Event and Comparison. In the Comparison column, we have
to show a horizontal bar chart comparing current and previous score.
Solution
The idea is to use a HTML table with background color where the width of the area filled by the color is
dynamically varied by the score values.
Suppose, the data in the table is like below:
4. In Display property for the cells of Comparison column, select HTML in Read cell content as field.
5. Adjust the cell height and width to fit the chart.
6. Save the report.
Define two variables as percentage values of ([Current Score]+[Previous Score]) and use them in place of
[Current Score] and [Previous Score] in the comparison formula so that the width of the column can be fixed.
3. In Display property for the cell, select HTML in Read cell content as field.
In the HTML viewer, the report will look like below now:
2. In Display property for the cell, select HTML in Read cell content as field.
When mouse is hovered over the link, the tooltip will be visible as shown below:
To add a tooltip text over an image within a WebI report, use the alt attribute in <IMG> tag. For example,
=<img src=URL alt=Tooltip/>
Limitations
The limitations of using HTML components within WebI reports are:
When saved as an Excel or PDF, the report will show the HTML code instead of the content.
Related Content
To know about Web Intelligence visit here.
To know about HTML visit here.
To know about HTML charts visit here.
For more information, visit the Business Objects homepage.