[Simple Currency Input] Decimal Problem

[Simple Currency Input] Decimal Problem

  
Forge Component
(13)
Published on 2015-06-05 by César Santos
13 votes
Published on 2015-06-05 by César Santos
Hi Cesar,

Firstly, thanks for the nifty component. However I have discovered a little problem using the following default values.

Currency="$", Decimals=2,Decimal Sep=".", ThousandsSep="," - when you enter say 10.10 it only takes 10 as the value. i.e. it appears to only accept the non-decimal value.

If I use the European way (your defaults) it accepts the decimal value when using a "," i.e. 10,10

Attached is espace I was testing. Also in my PE

https://bailer.outsystemscloud.com/CurrencyInput/SampleScreen.aspx




Hi Mark,

Yes it's true. I have detected the same issue and already upload a new version with the fix for that and some other little improvements.

Added Features
  • Only allow numeric keys, decimal and thousands separator
  • Remove mask on focus (yes or no)

Thank you for feedback and hope to have helped.

Hi again Cesar,

Cool new features with the hide mask on focus. :) 

Have found another problem - see my attached e-space or review on my PE e-space

https://bailer.outsystemscloud.com/CurrencyInput/SampleScreen.aspx

In my example if you say enter 22.22 in the 1st field the onchange event it adds a value to the next currency input field & then use ajax to refresh that container containing the 2nd field - when you press TAB to move to this second field instead of displaying 2.22 it only displays 2 however the actual value on the server side is correct saying 2.22 - then if you make no changes to the field and press tab again it then displays 2.22 in the field???

Cheers, Mark


Hi Mark,
 
For now I recommend not to use the same onchange activity on your widgets.

As soon as I can, I'll see what I can do.
 
Regards
Hi Mark,

Fixed in last version.

BugFixes
  • Clean Mask (on focus)
Thank you for feedback and hope to have helped

Regards

Hi Cesar,

Works well now! 

Cheers
Hi Cesar,

It seems that it will not do negative (-) numbers... I had a quick look at your Javascript and added keycode 109 & 189 to it but it did not work?

I tried with and without the mask setting. Still no luck....

Cheers, Mark
Hi Mark,

Solved in last release beta 1.2.2.

Cheers,
César