Filter Item List in Sub Form - Based on Parent Form

leikelman
Member Posts: 31
I am not sure what I need to happen can actually be done, but here is the situation.
In the Item Table (Table 27), we have a field called "Customer No.". The default sales order form (Form 42 - Sales Order) uses a subform to enter the item detail information (Form 46 - Sales Order Subform). What I would like to happen is when someone is in the subform and looks up the items, by going into the No. column and either hitting the lookup arrow or pressing F5, I would like that list (Form 31 - Item List) filtered based on "Sell-to Customer No." from the Sales Header = "Customer No." from the Item table.
Please let me know if you need clarification on anything.
Thank you,
Leo
In the Item Table (Table 27), we have a field called "Customer No.". The default sales order form (Form 42 - Sales Order) uses a subform to enter the item detail information (Form 46 - Sales Order Subform). What I would like to happen is when someone is in the subform and looks up the items, by going into the No. column and either hitting the lookup arrow or pressing F5, I would like that list (Form 31 - Item List) filtered based on "Sell-to Customer No." from the Sales Header = "Customer No." from the Item table.
Please let me know if you need clarification on anything.
Thank you,
Leo
0
Comments
-
So to be clear-
You added a field to the item table called customer no.
Here you can assign a customer no to a particular item.
when your in an order and you want to lookup an item, the list that appears should be filtered by the customer no on the sales header.
Is this correct? So an item can NEVER belong to 2 or more customers?
If you look at the code on Cross-Reference No on the sales line - you see it does just what you need.
Each item can have multiple cross-reference numbers based on each customer. when you lookup on the sales line in the cross-reference field it filters the numbers just for that customer. Check out the code there.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