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 :
Microsoft Dynamics AX (Archived)

Table field increment

(0) ShareShare
ReportReport
Posted on by

Hello guys!

I am trying to create a field on my table, which have to show Order of records. First record should be 1, second 2 etc. in this field of course. Field is Integer. But i don't want to use a number sequence. Is it possible?

Thanks!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi,

    U can add code(logic -> lastvalue +1) in  insert method so that every time it will get incremented

    Thanks

  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi CrazyJuras,

    This is possible. Create an index on your table with the "LineNum" field as last field. This index should not allow duplicates. Then on the form datasource you can set the property CounterField to "LineNum".

    In this way the field is auto incremented. I thought this will only work with a decimal field as it should be possible to insert lines in between.

    Another option is to use x++ logic on the insert method of your table to find the last number used and increment  with 1.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans