How use a parameter as datasource in Jasper list element? -
i have report template parameter defined as:
<parameter name="phonenumbers" class="java.util.list"/>
those phonenumbers objects of type:
se.primenta.data.entity.phonenumber
and these objects have 2 methods need present in report:
string getmaskednumber(); long getnumber;
i can't understand how these 2 fields subdataset can visualized in list element. how write dataset , list definitition in jrxml template?
what having datasource list :
<datasourceexpression> <![cdata[new net.sf.jasperreports.engine.data.jrbeancollectiondatasource($p{phonenumbers})]]> </datasourceexpression>
and using $f{maskednumber} , $f{number}
inside list ?
Comments
Post a Comment