1
我正在开发包含使用iReport
的子报告的报告,我在主报告中传递两个外部参数:CurrWeek
和CurrYear
参数。我将相同的参数传递给子报表。iReport:获取“不兼容的java.math.BigDecimal值分配给参数”例外
在这两份报告中,我声明参数为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.