nandu_bc Posted February 22, 2012 Share Posted February 22, 2012 Hi, I'm trying to pass JRBeanCollection datasource to my subreport. the expression is as followsnewnet.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 ?IThanks and regards,Nandini Link to comment Share on other sites More sharing options...
augarte Posted February 22, 2012 Share Posted February 22, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now