1

i want to generate raport in ireport with existing database. I have fields in strings $F{Price} and varible $V{SumPrice} in strings too, and need to convert to integer and sum whole column with field Price

Can in do it in ireport ? I dont have access to the database.

john_staff
  • 15
  • 1
  • 1
  • 6
  • I forgot:string value(for example - 250) as String and I want to sum it to integer print on textfield, How to do this – john_staff Oct 28 '13 at 09:10
  • 1
    possible duplicate of [formatting a string to a currency format in jasper report](http://stackoverflow.com/questions/10913495/formatting-a-string-to-a-currency-format-in-jasper-report). You can use variables – Alex K Oct 28 '13 at 10:11

1 Answers1

3

You should set $V{SumPrice} "Variable class" property to java.lang.Integer and "Variable Expression" property to Integer.parseInt($F{Price}).

Dmytro Plekhotkin
  • 1,965
  • 2
  • 23
  • 47