2006 IR Open Dicussion Posted September 4, 2006 Share Posted September 4, 2006 By: kdrumm - kdrumm passing params to custom datasource 2006-01-03 19:19 I have a custom datasource used by a subreport. I would like to pass the db connection string, username, and password to the main report as parameters, then pass them on through as method parameters to the custom datasource constructor, such as... new customDS($P{connStr},$P{username}, $P{password}) when I do this, the parameters always come through to the constructor as null. If I hardcode them, everything works fine. I'm using iReports 0.5.2 and JasperReports 1.1.1. Thanks in advance! 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