Hello, I have a question.
I have a model like this:
db.define_table('buy_invoices',
...
Field('amount', 'double', default=0.0, label="Importo")
...
)
and I create a page with sqlform
form = SQLFORM(db.buy_invoices)
when the for is displayed there if a try to copy into the amount field a
string with decimal and thousand separators the form conserve the first
separator and delete the others. For example:
if I copy the string "1.255,76" the form field becomes "1.25576" the same
if I change the separators "1,255.76" becomes "1,25576"
is there a way to keep the format?
Thanks in advance
Cristian
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.