Changing number formats in text boxes
I have a coding question related to a web application.
My team is trying to make a numeric input field language/location specific. Meaning a number like 1234.56 can appear as either:
1,234.56 or 1 234,56
(Depending on the location/language)
In the component properties the numberformat is “%.2F” (which works for one of the needed formats). How can I get it to use the second format?
I have attempted to use the following code in the constructor:
Do $ctask.$objs.MY_TEXT_FIELD.$numberformat.$assign(“% ,2F”)
but it doesn’t seem to work.
Can I actually assign the number format like this at runtime? And if so, what would the format be for the second number format I specified?
Log in to reply.