我正在开发包含子报告的报告,iReport并且我在主报告中传递了两个外部参数:CurrWeek和CurrYear参数。我将相同的参数传递给子报表。
在两份报告中,我都将参数声明为BigDecimal. 当我运行报告时,它显示如下所示的错误:
Error filling print...
net.sf.jasperreports.engine.JRException:
Incompatible java.math.BigDecimal value assigned to parameter
CurrWeek in the WeeklyReportForOtherWeek dataset.
net.sf.jasperreports.engine.JRRuntimeException:
net.sf.jasperreports.engine.JRException:
Incompatible java.math.BigDecimal value assigned to parameter
CurrWeek in the WeeklyReportForOtherWeek dataset.