Adding Custom Reports

TIBCO MFT Command Center comes with several system auditing reports already created. The reporting feature of TIBCO MFT Command Center supports you to create and display your own custom reports within the TIBCO MFT Command Center administrative component.

After you create a custom report with Jaspersoft®Reports, it must be placed in the classes directory under the WEB-INF directory.

TIBCO MFT Command Center uses a .xml file to configure the reports that are displayed on the Reports page. This file is named Reports.xml and is located in the view/reports directory under the context directory on the web server. The file holds an entry for each report and each entry contains the text that will be displayed on the Reports page, the report file name, and the JSP files that will be used to display this report. You can get your custom reports displayed on the Reports page by adding entries to this file.

If you have a report that requires no user input, all you need to do to get the report displayed is to add an entry to the Reports.xml file.

For example:

<report category="other">
  <label>My Custom Report</label>
  <report-filename>MyReport.rpt</report-filename>
  <report-display>report_param2.jsp</report-display>
</report>
Note: Use TIBCO MFT Command Center report_param2.jsp if your report requires no input.

If you have a report that requires input, you have to write the JSP that displays buttons, text box, and so on that will collect user input. You also have to write the JSP that displays the report. You can refer to TIBCO MFT Command Center JSPs as an example. For example, the ReportSelectionPage.jsp file displays dates and the report_param.jsp file uses that input to display the report to the user.

Reports.xml File

The following table lists the tags used in the Reports.xml file:

Tag Name Required Number Description
company-name Yes One per file This name is displayed in the upper-right corner of TIBCO MFT Command Center supplied reports. It can be changed to display your company name.
report No Zero to many per file This is a report to be displayed.

It has a required attribute that defines into which category of the Reports page the report will be put. The valid values include transfer, exception, users, security, alerts, and other. If the attribute does not match one of these, the report will be put in the other section. The other section is labeled Miscellaneous on the Reports page.

label Yes One per report tag This is the description that is displayed next to the View Report button on the Reports page.
report-filename Yes One per report tag This is the name of the report file located in the classes directory under the WEB-INF directory
report-input Yes One per report tag

This is the name of the JSP file to be used to collect user input if your report requires input, such as a date range.

This JSP file is located in view/cfcc directory.

report-display No One per report tag This is the name of the JSP file that displays the report.

It uses the Jaspersoft reports JRC API to display the report.

This JSP file will be located in view/cfcc directory.