Atozed Forums
TIWDBEdit with DataType = stNumber weird behavior - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: TIWDBEdit with DataType = stNumber weird behavior (/thread-4174.html)



TIWDBEdit with DataType = stNumber weird behavior - RenSword - 05-23-2024

when TIWDBEdit with DataType = stNumber is in non editable mode (browse mode), the value disappear. Am I missing some settings or is it bug?
For attached sample below, hit the toggle button to toggle between browse state and edit state.
[attachment=744][attachment=745][attachment=746]


RE: TIWDBEdit with DataType = stNumber weird behavior - Alexandre Machado - 06-04-2024

Hi Ren,

I'll check your demo and get back to you on this ASAP.

Cheers,


RE: TIWDBEdit with DataType = stNumber weird behavior - Alexandre Machado - 06-04-2024

I believe this is not a "bug" per se but an incompatibility between the Currency field formatting (from Delphi's TField) and our JavaScript layer.

I'll need a little more time to debug it and see what can be done about it.

I'll get back to you when I have more information.

Cheers


RE: TIWDBEdit with DataType = stNumber weird behavior - Alexandre Machado - 06-11-2024

Hi Ren,

I think I have a solution for this which requires a change in our JS numeric validation code. It will be available in the next release.

If you are using the latest IW version I can send you a patch so you can test it before the official release. If you want to receive the patch, please write me at alexandre at atozed dot com

Cheers


RE: TIWDBEdit with DataType = stNumber weird behavior - RenSword - 06-11-2024

Thanks alex, will wait for next release~, workaround using ExtraTagParams to add in the html attribute inputmode="decimal" for numeric input to help for phone virtual keyboard now, although this attribute does not help validating.