web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to add thousands separated (,) format in Textbox with int data type

(1) ShareShare
ReportReport
Posted on by 222
Hi,
 
I have int field data type in table as I don't need dcimal points value, I have to show on a form header. It is working fine. I need to formate (,) as thousands separater. 
 
Please suggest which extended data type I can use or there some other solution for it.
 
I know I can do this by change the type to Real and use extended data type "AmountMST", but I don't want to change the data type.
 
 
Thanks.
 
I have the same question (0)
  • Ariba Mehdi Profile Picture
    166 on at
    Hi there,

    I think you mean to use 1000 separator on the form field value like, 2000 -> 2,000.
     
    Navigate to the field control on the form and change the property ThousandSeparator = Comma.
     


    Hope it helps!

     
  • Martin Dráb Profile Picture
    237,948 Most Valuable Professional on at
    An integer is a number, such as 5 or 999. It's a single value, not a list of values that need to be delimited. Therefore I have no idea why you're saying that you need to formate it comma separated. Please give us more information about your requirements.
  • nbhatti2001 Profile Picture
    222 on at
    Thanks Ariba,
    For the corection, I need thousands separator. I try to find it in field property on form but failed. Here is the property list screen shot from my VM. I have sort the properties alphabatically. I have trid with the table field property as well. I am using D365FO VM.
     
     
  • Suggested answer
    Martin Dráb Profile Picture
    237,948 Most Valuable Professional on at
    Moved from Dynamics AX forum.
     
    Are you sure that you want to format this single integer field in a different way than all other integers in the system?
     
    If you mean that you want to format it as a real number, but without decimal numbers, you can - use a real edit control and set No Of Decimals properties. Usually you shouldn't hard-code details of the format (such as ThousandSeparator); it should come from each user's regional settings. By the way, ThousandSeparator is a property of real controls, not integer controls.
     
    If you want to store the number as int in database and display is as a real, you can use a display (or edit) method.
  • Ariba Mehdi Profile Picture
    166 on at
    Override the field control method formatStr and use the format: #,0;(#,0) to get 1000 separator. 



    Try this:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans