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

Announcements

No record found.

News and Announcements icon
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
    239,634 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
    239,634 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 802

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 636 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 534

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans