Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Answered

how Line No. and serial no. increment in custom table?

Posted on by 221

Hi all,

I have custom table in which two fields Sr No. and Line No.values should get automatic as 

Serial No. must like 1,2,3, .... so on 

line no. 1000,2000,3000....so on 

how we get such in table

or can anyone tell me how in sales line table: line No. field get value as 1000,2000....so on 

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,023 Moderator on at
    RE: how Line No. and serial no. increment in custom table?

    for more help just check Page no. 46, How the Line no. is working there, Hope it will help you.

  • DineshM Profile Picture
    DineshM 221 on at
    RE: how Line No. and serial no. increment in custom table?

    thanks for response sr No. is working

    for line No. added in last of primary key and page property autospiltkey to yes

    but it increament serial no as 10000,7500,8750

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,023 Moderator on at
    RE: how Line No. and serial no. increment in custom table?

    For Line No.

    1. Add Line No. in last of the Primary Key

    2. Set Page Propety AutoSplitKey = Yes

    For Sr. No.

     1. In Field Property of Table set AutoIncrement = Yes

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans