How to create simple lookup fields
selece28
Member Posts: 316
Hi all,
I currently want to create 3 lookup fields from one table in a Form.
This is the scenario
I create a new table consist of 3 fields, let say Field A, B, and C.
I want to add this 3 fields in Sales Quotation Form
and it can do lookup like [Sell-to City] or [Sell-to Post Code] field
So I add 3 new fields in Sales Header table, Field A,B, and C
I see that NAV use a Code Unit(with lots of codes) to do this, its so complicated, Is there any easier way? :-k
Thanks in advance.
I currently want to create 3 lookup fields from one table in a Form.
This is the scenario
I create a new table consist of 3 fields, let say Field A, B, and C.
I want to add this 3 fields in Sales Quotation Form
and it can do lookup like [Sell-to City] or [Sell-to Post Code] field
So I add 3 new fields in Sales Header table, Field A,B, and C
I see that NAV use a Code Unit(with lots of codes) to do this, its so complicated, Is there any easier way? :-k
Thanks in advance.
______________
Regards,
Steven
Regards,
Steven
0
Answers
-
The simplest scenario to create lookup is following:
1. Add field to table (Sales Header in your example)
2. Set up Table relation of this field (in properties) to table you want
3. There must me set up the LookupFormID (in table properties) in related table.
If any of these steps can't be done, you have to input a code snippet to OnLookup trigger of new field (on table or on form, but table is much better).0 -
Yes this can be done, but it still wont refresh the other fields
If i change A, the B and C wont change, or If i change B the A and C wont change. How to do this?
I can only think of doing it by writing a CAL codes, Or can we do it from properties?
Thanks______________
Regards,
Steven0 -
It can be done only by code in OnValidate trigger.0
-
Ow if that the case
Thank You lubost
I'll do all by C/AL Codes then
______________
Regards,
Steven0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions