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

gi-spot

Members
  • Posts

    5
  • Joined

  • Last visited

gi-spot's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. There's nobody talkin' at me, I don't hear the words they're saying, only the echo of my mind.... :-Anybody could give a little help, please?
  2. Thanks a lot: I'm beginning to understand something about. Expression you posted to me seemed to work fine in ireport, but when I try to compile the report in "invoicex" it returns to me the error: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression: Source text: new Double(Double.parseDouble($F{importo})). Procession Timing? A "null" string? Any idea? I'm going slightly mad...but thanks in advance to everybody will help me. Post Edited by gi-spot at 05/10/2011 20:02
  3. I solved my main trouble. Now the last one: I have a string which represents a number (cost of a component). I need to use this cost for calculating something else. How can I convert a string to double for using in a textfield expression? Thank you all....
  4. It works! Code: Post Edited by gi-spot at 05/09/2011 23:07
  5. Hi everybody. I'm absolutely new in this kind of "programming" but I need it to edit default reports existing in "Invoicex". By that I had to set compatibility to JasperReport version 3.1.2. Then I created a new textfield in an existing report and the value that I need to get is: new Double( $F{price} + ($F{price} * $F{tax} / 100) ). $F{price} and $F{tax} are existing fields. Easily, I need calculating the final price for the buyer, including the tax, using existing fields. It seems to work fine in "ireport" but when I import it in "invoicex" and I try to print it, the following 3 messages appear: error while compiling the report: The operator " * " is undefined for the argument type(s) java.lang.Double, java.lang.Double value=(java.lang.Double)(new Double(((java.lang.Double)field_prezzo.getValue()) + (((java.lang.Double)field_prezzo.getValue())*(java.lang.Double)field_iva.getValue())/100))); //$_JR_EXPR_ID=57$ The next two message are similar, using ".getOldValue" instead of ".getValue". Where I got wrong? Can somebody hel me, please? Thanks a lot! (...and sorry for my english...)
×
×
  • Create New...