auto increment

flyingjuju
Member Posts: 35
Hello,
i want to use the auto increment in the database for a code field.
It is the primary key in the table.
How can I create this auto increment ? it is a property for the field ?
I have to do it in code ?
Thank you for your help
Cordially
i want to use the auto increment in the database for a code field.
It is the primary key in the table.
How can I create this auto increment ? it is a property for the field ?
I have to do it in code ?
Thank you for your help
Cordially
0
Answers
-
You can link it to a Number Series... however, you have to anyways write some code to generate the new number.
Chn0 -
Autoincrement property can be used only for numeric type fields (integer, biginteger)
If you use code type field then you have to do some development (using no. series or not)
Do you really require an alphanumeric pk? Why do you use code type?Ufuk Asci
Pargesoft0 -
you're right. I will use an integer primary key.
What is the property to be used for autoincrement?
Can you explain please?0 -
Go to properties of field, change autoIncrement = yesUday Mer | MS Dynamics NAV Techno-Functional Consultant0
-
i don't have this property in the field in the table
I'm in navision financial 2.60 -
Then you should write code itUday Mer | MS Dynamics NAV Techno-Functional Consultant0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions