change decimal input

0
hi community,  for german users i need to change the representation of decimal inputs. how can i change decimal input to '0,15' instead of '0.15'? i am thankful for quick help    
asked
4 answers
1

Hi Marc,

If I'm not mistaken, Mendix handles localization of inputs for you. So German users should already see numbers formatted this way. Can you double check that the users have German set as their current language?

answered
3

Hey Marc,

it’s just a suggestion, but can’t you parse your decimal value to string and the change your string by replacing the ‘.’ with ‘,’.

and then show it to the user.

you can refer to the doc below,

https://docs.mendix.com/refguide/parse-and-format-decimal-function-calls/

 

Hope it helps!

answered
0

Thanks for your help, actually it was possible without workaround. i used the hint from marius and changed the language setting of the active user. language setting of the active user changed to german (was english before) and now everything works. Thanks to you anyway

answered
0

If you want to format the decimal in a format that isn’t your current locale then you can use the Decimal Tools module in the Marketplace. This gives a more fully featured version of the built in formatDecimal function that lets you specify separators.

https://marketplace.mendix.com/link/component/119981

Hope this helps.

answered