Report - Use GET function on no-primary key field

wyper33
Member Posts: 2
Hello everybody,
I'm just started development in Navision and I have a problem using the GET function to show data.
I would like to retrieve a value in table [Vendor Ledger Entry] joined with table [VAT Entry]. Unfortunately, column [Entry No_] is the primary key and I can't use it to join my table. I would like to use [Document No_] but like it's not define as primary key, I got an error message :
"The expresion Code cannot be type-converted to a Option Value"
After some research, nobody has been able to give an answer to my problem. Can you help me please ?
Thanks in advance.
I'm just started development in Navision and I have a problem using the GET function to show data.
I would like to retrieve a value in table [Vendor Ledger Entry] joined with table [VAT Entry]. Unfortunately, column [Entry No_] is the primary key and I can't use it to join my table. I would like to use [Document No_] but like it's not define as primary key, I got an error message :
"The expresion Code cannot be type-converted to a Option Value"
After some research, nobody has been able to give an answer to my problem. Can you help me please ?
Thanks in advance.
0
Comments
-
That's because the GET function only works with primary keys.
So to answer your question "Use Get function on no-primary key field". It is not possible, and never will be possible.
Maybe you should look into filters, the find(set/first/last) functions and the C/Side introduction course. F1 can help too0
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