Hello,
Iam trying to set a variable with a value which is difference of a Field and parameter. example
Inside the varibale i gave expression
$F - $P
like this. THey both are double datatype.
in the report iam trying to display the value in the variable .
$V
wheni compile i get the error below. I need to caluclate the difference. It would be great if any one can help quick.
HELPEHELPEHELp
Compiling to file... .\OTHERCUSTOMERS.jasper -> C:\iopen\iReport-0.5.1\OTHERCUSTOMERS.java Errors compiling .\OTHERCUSTOMERS.jasper! it.businesslogic.ireport.ReportClassLoader@a5adc net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. The constructor Double(Double) is undefined value = (java.lang.Double)(new Double( ((java.lang.Double)parameter_TOP10CLAIMSUM.getValue()))); <-------------------------------------------------------------------> 2. The operator - is undefined for the argument type(s) java.lang.Double, java.lang.Double value = (java.lang.Double)(((java.lang.Double)field_CLAIMSSUM.getValue()) - ((java.lang.Double)parameter_TOP10CLAIMSUM.getValue())); <--------------------------
Double)parameter_TOP10CLAIMSUM.getValue()))); <-------------------------------------------------------------------> 6. The operator - is undefined for the argument type(s) java.lang.Double, java.lang.Double value = (java.lang.Double)(((java.lang.Double)field_CLAIMSSUM.getValue()) - ((java.lang.Double)parameter_TOP10CLAIMSUM.getValue())); <-------------------------------------------------------------------------------------------------------> 6 errors at net.sf.jasperreports.engine.design.JRJdtCompiler.compileReport(JRJdtCompiler.java:178) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:129) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127) at net.sf.jasperreports.e
ngine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:109) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:461) at java.lang.Thread.run(Unknown Source)