Jump to content
We've recently updated our Privacy Statement, available here ×

MySQL Stored procedure use in subreport


benu

Recommended Posts

Hi, Folks,

 

I've been using stored procedures as data sources for my JasperReports for some time now and they've worked great. However, I'm now trying to use a stored procedure for a subreport, with the query on the main report passing a key value to a subreport parameter. The main report query is a simple select statement. The subreport is located in the detail section of the main report.

 

When I run the report - for the first time! - it works: the subreport prints fine. The second and subsequent runs of the report fail with an "invalid SQL" error, source is the subreport.

 

The reports are on JasperServer 1.2.1. The DB is MySQL. I'm using iReport 2.0 to design.

 

Any thoughts? Thanks, Ben

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...