lov_tech Posted October 14, 2006 Share Posted October 14, 2006 HiI am using collection as one field in my javabean which i want to pass subreport to display values.Could anyone tell me how to pass an arraylist to subreport.RegardsLovkesh Chaturvedi Link to comment Share on other sites More sharing options...
bklawans Posted October 15, 2006 Share Posted October 15, 2006 If the objects in your ArrayList are also beans you can set the subreport's dataSourceExpression to "new JRBeanCollectionDataSource(your_array_list)". Then in the subreport just declare the fields and you are all set. -Barry 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