This section explains how you can create advanced reports and report templates in Integration Studio using the Business Intelligence and Reporting Tool (BIRT).
The typical set of activities involved in the creation of a BIRT report are:
Creating an empty report
Before you develop a new report, you need to create a new BIRT Report Project in Integration Studio. To do so, perform the following steps:
- Open Integration Studio.
- From the Integration Studio menu, select File > New, and click Project.
- In the New Project dialog-box, expand the Business Intelligence and Reporting Tools node, select Report Project, and click Next.
- In the New Report Project dialog-box, do the following:
- Enter a new name for your report project
- Select the Use default location check-box if you want to use the default location for report creation, else clear it, and enter a location of your choice.
- Click Finish to create the project.
The IDE switches to the Report Design perspective.
To create a new report within a Report Project
After you create a new Report Project, you need to create a new report within it. To do this, perform the following task:
- In the Navigator view, right-click your report project, select New, and click Report.
- In the New Report dialog box, enter a file name (default:
new_report.rptdesign) for your new report, and click Next.
- In the Report type dialog box, from the Report templates list, select TrueSight Capacity Optimization Template; the template preview appears in the Preview pane.
- Select the Show Report Creation Cheat Sheet check-box to display a tutorial box in the Report Design perspective to help you with report development.
- From the Report Orientation list, choose the orientation of your report.
- Click Finish to create your new report.
Your new report is now displayed in the Edit area in Layout mode.
Report Project: Designing a new report template
To configure additional data sources, see Configuring data sources.
Creating a new dataset
The next step is to create a new dataset associated with the configured data source. To do this, follow these steps:
- Select the Data Explorer view.
- Right-click Data Sets, and click New Data Set.
- In the New Data Set dialog-box, select a data source from the Data Source Selection tree view, then select the dataset type from the Data Set Type list, enter a name for the new dataset, and click Next.
- In the Query dialog-box, define an SQL query using filters, and other available items.
Defining an SQL query to populate the dataset
- Click Finish.
At this point, the Edit Data Set dialog box is displayed. Here you can edit output columns, modify queries, add parameters, add filters, and perform other operations on your data set.
- Select the Previews Results item from this dialog box to preview the resulting dataset.
You can continue editing the query until its output is as per your requirement.
- Click OK to create the dataset.
Your new dataset is now ready to be used.
Adding graphical elements to the report
The Palette view portlet in the report perspective provides useful graphical elements that you can add to the report in an easy and interactive way. The following graphic shows an example of a basic Palette portlet.
Adding elements to the report from the Palette view
To add a particular element to the report, double-click the element from the Palette view or simply drag and drop it onto the report. You can then move it around to the desired position, re-size it, and customize its settings from the Property Editor view. If the Property Editor view for your selected element is not already displayed, follow these steps to display it:
- Select your element from the report layout.
- From the Integration Studio menu, select Window > Show View, and click Property Editor.
The Property Editor view is now displayed next to the Palette view.
Viewing the report
To view (execute) a report, click the View Report button (shown in the figure) and select a format to preview the output. You can view the report in Web Viewer to use advanced browsing function.
Viewing the report
Preparing the report template before uploading it
Before you upload the newly created report template to BMC TrueSight Capacity Optimization, it is highly recommended that you parameterize your report, in particular the data source, so that your report supports future database changes.
The user, password, and jdbcurl parameters are already configured; the default data source is therefore automatically parameterized.
To add a parameter to the report
To add a parameter to the report, follow these steps:
- Select the Data Explorer view.
- Right-click Report Parameters, and select New Parameter.
- In the New Parameter dialog box, specify the parameter name, its type, and other required properties.
Adding a new report parameter
- Click OK to add the parameter.
To add parameters to datasets
To add parameters to datasets, follow these steps:
- Right-click the selected dataset and click Edit.
- In the Edit Data Set dialog box, select Parameters from the menu list.
- Click New to define the new dataset parameter.
- In the New Parameter dialog box, enter all necessary information.
From the Linked To Report Parameter list, select the report parameter to be linked to the dataset parameter.
If a particular report parameter is used in a query 4 times, you must define 4 separate parameters linked to it.
Click OK to add the parameter to the dataset.
Adding a parameter to the dataset
If you want to use other report runtime parameters, you must define them (with the same name used in the report) when uploading the report template to BMC TrueSight Capacity Optimization; for more information, see Report templates.
Uploading the report
After developing a new report, you have to upload it to BMC TrueSight Capacity Optimization as explained in Report templates.