Here in Spain, we use the comma as the decimal separator. The period is for thousands separations. So the regional setting for our computers are configured like this.
I would like my users to type with the numeric keyboard on the right. The problem is that using this keyboard, you have is a period, not a comma. so when you type in a numeric field, Ej, 45.3 Servoy Understands 453 The only way that servoy works fine is if I type, 45,3. (think about it how uncomfortable for numeric input is, typing numbers at the right part of the keyboard and coming back to the center of the keyboard looking for the comma)
Any ideas how can I make the period to by a comma for numeric input, or any other way to solve this ???
You can change your ‘locale’ settings in the preference panel. This should solve your problem.
Bare in mind that any formatting you do (in the properties of the field) should be with a point as decimal seperator. The locale settings will ‘translate’ this for you…
The numeric keyboard is not influenced by the locale setting. If your numeric keyboard sends . instead of , it is not configured properly on operating system level. Probably you are using a US keyboard layout?
This is a problem in the netherlands too! (on Windows, not on MAC!)
We use a ‘,’ for decimal caracters, and 9 out of 10 users have a US-keyboard. This is really a problem. Many of my customers complain about this, because other administration software, like KING, Exact UNIT4 etc.. has built in workarounds for this. So if you start such a program and use the . on the numeric keypad, it is returning a comma.
Is such workaround/preference doable in Servoy? or is there another solution?
HJK:
I would like to give this problem more attention!
This is a problem in the netherlands too! (on Windows, not on MAC!)
We use a ‘,’ for decimal caracters, and 9 out of 10 users have a US-keyboard. This is really a problem. Many of my customers complain about this, because other administration software, like KING, Exact UNIT4 etc.. has built in workarounds for this. So if you start such a program and use the . on the numeric keypad, it is returning a comma.
Is such workaround/preference doable in Servoy? or is there another solution?
Just like Exact, King and Unit4 developers: write your own hack. Look into windows utils that can fix the keymapping, for example on registry level, alternatively use a servoy event to do a replace.
Yes, I tried that allready, changing the registry is an option, not a nice one! but only works for win 2000/xp not on win98. Other tools work only for win98.
I thought this maybe easier to do in Java itself, instead of creating/changing many, many fields with and find&replace.
HJK:
Yes, I tried that allready, changing the registry is an option, not a nice one! but only works for win 2000/xp not on win98. Other tools work only for win98.
I thought this maybe easier to do in Java itself, instead of creating/changing many, many fields with and find&replace.
Apart from the fact that the 98 in win98 means it’s 6 years old (time for an upgrade?) there are many levels on which you could write a fix. If the fix has to be done on Java level you’d have to speak to Sun or the company that builds your JVM. We could also build a workaround on Servoy level but I’m fairly sure that upgrading to a newer version of windows is much more economical.
For Jan Aleman:
There are innovation on this problem?
How do you mean? I think using a correct keyboard layout is the solution.
btw is the layout you posted for Italian keyboards? If yes you might want to point that out before other European users get really confused: nearly every European country has a different keyboard layout.