I am using jasper report 5. I am able to print simple variable values, but i am not getting how to print values of ArrayList variable.
I have included
<field name="billNo" class="java.lang.Long"/>
<field name="paymentType" class="java.lang.String"/>
<field name="subTotal" class="java.lang.Float"/>
<field name="vat" class="java.lang.Float"/>
<field name="total" class="java.lang.Float"/>
I am printing above fields like
<textField>
<reportElement x="276" y="70" width="180" height="15"/>
<textElement/>
<textFieldExpression><![CDATA[$F{total}]]></textFieldExpression>
</textField>
same for others.That is working fine.
Now I have an ArrayList customerList
.
which have fields customerName
,address
etc.
I want to show these values using jasper report how to do this.