jprohaska Posted April 13, 2007 Share Posted April 13, 2007 Hi to All, I have a main report that uses a COM.ibm.db2.jdbc.app.DB2Driver connection, and a subreport which i need to pass a list (from my java code) to view as datasource. How can I pass a different datasource to a Subreport from my java code? Thanks John Link to comment Share on other sites More sharing options...
csplrj Posted April 14, 2007 Share Posted April 14, 2007 Make a new Parameter of type JRDataSource and change the datasource expression to that variablePass the datasource of subreport to main report as parameter and your job is done Bye for now CSJakharia 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