Setrange or Setfilter on ore than one field
guptavarunmca
Member Posts: 95
Hello All
I want to setfilter the data on more than one field in table with any specific field.
Scenario.
I has two customized field in Sales Header New Location Code,Old Location Code.
I want to setfilter the data on the basis of Location Code,New Location Code,Old Location Code
Setfilter("Location Code"|"New Location Code"|"Old Location Code",'DELHI') Is it possible in NAV if yes then how
Please do your reply if you have any idea,
I want to setfilter the data on more than one field in table with any specific field.
Scenario.
I has two customized field in Sales Header New Location Code,Old Location Code.
I want to setfilter the data on the basis of Location Code,New Location Code,Old Location Code
Setfilter("Location Code"|"New Location Code"|"Old Location Code",'DELHI') Is it possible in NAV if yes then how
Please do your reply if you have any idea,
With Best Regards:
VARUN K. GUPTA
VARUN K. GUPTA
0
Comments
-
Based on this question
I want to setfilter the data on more than one field in table with any specific field.
Scenario.
I has two customized field in Sales Header New Location Code,Old Location Code.
I want to setfilter the data on the basis of Location Code,New Location Code,Old Location Code
Very basic anwer: For each field you want to filter you'll have to put a setrange/setfilter on each field:
setrange("location code",'DELHI');
setrange("new location code",'DELHI');
setrange("old location code",'DELHI');
Since you use | in your wrong filter I think you mean to OR the filters on the different fields.
That scenario is with only user interaction almost impossible, with code, see the post of mohana_cse06
If an end user wants to do that, he has to filter one one field first, mark the records (ctrl+f1, see menu edit)
filter on the next field, mark the new ones (else the mark will be gone on records with filter on field 1 AND filter on field 2)
do this for the next fields, and then remove all filters, and in the menu view select marked only.0 -
Setfilter("Location Code"|"New Location Code"|"Old Location Code",'DELHI')
this is not possible in NAV but you can filter one feild with multiple valuesSetfilter("Location Code",'%1|%2|%3','DELHI','MUMBAI','CHENNAI')
To do the multiple filters you have to setfilter as mentioned by Sog...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

