Jump to content
Changes to the Jaspersoft community edition download ×

Recommended Posts


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">
<field name="commonClinical" class="java.lang.Object"/>
<field name="bleedingLocalization" class="java.util.List"/>
<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>
<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>
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
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...