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>
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: