2 and More subreports

0

Hello!

I cannot past two or more subreports into master report: in the result file i can see only one subreport.

I user Ireport 5.6.0 and jasperreport 6.2.1.

My jrxml:

<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["resources\\reports\\"]]></defaultValueExpression>
</parameter>
<field name="commonClinical" class="java.lang.Object"/>
<field name="bleedingLocalization" class="java.util.List"/>
<subreport>
<reportElement stretchType="RelativeToTallestObject" x="0" y="14" width="200" height="100" uuid="7f37acfd-9cca-49d4-91f8-5d05a4f47836"/>
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{commonClinical})]]></dataSourceExpression>
<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "common_clinical_subreport.jasper"]]></subreportExpression>
</subreport>
<subreport>
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="0" y="199" width="200" height="89" uuid="d243ab46-212b-4dbe-a84b-cd1bdb2e8386"/>
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{bleedingLocalization})]]></dataSourceExpression>
<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "master_subreport1.jasper"]]></subreportExpression>
</subreport>
 
My JavaBean (contains Lists with other JavaBeans):
 
public class Visit1ReportBean implements Serializable{
 
private List<CommonClinicalReportBean> commonClinical;
private List<BleedingLocalizationReportBean> bleedingLocalization;
 
//getters, setters, constructor
}
 
So here I can see only commonClinical subreport.
Please. help me
elagina.maria.n's picture
Joined: Jan 30 2017 - 6:33am
Last seen: 4 days 2 min ago

0 Answers:

No answers yet
Feedback