Hello,
thank you very much for the new version. There are very interesting new features.
Is there a more detailed description for these two functions?
1. appGiniHelper.LV ?
2. dv.getField("value").toNumber("de",2, true);
Especially with the second function I have tested a lot - but somehow I can't get it to work. I assume that I can use the German representation (1.000,00) when entering numbers in a field in the frontend - but on the database side the format 1,000.00 is saved ?
Thanks for the help and support.
Christian
new Version 2022.12 appGiniHelper.LV and dv.getField
Re: new Version 2022.12 appGiniHelper.LV and dv.getField
Thanks for your positive feedback, I really appreciate this.
For .LV
Stay tuned. I am still and constantly working on the new docs.
This is the current documentation:
http://www.appgini.de/docs/Javascript-L ... -view.html
Actually, it is just an example, already showing many options.
For .toNumber
Yes, in database it is necessary to store the value in MySQL number format*.
In UI, our library-function automatically converts from database format into local format on load.
Then, immediately before saving, we automatically convert back from local format to database format for correct storage in database.
Those two conversions (onLoad and beforeSave) allow us to use existing database tables for storage without further changes and preferred
Locale settings in user interface.
Hope this helps!
* Note: Values in MYSQL database will always be stored in format 1234.99 unless you change the internal storage structure of your database server which I can not recommend.
For .LV
Stay tuned. I am still and constantly working on the new docs.
This is the current documentation:
http://www.appgini.de/docs/Javascript-L ... -view.html
Actually, it is just an example, already showing many options.
For .toNumber
Yes, in database it is necessary to store the value in MySQL number format*.
In UI, our library-function automatically converts from database format into local format on load.
Then, immediately before saving, we automatically convert back from local format to database format for correct storage in database.
Those two conversions (onLoad and beforeSave) allow us to use existing database tables for storage without further changes and preferred
Locale settings in user interface.
Hope this helps!
* Note: Values in MYSQL database will always be stored in format 1234.99 unless you change the internal storage structure of your database server which I can not recommend.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools