Jump to content
We've recently updated our Privacy Statement, available here ×

siva.sw

Members
  • Posts

    2
  • Joined

  • Last visited

siva.sw's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Thank yor for giving the above updates..but we i tried to apply the changes it is getting the below exception msg: $V{SUM_BUY}.equals("BUY") ? $F{AMOUNT} : " added this peace of code -------- Compiling to file... .PL_Report.jasper -> D:Apache-ant-1.8.1New ACB SVC BII ProjectiReport-1.2.8iReport-1.2.8DAILFXPOS.java Errors compiling .PL_Report.jasper! net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. Syntax error on token "else", delete this token value = (java.math.BigDecimal)(((java.math.BigDecimal)variable_SUM_BUY.getValue()).equals("BUY") ? (((java.math.BigDecimal)field_AMOUNT.getValue())) : (else null)); <--> 2. Syntax error on token "else", delete this token value = (java.math.BigDecimal)(((java.math.BigDecimal)variable_SUM_BUY.getOldValue()).equals("BUY") ? (((java.math.BigDecimal)field_AMOUNT.getOldValue())) : (else null)); <--> 3. Syntax error on token "else", delete this token value = (java.math.BigDecimal)(((java.math.BigDecimal)variable_SUM_BUY.getEstimatedValue()).equals("BUY") ? (((java.math.BigDecimal)field_AMOUNT.getValue())) : (else null)); <--> 3 errors at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:193) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:105) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:109) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:510) at java.lang.Thread.run(Unknown Source) ------
  2. how to use if else condition i have written but it is getting an error message and hw type from string to bigdecimal $V{SUM_BUY}.equals("BUY") ? ($F{AMOUNT}) : (else null) --amount is bigdecimal and sum_buy is string...
×
×
  • Create New...