[Solved] Problem passing datasource to subreport in Products Posted July 15, 2010 I have done the same like above post, In Subreport >>>>>>>>>>>>>>>>> put Followingvery important >>> below address is field in my addressess List in Main Report <field name="address" class="java.lang.String"/> and In Detail Section Put Following <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="142" y="20" width="92" height="20"/> <textElement> <font size="12"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{address}]]></textFieldExpression> </textField>But F{address} is expecting from main JavaBean not from sub JavaBean. Caused by: java.lang.NoSuchMethodException: Unknown property 'SubVoFeild1' on class 'class model.MainVo'.I found there is a bug which is still open on the same issue http://jasperforge.org/projects/ireport/tracker/view.php?id=4480Please guide me any alternative solution for this issue.Thank you,Sowjanya
[Solved] Problem passing datasource to subreport
in Products
Posted
I have done the same like above post,
In Subreport >>>>>>>>>>>>>>>>> put Following
very important >>> below address is field in my addressess List in Main Report
<field name="address" class="java.lang.String"/>
and In Detail Section Put Following
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="142" y="20" width="92" height="20"/>
<textElement>
<font size="12"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{address}]]></textFieldExpression>
</textField>
But F{address} is expecting from main JavaBean not from sub JavaBean.
Caused by: java.lang.NoSuchMethodException: Unknown property 'SubVoFeild1' on class 'class model.MainVo'.
I found there is a bug which is still open on the same issue
http://jasperforge.org/projects/ireport/tracker/view.php?id=4480
Please guide me any alternative solution for this issue.
Thank you,
Sowjanya