Page 1 of 1
Changing Decimal point to Decimal comma
Posted: 2025-01-16 11:42
by RonP
I've defined DECIMAL type fields. The value that is to be entered should be with a Comma (,) instead of the standard point (.)
So: I want :123,45 but has to be inputed as: 123.45.
Is this to be changed ?
The App settings are:

- App settings.jpg (92.28 KiB) Viewed 13248 times
Ron
Re: Changing Decimal point to Decimal comma
Posted: 2025-01-17 13:49
by RonP
Hi,
Ithought that I found the solution
At every field definition you can set de Data Format, I set that to a comma setting (The last option)
Then I put a value in the field, the value of course with a comma, no problem
However, after saving the result was... comma became period AND the given value was truncated

- 01-Dataformat.jpg (78.33 KiB) Viewed 13235 times

- 02-Input Decimal comma.jpg (27.65 KiB) Viewed 13235 times

- 03-Resuls-truncated.jpg (26.64 KiB) Viewed 13235 times

- 04 MySql Defined.jpg (13.6 KiB) Viewed 13235 times
So, what goes wrong?
Re: Changing Decimal point to Decimal comma
Posted: 2025-01-18 16:08
by RonP
Hi,
Anyone a solution for a Decimal comma?
Ron
Re: Changing Decimal point to Decimal comma
Posted: 2025-02-04 21:11
by SkayyHH
Hi,
you can change the data formats in "dataFormats.cfg" in AppGini\add-ons folder.
Re: Changing Decimal point to Decimal comma
Posted: 2025-02-05 15:54
by RonP
i SkayyHH ,
Thank you for the reply, however
The field is not a currency field, so I've selected Points for Thousands and Comma for 2 decimals
The value given in the field has to be (I want) with a decimal point instead the wanted decimal comma
Re: Changing Decimal point to Decimal comma
Posted: 2025-02-07 14:01
by SkayyHH
Oh, i understand.
Sorry, i can´t help with this. This need to be coded from a professional

Re: Changing Decimal point to Decimal comma
Posted: 2025-02-07 14:02
by SkayyHH
Have you ask chatGPT? It can help with code and know how to place the it.
Re: Changing Decimal point to Decimal comma
Posted: 2025-02-08 09:03
by RonP
Hi Skayyhh,
Thank you for your reply, however I’m not going to program my self.
If this functionality doesn’t work well then it is up to AppGini to modify
Ron
Re: Changing Decimal point to Decimal comma
Posted: 2025-02-08 15:41
by Marcelo Vitoria
Hello Ronp
Add this line to the dataformats.cfg file:
DESCRIPTION IN MENU ( Sample 21.345,67); CONCAT(' ', FORMAT(%%FIELD%%, 2, 'de_DE'))
It solves the problem when displaying the field, but it does not display when the field is being edited.
There may be problems with fields where "Show column sum" is checked, AG sometimes cannot display the field correctly, but I believe it is a bug in AG because it does not occur in all tables.
I hope this helps and good luck.
Re: Changing Decimal point to Decimal comma
Posted: 2025-02-08 16:00
by RonP
Hi Marcelo,
Great, it works. Unfraternally not on the Total field, but I can live with that
Thank you
Ron