Documentation on complex data types

alien251
Member Posts: 80
I'm looking for some documentation on one of the complex data types, namely the record data type. I'm trying to call the get method of this type (sub type of purchase header) to retrieve the record from the database, passing the "No.". I'm getting an error: The expression Code cannot be converted toa Option value.
PurchHeader.GET("No.");
Is the GET method expecting an Option? Am I using this incorrectly...?
Thanks,
Dan
PurchHeader.GET("No.");
Is the GET method expecting an Option? Am I using this incorrectly...?
Thanks,
Dan
0
Answers
-
GET is used to retrieve one uniquely identifiable record, and the parameters that are expected are the primary key fields in their right order. The primary key of the Purchase Header table is "Document Type, No.". The data type of the first field is 'option'.
You must specify ALL primary key fields. So to retrieve your purchase order, you doPurchaseHeader.GET(MyDocumentTypeValue,MyDocumentNoValue);
If you don't specify all primary key values, you cannot uniquely identify the record, and you can therefore not use GET.0 -
Thank you! For future reference, do you know where I might find that in the product documentation? I can't say that I made an exhaustive search of the documentation but I did look without any luck... It was pretty 'brief' in terms of the complex data types.
Thanks again!!
Dan0 -
You're welcome, always happy to help
There's the C/SIDE Reference Guide, which is on the Help menu. I use the Search tab all the time. In the Doc folder on your product disk you'll find all the pdf's for installation, and one special document called the "application Designer's Guide", file name w1w1adg.pdf, which is the most comprehensive document about the technical details.
For NAV2009 they combined all the help files and made it all available online too: http://msdn.microsoft.com/en-us/library/cc160853.aspx0
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