Jump to content
Changes to the Jaspersoft community edition download ×

problem in providing parameter for subreport in JasperReport


ariyanster

Recommended Posts

I have a report template that has a subreport; in main report I have some parameters that should be available in subreport too.

Main report parameter is defined like this:

[/code]

And in subreport I defined same parameter with the same name:

[/code]

And I provided parameters of master report for sub report like this:

    		    new HashMap($P{REPORT_PARAMETERS_MAP})        	                    	                        [/code]

but this throws this:

SEVERE: nullnet.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Incompatible java.lang.Integer value assigned to parameter PID in the subRPT dataset.at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:711)at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:329)at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:419)at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:378)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2035)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:760)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:270)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128)at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:946)at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:845)at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:58)at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)at biorec.control.reporting$1.doInBackground(reporting.java:177)

What is the problem?

Thanks

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