Can't save numeric field with period(.) as the decimals separator

This is an AS/400 server. If I enter 101.54, Javascript recognises it as numeric since my preferences are set to the period(.) being the decimals separator on my Windows.

However, I get an unrecognized characters after number exception when I try to commit the changes.

Conversely, I enter 101,54 and domino saves it as a numerci value, but Javascript doesn’t recognise it as a Number element.

I’ve checked the forums and I found a reference to a server setting pertaining to Server locale, or Regional Server location or Web user preferences. They instruct us to go to the Internet Protocols/Domino Web Engine in the server document, but there is no Web User preference settings area in the NAB?

Can anyone help me? It is imperative that my users can have a preference and save the data in their own format but that the displays are all OK for each user.

FYI my form is using innerHTML to display the computed values of the form (computed from JS functions) and I have a computed field to store the data as well as an HTML INPUT tag for each computed field effectively allowing me to set the computed fields via Javascript.

This way I don’t ever refresh the browser so navigation is uninterrupted and the browser does all the computing, not the server.

Let me know if you can help, and thanks for reading the long post if you made it all the way down here.

Luc

Subject: Can’t save numeric field with period(.) as the decimals separator

is it possible to check if the value has a decimal or a comma during each phase (domino or javascript) then just change the it from decimal to comma depending whos using the number (either domino or javascript). not sure if this is possible and to do this u’ll have to convert ur number to a string to parse it and change the comma/decimal.

ST

Subject: RE: Can’t save numeric field with period(.) as the decimals separator

I thought of that, but that’s a LAST RESORT sort of fix. It’s unfathomable to me that domino would be unable to use the user’s preference to store the numbers.

I’m hoping not to have to do that because it would be a major headache I don’t need right now.

EDIT: Also, if I use commas, because my preference is a period(.) Javascript truncates all the decimals and adds only whole numbers. It is expecting a period as per my preferences.

Luc