Thanks Thomas,
I did filed a bug on this.
http://bugzilla.qooxdoo.org/show_bug.cgi?id=7338


On Tue, Apr 9, 2013 at 12:49 PM, thron7 <[email protected]>wrote:

>
> On 04/09/2013 08:12 AM, baskar wrote:
>
> Sorry, my previous post was not aligned properly, That's why I am
> re-posting..
>
>
> Hi all,
>
> I am using qx.util.format.NumberFormat for my application.
>
> qx.util.format.NumberFormat.format(number) is working only 3 digits numbers,
> If i pass 10000 as an argument, it throws the following error:
>
> 192478 qx.io.remote.RequestQueue[150-
> 0]:
>       Request qx.io.remote.Request[4058-0] handler _oncompleted threw an
> error:
>         TypeError: Object # has no method 'indexOf'
> qx.locale.Manager:256:24,
>         *qx.locale.Manager:403:29,
>         qx.locale.Manager:371:19,
>         qx.locale.Number:53:46,
>         qx.util.format.NumberFormat:209:46, *
>         qx.Interface:457:31,
>         sumo.Application:831:64), :57:38,
>         sumo.Application:989:13,
>
>
> *Here is the code I have used to format:
> *
> /alert(typeof(amount)); // ===> to verify the input , which gives "number"
> as a type. formatter = new
> qx.util.format.NumberFormat({maximumFractionDigits:2, minimumFractionDigits:
> 2, });
> amount = formatter.format(amount); /
>
> Is this is a bug ? Or am i doing wrong? I am using qooxdoo 2.1.1
>
>
> You have to stick to the API [1]. NumberFormat only takes a locale
> specifier in its constructor, not a map of properties. You have to set the
> properties in a separate .set() call [2]. But please open a bug for this,
> the .format() call shouldn't fail like this because of a wrong constructor
> parameter. Include your code as a Playground sample.
>
> T.
>
>
> [1] http://demo.qooxdoo.org/2.1.x/apiviewer/#qx.util.format.NumberFormat
> [2] http://tinyurl.com/c9sc6vl*
> *
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to