Auto numbers

anolisanolis Member Posts: 16
edited 2000-11-04 in Navision Financials
Hello!
I just can't figure it out.
When I create a new table, I want the Primary key to be a number.
I want this number to be automatically generated, using the custom configuration settings of Navision.
How do I do that?????????

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You have to create a form for that, and set the AutoSplitKey-property of that form to 'YES'.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • anolisanolis Member Posts: 16
    Thank you very much!

    When I do this, the primary key must be an integer or decimal.
    Is it possible to use a CODE ot TEXT?


  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Not with AutoSplitKey, it's only numeric.

    If you want to work with No. Series, than have a look at Table 27 Item (Insert trigger) and Codeunit 396 NoSeriesManagement.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Sign In or Register to comment.