10 June 2009 - 3.0-beta-2 |
Subreport Tab contains toolbar with subreports operations , subreport list and subreport editor .
Subreport Operations are: add subreport , save subreport , clone subreport , remove and rename subreport. Operations save, clone, remove and rename require that subreport be selected and that its scope is PROJECT .
This section of subreport panel shows:
Adding subreport is easly done trough wizard. See picture:
For each subreport here is defined:
Save Report operation save subreport to file system if it is GLOBAL scope or to project if it is PROJECT scope.
This operation clone selected subreport. Cloned subreport is added to current project.
This operation renames subreport if it is PROJECT scope. New subreport name can not be same as existing report or subreport.
Generally there are no much difference in beatween subreport in soapUI and ordinary jasper report subreport. Each subreport is exposing data fields from one data set. Also, its data presentation could be influenced by parameters passed from main report or/and other parameters.
Accessing subreport in main report in soapUI Pro is very easy using build in url handler subreport. See example:
<subreport isUsingCache="true"> <reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="0" width="500" height="30"/> <dataSourceExpression>$P{ReportMetrics}</dataSourceExpression> <subreportExpression>"subreport:MetricsReport"</subreportExpression> </subreport>
In
<dataSourceExpression>$P{ReportMetrics}</dataSourceExpression>
While this:
<subreportExpression>"subreport:MetricsReport"</subreportExpression>
This concept is not mandatory, regular jasper report concept with absoluth path names to subreport and/or inserting datasources is supported by soapUI Pro.
There are other posibilities for changing how main report look and feel, for showing subreports based on does data exists or not, report flow for different formats etc...All that is explaind in Cusomizing Report.