Maximo Reports - BIRT
Maximo Reports - BIRT
1 Background - Reporting
6 Drilldown Reports
Stephen Hume
7 Result Sets and Report Object Structures Stephen has been working with
IBM Maximo for over ten years in a
variety of industries (Oil and Gas,
8 QBRs, KPIs and Data Extracts Utilities). He has taught Maximo
courses to end users for both
Technical and Functional
9 Creating a Report without BIRT audiences and chairs the
MaxTECH User Group.
www.bpdzenith.com/maxtech 2
Background – Reporting
The purpose of this MaxTECH presentation is to provide There are some key truths about reporting that need to be
some insight into the 8th Mystery of Maximo – Reporting. understood by all users and management:
Often overlooked or ignored (sometimes on purpose),
1. As soon as a report is printed it is out of date. In a
reporting out of Maximo is the key to deriving business
transactional system such as Maximo transactions
value from the system.
continue even after a report has been executed.
A report is commonly referred to as a document
2. Reports should not be manipulated after they have
containing information organized in a narrative, graphic,
run. The data in the reports is the “truth” from the
or tabular form, prepared on ad hoc, periodic, recurring,
system and should not be “massaged”, “edited”,
regular, or as required basis.
“revised” by any users. This could have serious safety
Reports may refer to specific periods, events, occurrences, or financial implications.
or subjects, and may be communicated or presented in
oral or written form.
CanMUG www.bpdzenith.com/maxtech 3
BIRT Setup and Administration
Once you have set up BIRT, pointed it to the correct Maximo Database and are ready to get working on your first report, it
will be necessary to configure Eclipse so that a feature called “Report Preview” will function properly.
There is an issue with the latest version of Eclipse in that the preview function will not work with IE 11 or Microsoft Edge.
You may see an HTTP 500 error, or a blank parameters screen if you
try to preview a report.
P
TI If you cannot have Firefox installed because of IT “Rules” then the best option is to test the report
by running it straight to PDF.
CanMUG www.bpdzenith.com/maxtech 4
BIRT Setup and Administration
When configuring mxreportdatasources it is suggested that you configure it for all of your Maximo Databases, and then
comment out the lines that are not being used at the time. That way you can comment and uncomment lines depending
on which test data you need to use for your reports at the time.
If you do not configure the mxreportdatasources file, eclipse will still work, but you will not be able to test your reports
within BIRT.
P
TI When updating mxreportdatasources you need to close Eclipse and re-open it
for any changes to take effect.
CanMUG www.bpdzenith.com/maxtech 5
Modifying a BIRT Report
In this example I will be modifying a report to add the person’s
supervisor’s name and the person’s status.
In report designer, expand the list of data sets and double click the mainDataSet
Then Click on the Output Columns, here you are going to click Add
and then Add two new columns.
supervisor (String)
And
status (string)
While the dataset is clicked on, then you can click on the Script
tab, this is where you will modify the SQL to get the new
data for supervisor name and person’s status.
CanMUG www.bpdzenith.com/maxtech 6
Modifying a BIRT Report
CanMUG 7
www.bpdzenith.com/maxtech 7
Modifying a BIRT Report
CanMUG www.bpdzenith.com/maxtech 8
Modifying a BIRT Report
• Click on the layout. Click the row where userid appears, right click on the table row and select,
add row, below.
• In the new row drag the supervisor and status fields. Add a Label for the Supervisor.
• Then click on the userid field, right click, copy format.
• On the New supervisor label, supervisorname and status fields right click and paste format.
CanMUG www.bpdzenith.com/maxtech 10
Modifying a BIRT Report – Adding a Parameter
Quite often the business may request a change to a report to allow them to “filter” the data based on a new set of filters or
parameters. Examples of this would be to show data in a specific date range, or select specific types of work orders for the
report, or work orders for a specific Asset.
In the example to follow, we will add the Supervisor ID as a parameter on the security audit report which will allow users to
run the report and see all people with a specific supervisor.
CanMUG www.bpdzenith.com/maxtech 11
Modifying a BIRT Report – adding a Parameter
CanMUG www.bpdzenith.com/maxtech 12
Modifying a BIRT Report – Adding a Parameter
CanMUG www.bpdzenith.com/maxtech 13
Modifying a BIRT Report – Adding a Parameter
Add the logic to the script to filter by supervisor if the user has entered one:
CanMUG www.bpdzenith.com/maxtech 14
Modifying a BIRT Report – Adding a Parameter
CanMUG www.bpdzenith.com/maxtech 15
Creating a New Report
Click on File – New - Report
CanMUG www.bpdzenith.com/maxtech 16
Creating a New Report
T EThe report is then created with a default single dataset. You will
O need to define the output columns, open and fetch script,
N
groupings, etc.
CanMUG www.bpdzenith.com/maxtech 17
Creating a New Report
Continue to work with the new report, building out the layout.
Once you are ready to “test” the report, save your changes, then run the
preview, or run directly to PDF, or import the new report file into Maximo
using the Report Administration Application.
CanMUG www.bpdzenith.com/maxtech 18
Types of BIRT Reports
There are several different types of BIRT Reports that can be created.
• Simple Listing Reports
• Grouped Listings
• Dual Column Listing
• Charts
• Charts and Data Combined
• Crosstab reports
• Reports with Sub-Reports
When you are creating new reports, the report templates will provide a preview of each type before you
create the report file.
T E
While Eclipse does provide the ability to create new reports using
NO this wizard, it is quite often just as easy to take an existing Maximo
Report, make a new copy of the report with a new name and modify
to suit your requirements.
CanMUG www.bpdzenith.com/maxtech 19
Drill Down Reports – To Another Report
CanMUG www.bpdzenith.com/maxtech 20
Drill Down Reports – To Maximo
It is possible to configure a drill down hyperlink in Eclipse to open a Maximo Session to a specific application and a specific record in
that application.
The “Location” of the URI hyperlink would need to be the valid url for whichever Maximo application server you wish the drill down to
open.
In the above example, the drill down on ticket ID will open the ex_inciden application on the maximo/maximo application server.
CanMUG www.bpdzenith.com/maxtech 21
Result Sets and Report Object Structures
BIRT Reports are not the only means of providing Maximo Data to the end users. Strategic use of Start Center
Result sets can often preclude the need for a printed report.
The relevant data is presented to the users in real time, when they log into Maximo and access the specific
start center. With Maximo version 7.6 it was possible to display data from related tables in a result set using
Report Object Structures. Here is a link which describes in detail the steps for setting this up: http://www-
01.ibm.com/support/docview.wss?uid=swg21980423
CanMUG www.bpdzenith.com/maxtech 22
QBRs, KPIs and Data Extracts
Link to information about QBRs (Query Based Reporting) in Maximo (ad hoc reporting)
https://www-01.ibm.com/support/docview.wss?uid=swg21696691
Note: it is possible to extract a report created via QBR and make further modifications to it
in Eclipse.
This feature allows end users to create their own reports in Maximo, and with recent releases
they are able to edit reports they have created and saved, as well as adding summary fields
to their reports.
CanMUG www.bpdzenith.com/maxtech 23
QBRs, KPIs and Data Extracts
CanMUG www.bpdzenith.com/maxtech 24
QBRs, KPIs and Data Extracts
The list tabs in any application can be designed to provide users with data they may want to
download out of Maximo. On the list tab there is the ability to download the listed records into
an excel workbook.
There is also a feature in Maximo 7.5 and greater that would allow users to export and import
data directly from specific applications.
CanMUG www.bpdzenith.com/maxtech 25
Creating a “Report” without BIRT
The solution to this requirement came from Bruno Portaluri’s blog: http://maximodev.blogspot.ca/2013/10/object-
quick-summary.html
CanMUG www.bpdzenith.com/maxtech 26
Creating a “Report” without BIRT
Database Configuration –
add a non-persistent
attribute to the Work Order
or Ticket Table.
CanMUG www.bpdzenith.com/maxtech 27
Creating a “Report” without BIRT
CanMUG www.bpdzenith.com/maxtech 28
Creating a “Report” without BIRT
Create the automation script to build the summary output and associate it with an Action launch
point.
CanMUG www.bpdzenith.com/maxtech 29
Creating a “Report” without BIRT
Create the automation script to build the summary output and associate it with an Action launch
point. The embedded text file is the script that has been used to create the MOC Summary.
CanMUG www.bpdzenith.com/maxtech 30
Creating a “Report” without BIRT
CanMUG www.bpdzenith.com/maxtech 31
Creating a “Report” without BIRT
CanMUG www.bpdzenith.com/maxtech 32
Creating a “Report” without BIRT
CanMUG www.bpdzenith.com/maxtech 33
Creating a “Report” without BIRT
CanMUG www.bpdzenith.com/maxtech 34
Review of Learnings
You have learned the following skills through this training class:
1. How to set up and configure Eclipse
2. How to customize an existing report – add new attributes
3. How to customize an existing report – add new parameters
4. How to create a new report
5. How to define object structures for resultsets
6. How to create an HTML report using scripting, application design and actions
7. How to configure start centers with KPIs, KPI Groups, Bar Charts and Pie Charts
8. How to configure Maximo to allow data exports
CanMUG www.bpdzenith.com/maxtech 35
Reference Materials and Links
https://www.eclipse.org/forums/index.php/t/168259/
https://www.ibm.com/developerworks/community/blogs/a9ba1efe-b731-4317-9724-
a181d6155e3a/entry/scripting_report_execution_in_7_511?lang=en
CanMUG www.bpdzenith.com/maxtech 36
Ask us a technical question:
maxtech@bpdzenith.com
www.bpdzenith.com/maxtech
Thank you! MaxTECH is the first ever dedicated Maximo Technical User
Group aimed at Maximo Administrators, Developers and
Technical Support staff.