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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -