Jump to content
We've recently updated our Privacy Statement, available here ×

bean collection datasource


nandu_bc

Recommended Posts

Hi,

 

I'm trying to pass JRBeanCollection datasource to my subreport. the expression is as followsnew

net.sf.jasperreports.engine.data.JRBeanCollectionDataSource(new ArrayList(Arrays.asList(new com.RangeObject("jj",8),new com.RangeObject("ll",8))))

But this is not renderring the subreport.

Is this possible ?

I

Thanks and regards,

Nandini

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi,

In my case, when I use a JRBeanCollection dataSource I have the following expression:

new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{bfList})

Where the field bfList is an ArrayList of another class which is included in my Bean.

I don't know exactly what does this mean: new ArrayList(Arrays.asList(new com.RangeObject("jj",8),new com.RangeObject("ll",8)))

But I think you should pass the ArrayList in your main bean, then get this ArrayList as a field in your main report and finally set the datasource expression as I tell you in the beginning of this post.

Hope this helps.

Regards.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...