How to filter on a list form
tazzy30
Member Posts: 52
Hello all,
I have a form which has a customer No. and item fields (each item has a customer no. and could have more than one) when a user clicks on assist (on item field) the item list appears i need this list to show only those items which have the same customer no. as the previous form only, the item list does not have a customer No. it is linked through another table, i'm not sure how to pass through the Customer No. to the list to then be able to filter on it.
Can anyone help please?
I have a form which has a customer No. and item fields (each item has a customer no. and could have more than one) when a user clicks on assist (on item field) the item list appears i need this list to show only those items which have the same customer no. as the previous form only, the item list does not have a customer No. it is linked through another table, i'm not sure how to pass through the Customer No. to the list to then be able to filter on it.
Can anyone help please?
0
Comments
-
As i understand it correct, you have these two tables.
Table A like the item Table with an field where the main customer is stored
Item No., Main Customer No., Some Other Item Fields
Table B (to store all custmers who has this item)
Item No.,Customer No.
Now if you click on your item field in your form which is based on Table A, you want to show all items (in the form based on A),
where your "Main Customer No." is a customer in Table B :?:
Like: Show me all Items from Table B where the Customer No. = Table A.Main Customer No.
Correct?Do you make it right, it works too!0 -
If a relationship of one field depends on the value of another field, then you define this filter in the tablerelationship.0
-
yes garak you are right sorry i couldn't explain it clearer0
-
do you have an example of this please?0
-
Did you really need it to show in the same form (need C/AL) or is as also possible, that a filtered form, based on Table B can be opened :?:
If this is no problem, you can define in Table A a FLOWFIELD with the Calcforumla: Count(TableB WHERE (Customer No.=FIELD(Main customer)))
regardsDo you make it right, it works too!0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 327 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
