-
11 Aug 2010 12:49 AM #11
-
16 Aug 2010 5:30 AM #12
Hi!
There are two problems with v02 of the plugin:
- values larger than 999999 don't work. When editing or during getValues() only ONE thousands separator is removed. Result: 1.000.500,50 € => 1000.500.50 which is obviously not a valid floating point value.
- setValues() does not work using JSON floating point values. If 1000.5 is stored in the database the plugin formats the value to 10005,00 - ignoring the "."
-
7 Oct 2010 4:18 AM #13
see formatHiddenValue, just replace
rawAmount = String(rawAmount).replace(this.currencyConfig.thousandsSeparator,'');
with this one
var replacer = RegExp(this.currencyConfig.thousandsSeparator,'g');
rawAmount = String(rawAmount).replace(replacer,'');
'g' is for global search and replace
use the same way for cleanForEdit as well
-
8 Oct 2010 12:00 AM #14
Thanks for your help, but you have to escape the thousandsSeparator to get a valid regexp:
PHP Code:var replacer = new RegExp('\\'+this.currencyConfig.thousandsSeparator,'g');
-
28 Jan 2011 1:06 AM #15
it's pretty good , but useless
it's pretty good , but useless
Hi, I've tried your methods, but 'replacers' didn't help neither of firdefex nor MarkusL. In Edit mode number stays with one comma (thousandsSeparator).
What I find even worse - that I cannot get this value without format-signs - for example, I want to get it's value and make some arithmetic and write result down in other field: neither getForm.findfield("demo") nor getCmp("id_demo") nor smth. else helps.
Only if I send whole form, I can see in getForm().getValues(true) it's right Number value - without currency format.
Maybe somebody knows, whether it's possible to get some kind key/values or some kind of getField from getForm().getValues(true) or you know other solution ? Thank you !
-
24 Mar 2011 1:05 PM #16
Bug with submited value when nothing is entered in currency field
Bug with submited value when nothing is entered in currency field
FYI:
It appear that submitted value of currency field is 'undefined' if no value is entered (field is blank).
We changed line 79 of currency plugin to:
from:Code:return '';
That fixed the problem.Code:return;
-
20 Apr 2011 6:31 AM #17
This is an absolutely amazing plugin. Works perfect. Thanks so much, saved me a lot of time and made our excel users so happy

-
20 Apr 2011 9:29 AM #18
-
10 Apr 2012 1:19 PM #19
Great plugin. Can you create a Sencha Touch 2 version as well?
-
15 May 2013 8:33 AM #20
What about an Ext 4.x version ??
Similar Threads
-
Currency / money field with selectable currency
By simplessus in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 22 Jan 2011, 3:24 AM -
Personnal composite for currency field
By Kirua007 in forum Ext GWT: DiscussionReplies: 1Last Post: 23 Apr 2010, 4:34 AM -
[EXTJS 3.0.0] Currency Field Component : Setting value via Javascript
By JSCoder in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 8 Jan 2010, 1:39 AM -
Number Field with currency formatting
By JSCoder in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 2 Sep 2009, 9:39 AM -
How to format numeric field in form as US currency
By dlbjr in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 12 Feb 2008, 12:05 PM




Reply With Quote