Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Bug with number formatting

    Hi,

    I am using SmartGWT 6.1p 2020-10-10 (latest nightly) and I have the following problem with a number field.
    Please refer to my screenshots.

    The field is defined like this:

    Code:
    FloatItem field = new FloatItem("myFloatItem");
    field.setFormat("¤,0.00");
    and its definition:
    Code:
    <field name=[I]"[/I]myFloatItem[I]"[/I] type=[I]"localeCurrency"[/I] />
    1.png : I insert 56,56 into the field Click image for larger version

Name:	1.png
Views:	100
Size:	1.2 KB
ID:	263820
    2.png: Focus is left. The value (correctly) changes to €56,56 Click image for larger version

Name:	2.png
Views:	79
Size:	831 Bytes
ID:	263821
    3.png: I click on the field. The value (incorrectly) changes to 56.56 Click image for larger version

Name:	3.png
Views:	75
Size:	1.2 KB
ID:	263822
    4.png: Focus is left. The value (incorrectly!) changes to €5.656,00 Click image for larger version

Name:	4.png
Views:	78
Size:	1,008 Bytes
ID:	263823

    What may be happening here? This looks like a bug.
    Last edited by edulid; 14 Oct 2020, 04:45.

    #2
    What locale are you in? Is the decimal separator set to "," in your locale? If not, you would get the result you're seeing.

    Comment

    Working...
    X