How can i replace dot with comma in iReport?

T.Els

At first this question is needed for iReport. I have to replace the dot sign with comma. My problem is the type of the field out of our database is BigDecimal und therefore does not exist any replace method. So I changed the type to String, but then I got this message:

it.businesslogic.ireport.gui.logpane.ProblemItem@820dc5 The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files

My code looks like:

new String($F{gewicht}.toString()).replace(".",",")

What can I do?

hering

You can use a textfield pattern:

<textField pattern="#,##0.00 €">

This will give you the german format. In this case this is for € values but you can skip the € and add more descimals if wanted:

<textField pattern="#,####0.0000">

Another approach whould be:

new DecimalFormat("#,##0.00 €", new DecimalFormatSymbols(Locale.GERMANY)). format(Double.parseDouble($F{gewicht}))

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

how to replace comma with dot

From Dev

Replace ,(comma) by .(dot) and .(dot) by ,(comma)

From Dev

How to replace number dot (.) with a comma (,) using java

From Dev

How to replace dot with comma in price format in php

From Dev

Can i use both a comma and a dot?

From Dev

Replace dot with comma on SELECT

From Dev

Need to replace "comma" with 'dot'

From Dev

How can I Accept only letter, number, comma (,) and dot (.) using php

From Dev

How can I use numbers with angular.js without comma and dot?

From Dev

Replace comma with dot in a input Javascript

From Dev

replace comma to dot in perl array

From Dev

javascript replace comma with dot / paypal

From Dev

Replace comma with dot in a input Javascript

From Dev

match float with comma and then replace comma with dot?

From Dev

How can I display "$£Ω€απ⅔" in Jasperserver PDF using iReport?

From Dev

How can I match characters in a string and palce a dot after each Letter using preg replace

From Dev

How can I replace every comma with a space in a text file before a pattern using PowerShell

From Dev

How can I replace a comma character in a CSV ONLY when included between " "

From Dev

How can I wrap a string separated by comma in Regex.Replace method and in quotes?

From Dev

Replace a dot with a comma inside a jQuery template

From Dev

replace comma with dot in scientific notation in r

From Dev

Replace comma with a dot while typing jQuery

From Dev

In Java, convert the dot to comma in DecimalFormat replace method

From Dev

Replace a dot with a comma inside a jQuery template

From Dev

Decimalformat: unwanted replace of dot with comma in JTable

From Dev

Replace dot character once entered by a comma in jquery

From Dev

Best way to replace comma with a dot jquery

From Dev

Can I replace comma separated string with specific pattern

From Dev

How can i split string with dot in makefile

Related Related

  1. 1

    how to replace comma with dot

  2. 2

    Replace ,(comma) by .(dot) and .(dot) by ,(comma)

  3. 3

    How to replace number dot (.) with a comma (,) using java

  4. 4

    How to replace dot with comma in price format in php

  5. 5

    Can i use both a comma and a dot?

  6. 6

    Replace dot with comma on SELECT

  7. 7

    Need to replace "comma" with 'dot'

  8. 8

    How can I Accept only letter, number, comma (,) and dot (.) using php

  9. 9

    How can I use numbers with angular.js without comma and dot?

  10. 10

    Replace comma with dot in a input Javascript

  11. 11

    replace comma to dot in perl array

  12. 12

    javascript replace comma with dot / paypal

  13. 13

    Replace comma with dot in a input Javascript

  14. 14

    match float with comma and then replace comma with dot?

  15. 15

    How can I display "$£Ω€απ⅔" in Jasperserver PDF using iReport?

  16. 16

    How can I match characters in a string and palce a dot after each Letter using preg replace

  17. 17

    How can I replace every comma with a space in a text file before a pattern using PowerShell

  18. 18

    How can I replace a comma character in a CSV ONLY when included between " "

  19. 19

    How can I wrap a string separated by comma in Regex.Replace method and in quotes?

  20. 20

    Replace a dot with a comma inside a jQuery template

  21. 21

    replace comma with dot in scientific notation in r

  22. 22

    Replace comma with a dot while typing jQuery

  23. 23

    In Java, convert the dot to comma in DecimalFormat replace method

  24. 24

    Replace a dot with a comma inside a jQuery template

  25. 25

    Decimalformat: unwanted replace of dot with comma in JTable

  26. 26

    Replace dot character once entered by a comma in jquery

  27. 27

    Best way to replace comma with a dot jquery

  28. 28

    Can I replace comma separated string with specific pattern

  29. 29

    How can i split string with dot in makefile

HotTag

Archive