Is it possible to check whether the field has autoincrement property or not?

dreez
Member Posts: 73
Hi!
I'd like to know if there is a way (in AL code) to see whether the Field has AutoIncrement property or not?
I've already looked into fieldrefs, Field Table, but nothing useful crossed my mind..
I'd like to know if there is a way (in AL code) to see whether the Field has AutoIncrement property or not?
I've already looked into fieldrefs, Field Table, but nothing useful crossed my mind..

0
Best Answer
-
1
Answers
-
1 -
1 -
Name DataType Subtype Length
ObjectMetadata Record Object Metadata
ObjectXmlDoc DotNet System.Xml.XmlDocument.'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
XMLAttribute DotNet System.Xml.XmlAttribute.'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
XMLNsMgr DotNet System.Xml.XmlNamespaceManager.'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
XMLNodeList DotNet System.Xml.XmlNodeList.'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
XMLNode DotNet System.Xml.XmlNode.'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
AutoIncrementText Text1 -
Thanks! Do you have an idea how to use that on cloud development? Unfortunately "Object Metadata" Table is available only OnPrem.0
-
Hi!
I think. I don't have any good ideas right now.1 -
Thanks anyway!0
-
Bad way.
Plan A.
Before: set static data(OnPrem mode)
After: use on cloud mode
Tab8618: Config. Template Header - set record with key "2000000136"
Tab8619: Config. Template Line - set records with data TableNo and FieldNo with autoincrement
if exist Tab+Field in Config. Template Line - is autoincrement field.
Plan B. wait MS answer.1 -
Last BC::210
Tab 370 Excel Buffer - update on Universal Code (available on cloud)
CU700 - not...
Wait next BC.
Many impotent system property: Table, Page, Report, Codeunit::Metadata (virtual table) - available only OnPrem mode.
Ahead many steps.0 -
Thank you, I will try the "Plan A" for now0
-
1. Define required table as temporary
2. Assign 0 (zero) to required field
3. Insert record
If value of required table changes => autoincrement field.0
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