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
0
Answers
You must specify ALL primary key fields. So to retrieve your purchase order, you do If you don't specify all primary key values, you cannot uniquely identify the record, and you can therefore not use GET.
RIS Plus, LLC
MVP - Business Apps
Thanks again!!
Dan
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.aspx
RIS Plus, LLC
MVP - Business Apps