3.2.0

Thousand separator

Hello,
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;
num.setTextFormat("#'###.##");

Of course I don't want to use a "String" cell since the sorting would no longer work.
Thanks in advance for your help!
Livio
July 17,
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)
July 18,

This topic is archived.

See also:


Back to support forum