lookup value of other tbl where condition is in different tb
makara
Member Posts: 25
Dear everyone,
I have a problem in looking up value from other table where my look up condition value was stored in another table. Sound confusing, right? please see below for a better understanding :
I am on table "Sales & Receivable Setup", my customize field need to add TableRelation property like below :
Look up to "Dimension Value".Code
Where "Dimension Value"."Dimension Code"="General Ledger Setup"."Global Dimension 1 Code"
Please give me some advice on this problem.
Thanks in advance,
Makara
I have a problem in looking up value from other table where my look up condition value was stored in another table. Sound confusing, right? please see below for a better understanding :
I am on table "Sales & Receivable Setup", my customize field need to add TableRelation property like below :
Look up to "Dimension Value".Code
Where "Dimension Value"."Dimension Code"="General Ledger Setup"."Global Dimension 1 Code"
Please give me some advice on this problem.
Thanks in advance,
Makara
0
Answers
-
Just go to TableRelation, click the assistbutton, and in TableRelation you can put the filter.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
makara wrote:I am on table "Sales & Receivable Setup", my customize field need to add TableRelation property like below :
Look up to "Dimension Value".Code
Where "Dimension Value"."Dimension Code"="General Ledger Setup"."Global Dimension 1 Code"
It's not possible to do this in general (a table relation filter based on value in a third table) using the TableRelation property, instead you would need to achieve this via code in the OnLookup trigger (to allow the user to lookup valid values) and also add code to the OnValidate trigger (to check for valid values if the user types in a value).
However, having said the above, there is an alternative to achieving what you want for your specific scenario above (I.e. a lookup to Global Dimension 1 Values) by entering the following in the TableRelation property...
"Dimension Value".code WHERE (Global Dimension No.=CONST(1))0 -
Thx Kishorm and kriki,
I got ideas from you, guys. Now I create another page. when user click on "Assist button", I call my page and set filtered table variable to that page. it works as expected.0
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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 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