jasemilly Posted December 14, 2011 Share Posted December 14, 2011 Hi have created a list element that appears perfectly fine in ireport preview but when the webpage preview comes up the list element doesn't show. For the datasource I have specified use connection expression. Is their something else I need to specify for the web page??ThanksJasemilly Link to comment Share on other sites More sharing options...
augarte Posted December 14, 2011 Share Posted December 14, 2011 Are you using a List element inside a Java Bean datasource? If you want to display it you have to create a subreport, and in the datasource expression of the subreport put something similar to this: new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{bfList})In my case, bfList is a list of objects I have in my Bean and want to display.Hope this helps.Regards Link to comment Share on other sites More sharing options...
jasemilly Posted December 15, 2011 Author Share Posted December 15, 2011 I recreated it as a subreport and it all worked fine. 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