Jump to content
Changes to the Jaspersoft community edition download ×

passing params to custom datasource

2006 IR Open Dicussion

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...