Customer Card: Where's the country variable?

njhansen
Member Posts: 37
Newbie question.
As an educational experience, I was trying to create a simple contact card, and looking for an example of calls to the Lookup/Validate City/PostCode family of calls on the Post Code table. The Customer table has a call to it, but I'm unsure where it is getting the Country parameter. For example:
City - OnLookup()
PostCode.LookUpCity(City,"Post Code",County,TRUE);
City and "Post Code" are both fields from the customer record, but the Country is not; closest thing is called Country/Region Code there and is Code:10, not Text:30. I don't see Country in the C/AL Globals or the locals for any trigger involved. Still, the customer table is obviously compiling properly, so it must be somewhere. I'm apparently missing something obvious.
Questions:
1) Where is the Customer table call getting the field/variable/entity named Country?
2) What does "Go To Definition" (Ctrl+F12) actually do? I had hoped that would help me find Country, but it doesn't do anything that is immediately obvious to me (for that or anything else I tried it on).
As an educational experience, I was trying to create a simple contact card, and looking for an example of calls to the Lookup/Validate City/PostCode family of calls on the Post Code table. The Customer table has a call to it, but I'm unsure where it is getting the Country parameter. For example:
City - OnLookup()
PostCode.LookUpCity(City,"Post Code",County,TRUE);
City and "Post Code" are both fields from the customer record, but the Country is not; closest thing is called Country/Region Code there and is Code:10, not Text:30. I don't see Country in the C/AL Globals or the locals for any trigger involved. Still, the customer table is obviously compiling properly, so it must be somewhere. I'm apparently missing something obvious.
Questions:
1) Where is the Customer table call getting the field/variable/entity named Country?
2) What does "Go To Definition" (Ctrl+F12) actually do? I had hoped that would help me find Country, but it doesn't do anything that is immediately obvious to me (for that or anything else I tried it on).
0
Answers
-
1.) The field is called County (not Country) and is field no. 92 on Customer, Vendor, Contact, Bank Account ...
If it's not on the form, it is probably just an empty field on the record. (I guess it is localisation dependant, whether it is on the form or not.)
2.) Ctrl+F12 is supposed to take you to the place in C/AL where the token under the cursor is defined. I have not had the opportunity of checking this new feature out myself.0 -
Oh. :oops:
That makes sense. Thanks.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