Opening a form with an active filter

CobaltSS
Member Posts: 137
Hi all,
Here's another easy one. On Form A, the user has chosen for Field A a value of Code A from a table Table Z where Type is A. Table Z has this structure:
Code
Type
Category
In the next field, I want to open a lookup form, but I want to only see Code values where Type is B and the Category is the same Category as was chosen for Field A.
I'm pretty sure there's some built in function that will allow me to set a record filter and then pass the filtered record to a form, but C/Side help has remained surprisingly silent. I was thinking SETRECFILTER, but that seems to only apply to reports.
Any ideas greatly appreciated.
cheers,
Here's another easy one. On Form A, the user has chosen for Field A a value of Code A from a table Table Z where Type is A. Table Z has this structure:
Code
Type
Category
In the next field, I want to open a lookup form, but I want to only see Code values where Type is B and the Category is the same Category as was chosen for Field A.
I'm pretty sure there's some built in function that will allow me to set a record filter and then pass the filtered record to a form, but C/Side help has remained surprisingly silent. I was thinking SETRECFILTER, but that seems to only apply to reports.
Any ideas greatly appreciated.
cheers,
0
Comments
-
Try something like this example
// SalesOrder Form // SalesHeader Record SalesHeader.SETFILTER(whatever filters); SalesOrder.SETTABLEVIEW(SalesHeader); SalesOrder.SETRECORD(SalesHeader); SalesOrder.RUN;
NAV - Norton Anti Virus
ERP Consultant (not just Navision) & Navision challenger0 -
Or modify filters on second field. Like it is done in T:37, field No.
If Item is selected, Item list is opened.0 -
You can also include the filters in the table relationship, and the lookup form should automatically be filtered accordingly.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