Forum Discussion
Thanks for the input.
I still have some questions. Maybe I try to explain it on this example.
I'd like to customize the Project Overview report that is contained in the default projectReport. The report contains some categories. What I'd like to do is to disable most of them for my report. Actually I'd like to see only the "Base Metrics" category in my report.
I figured out that the report is based on the ReportMetrics data source that serves category, name, value and icon data.
As far as I understand Jasper, a solution could be to put a filter between the data source and the report. In this filter I could block all categoried beside "Base Metrics". Am I on the right track?
I installed iReport and trying to do it. Sandy with no success. Could anybody provide an example (*.jrxml) how to filter the ReportMetrics data source?
Thanks!
I found a solution:
The filter can be set in the subReport.
What I did in MetricReport.jrxml is to put a
<filterExpression> node diretly under the <jasperReport> node:
<filterExpression><![CDATA[!(
$F{category}.equals("Interface Summary") ||
$F{category}.equals("Overview") ||
$F{category}.equals("Virt Summary")
)
&&
!(
$F{name}.equals("Number of LoadTests")
)]]></filterExpression>
This allows to customize the metrics report and switch off categories and entries.