Number Format

Stimulsoft Reports.JS discussion
JeffersonValim
Posts: 7
Joined: Wed Dec 15, 2021 10:05 pm

Number Format

Post by JeffersonValim »

I'm using the Format function as:

{ Format( "{0:#,0.;(#,0.;#)}", 170572 ) }.

In the Designer preview, it shows: 170,572

In the viewer it is shown: 1.7.0.5.7.2.00

The culture is pt-BR.

What could be happening?

I have to use the format function, because the formatting mask is dynamic and comes from the database.
Max Shamanov
Posts: 975
Joined: Tue Sep 07, 2021 10:11 am

Re: Number Format

Post by Max Shamanov »

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
#5893
JeffersonValim
Posts: 7
Joined: Wed Dec 15, 2021 10:05 pm

Re: Number Format

Post by JeffersonValim »

Sure!!!

Thanks!
Lech Kulikowski
Posts: 7287
Joined: Tue Mar 20, 2018 5:34 am

Re: Number Format

Post by Lech Kulikowski »

Hello

You are welcome.
Please let us know if you need any additional help.

Thank you.
JeffersonValim
Posts: 7
Joined: Wed Dec 15, 2021 10:05 pm

Re: Number Format

Post by JeffersonValim »

Please, any news about the problem?
Lech Kulikowski
Posts: 7287
Joined: Tue Mar 20, 2018 5:34 am

Re: Number Format

Post by Lech Kulikowski »

Hello,

We are still working on the problem. We will let you know when the solution is available.

Thank you.
Max Shamanov
Posts: 975
Joined: Tue Sep 07, 2021 10:11 am

Re: Number Format

Post by Max Shamanov »

Hello,

The issue is fixed. The fix will be available in the next release build.

Thank you
JeffersonValim
Posts: 7
Joined: Wed Dec 15, 2021 10:05 pm

Re: Number Format

Post by JeffersonValim »

Ok!

Thanks!!!
Lech Kulikowski
Posts: 7287
Joined: Tue Mar 20, 2018 5:34 am

Re: Number Format

Post by Lech Kulikowski »

Hello,

You are welcome.
masood_kh87
Posts: 1
Joined: Tue Jun 15, 2021 11:40 am

Re: Number Format

Post by masood_kh87 »

Hello,
I have data with optional decimal places however on my report I would like it to display with 0 or 3 decimal places.
I use Format Mask ###,###.### and this is ok in preview tab,
But when running it in javascript view mode is incorrect.
for example:
when my value is 2000 I must see 2,000 but in viewer I see 2,000. (point character at the end of value)

I use Stimulsoft Desktop Designer version 2020.4.1 and use Stimulsoft.Report.js version 2020.2.3
Attachments
stimulsoft report viewer in browser
stimulsoft report viewer in browser
javascript viewer.png (18.93 KiB) Viewed 3745 times
preview mode of report in stimulsoft desktop edition
preview mode of report in stimulsoft desktop edition
preview of stimulsoft desktop.png (3.33 KiB) Viewed 3745 times
Post Reply