Jump to content
Changes to the Jaspersoft community edition download ×

passing parameters


drewmcfarland

Recommended Posts

I have a report with 2 subreports. Each subreport needs to have the same Date parameter value passed to it.

 

 

I have tested all the report queries in Oracle and they all accept a DATE parameter.

 

 

In the main report, I have a parameter called [pDate], with a class of [java.util.Date], with Use as Prompt turned on, and with a default value of [new java.util.Date()].

 

 

In the main report, I have set the subreports properties to pass a parameter called [pDate] using the expression [$F{PDATE}].

 

 

Each of the subreports has the same parameter settings as the main report.

 

 

But, when I try to run the report in iReport I keep getting an error [java.sql.SQLException:ÂORA-06553:ÂPLS-306:ÂwrongÂnumberÂorÂtypesÂofÂargumentsÂinÂcallÂtoÂ'SUBREPORT1']

 

 

If I run the subreports by themselves, they work. What I can't tell is whether iReport is passing the DATE from the main report as a different type to the subreports, or if iReport is simply not passing the DATE field to the subreports.

 

 

Has anyone experienced a similar problem?

Post edited by: drewmcfarland, at: 2008/07/07 17:10

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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