Integer format without comma

salvadormarchan
Kilo Guru

Hi All,
I created a field within a certain table having an integer data type. I tested the value and it automatically provides a comma after every 3 decimal places.

Question: How do I disable this? We don't want the comma. I tried looking at the wiki (and googled it) but no avail.

Thanks,
Dor
(Day 45)

1 ACCEPTED SOLUTION

I have overcome this dilemma weeks ago. I am now writing it to share with you...

What I did was created another field having Integer datatype along with the required field that should have no comma (chosen data type is String); In the form, I created a section called 'Admin Use' and created a client script that hides it from non-admin users. The Integer field is in this section. So, when I perform import, I populate both fields. One for Business Analyst's use and one for us (Admin). SO, I can sort records with an integer-behaviour and not a string-behaviour.

If there's another way of doing this, please let me know. Thanks.


View solution in original post

15 REPLIES 15

Hello,

I had the same issue, and finally got it showing without decimals by adding .toString() to the value:

gs.addInfoMessage(gs.getMessage('{0} copies of this assets are being created in the background.', (current.bulk_creation_count - 1).toString()));

If it can help anyone...

Cheers