java - Access nested list elements in jasper reports -


i have specific task , aim create pdf report java.util.collection list elements. size of list not predefined nested list size, java.util.collection list, not predefined. each report have print in new page. in end need have 1 pdf file on meany lists.

the problem cannot access nested list elements

i made subreport nested list elements,

<subreport isusingcache="false" runtobottom="true">     <reportelement uuid="23bd89bf-ac96-4a86-8d78-55e07d8bd280" positiontype="float" stretchtype="relativetotallestobject" mode="transparent" x="0" y="64" width="555" height="651"/> <datasourceexpression><![cdata[new net.sf.jasperreports.engine.data.jrbeancollectiondatasource($f{records})]]></datasourceexpression> <subreportexpression><![cdata[$p{paymentdetailssubreport}]]></subreportexpression> </subreport> 

$f{records} data field must data array nested list. cannot figure out way how access nested list elements. found article field mapping http://community.jaspersoft.com/questions/527663/context-help-access-getters doesn't work in case

any idea how access nested list elements?


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -