You can create your own report template to have greater
control over the appearance of the report and what information from
the topology goes in the report.
About this task
Report templates can be placed in any type of project. You
can place report templates in the same project as the topologies that
you want to use as data for the report, or you can put report templates
in their own project.
Procedure
- Open the Report Design perspective
by clicking ,
selecting the Report Design perspective, and
clicking OK. This perspective includes
an editor for BIRT report templates and the Data Explorer view,
which shows the data to be placed into the report.
- Create a report:
- Click .
- In the New window, expand Business
Intelligence and Reporting Tools and select Report.
- Click Next.
- In the File Name field, type
a name for the report, with the extension .rptdesign,
such as topology_report.rptdesign.
- Click Finish.
The report is created and opens in the BIRT report editor.
- Import the data source and data sets that are provided
with the topology report templates. You can create your
own data source and sets, but it is faster to import the data source
and sets.
- Open the Report Explorer view.
- Expand .
- Copy the Topology Model Catalog Report template into
your project.
- Double-click this report template to open it.
- Open the Data Explorer view and
expand both Data Sources and Data
Sets.
- Right-click the Topology Model data source and then
click Copy.
- Return to your new report, right-click the Data
Sources folder in the Data Explorer view,
and then click Paste.
- In the same way, copy the data sets from the topology
catalog report template to your report. You can use these
data sets to display information about a topology in your report.
For example, the Unit data set contains information about the units
in the topology.
- Select a data source that represents the data that you
want to add to the report. If none of the predefined data
sources show the data that you want, you can create your own data
source, as described in Creating custom data sets.
- Add the data to the report:
- From the Palette view, drag a field to the report. For example, drag a List onto the report
to print the results of a query for each selected element type in
the topology.
- Add data to the field by dragging it from the data source
in the Data Explorer view to the field on the
report. For example, if you have created a data set based
on the unit type, you can drag the unit's display name or name onto
the report.
- Add any other fields that you want in the report. You can add headings and captions by dragging a Label or Text from
the Palette to the report.
- Save the report.
- Run the report:
- Open the Deployment perspective.
- In the Project Explorer view, right-click
a topology and then click .
- In the Report window, click BIRT
Report at left and then click the New launch
configuration button above it.
- Name the new report configuration.
- On the Main tab, click the radio
button next to the Location field and select
your report template in the Location field.
- In the Data Sources list, select
the data source you created in the report.
- With the data source selected, click Add,
select the topology that you want to generate the report from, and
click OK.
- Under Report Output, specify
the location for the report.
- In the Format list, select a
format for the report.
- Click Apply.
- Click Report.