Jump to content
Changes to the Jaspersoft community edition download ×

laereba

Members
  • Posts

    2
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by laereba

  1. Hey I'm getting the following exception when I try to nest tables. My object contains as attribute a list that itself has a list of other object. I'm capable of creating a table that iterates over the first list by when I try to iterate over the sublist i get the following error: net.sf.jasperreports.engine.JRRuntimeException: java.lang.NoClassDefFoundError: report1_InterestingCaseDataSet_1277809238286_246631_InterestingCaseReasonDataSet (wrong name: report1_InterestingCaseReasonDataSet_1277809238286_246631) at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:710) at net.sf.jasperreports.components.table.fill.FillTableSubreport.prepareSubreport(FillTableSubreport.java:156) at net.sf.jasperreports.components.table.fill.FillTable.prepare(FillTable.java:302) at net.sf.jasperreports.engine.fill.JRFillComponentElement.prepare(JRFillComponentElement.java:129) at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:329) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:419) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:378) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2018) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:757) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:269) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:127) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:938) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:860) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:84) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624) .... A part of my jrxml is attached. Does anyone have a idea, what i'm doing wrong? Thanks in advance Code:<band height="72"> <componentElement> <reportElement key="table 8" style="table 8" x="0" y="32" width="555" height="20"/> <jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd"> <datasetRun subDataset="InterestingCaseDataSet"> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{interestingCases})]]></dataSourceExpression> </datasetRun> <jr:column width="90"> <jr:columnHeader style="table 8_CH" height="30" rowSpan="1"> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="0" y="0" width="90" height="30"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$R{report.enquiry.table.interesting.case.header.reason}]]></textFieldExpression> </textField> </jr:columnHeader> <jr:detailCell style="table 8_TD" height="20" rowSpan="1"> <componentElement> <reportElement key="table 14" style="table 14" x="0" y="0" width="90" height="20"/> <jr:table> <datasetRun subDataset="InterestingCaseReasonDataSet"> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{interestingCaseReasons})]]></dataSourceExpression> </datasetRun> <jr:column width="90"> <jr:detailCell style="table 14_TD" height="20"> <textField> <reportElement x="0" y="0" width="90" height="20"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{messageKey}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> </jr:table> </componentElement> </jr:detailCell> </jr:column> </jr:table> </componentElement> </band>
  2. I'm using Nested Java Collections to generate a report. I've managed to display a nested collection of my main objects as a table. Now I would like to display another level as a table within a table, but the engine throws an exception on this. The main java object contains a List-attribute named "interestingCases". And an InterestingCase object contains & List-attribute named "interestingCaseReasons". Can anyone tell me, if it possible to nest these tables and if so, what I'm doing wrong. Thanks in advance, Bart Code:<band height="72"> <componentElement> <reportElement key="table 8" style="table 8" x="0" y="32" width="555" height="20"/> <jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd"> <datasetRun subDataset="InterestingCaseDataSet"> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{interestingCases})]]></dataSourceExpression> </datasetRun> <jr:column width="90"> <jr:columnHeader style="table 8_CH" height="30" rowSpan="1"> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="0" y="0" width="90" height="30"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$R{report.enquiry.table.interesting.case.header.reason}]]></textFieldExpression> </textField> </jr:columnHeader> <jr:detailCell style="table 8_TD" height="20" rowSpan="1"> <componentElement> <reportElement key="table 11" style="table 11" x="0" y="0" width="90" height="20"/> <jr:table> <datasetRun subDataset="InterestingCaseReasonDataSet"> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{interestingCaseReasons})]]></dataSourceExpression> </datasetRun> <jr:column width="90"> <jr:detailCell style="table 11_TD" height="20"> <textField> <reportElement x="0" y="0" width="90" height="20"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[str($F{messageKey})]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> </jr:table> </componentElement> </jr:detailCell> </jr:column> </jr:table> </componentElement> </band>
×
×
  • Create New...