new Version 2022.12 appGiniHelper.LV and dv.getField

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
Post Reply
christian
Posts: 15
Joined: 2022-07-31 08:33

new Version 2022.12 appGiniHelper.LV and dv.getField

Post by christian » 2022-12-21 06:33

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

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: new Version 2022.12 appGiniHelper.LV and dv.getField

Post by jsetzer » 2022-12-21 11:18

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.
Kind regards,
<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 readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply