tedpet5 Posted May 31, 2013 Share Posted May 31, 2013 I am passing data to my jasperreport from my webapp. Each object is in the form of:{description Stringusename Stringsteps array of stringstheDate date}those objects are my Fields In the iReport manual, it only mentions using parameters as a datasource.Can I safely use a Field as a datasource to pass to a subreport or a list element?new JRBeanCollectionDataSource($F{steps}) Link to comment Share on other sites More sharing options...
Thomas Zimmer Posted May 31, 2013 Share Posted May 31, 2013 sure. if your datasource really delivers a collection of collections, or at least one element of your fields is a collection of beans, then you can use that field to create a new bean datasource.otherwise it won't make sense.Cheers, Thomashttp://www.thomaszimmer.net 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