:: Forum >>

Thousand separator

I would like to display my number with the following format: 1'000.50 instead of 1,000.50
It was working with version 1, but it is apparently no longer the case with version 2.
Here's my code:

var num = new AW.Formats.Number;

Of course I don't want to use a "String" cell since the sorting would no longer work.
Thanks in advance for your help!
Thursday, July 17, 2008
Unfortunately this is something you have to fix in the source code. The format parsing pattern is located in /source/lib/formats/number.js, line 52. You have to add the separator char to the list [ .,] pos 42-45.

The compressed aw.js contains this code at line 29, char 708-713.

Alex (ActiveWidgets)
Friday, July 18, 2008

This topic is archived.

Back to support forum

Forum search