Passing Setfitlers through Functions
sabzam
Member Posts: 1,149
Dear All,
I would like to pass a number of setfilter to a function but instead of passing one by one I would like to use the copyfilter. Can anyone give me some guidance on this pls?
I would like to pass a number of setfilter to a function but instead of passing one by one I would like to use the copyfilter. Can anyone give me some guidance on this pls?
0
Comments
-
Hi,
What are you trying to achieve?
Have you tried passing down a filter record variable and copyfiltler from that ?0 -
I have applied 3 setfilters to a record variable in function a in codeunit a. I have passed the record into Function B in codeunit B. When I am trying to use the copyfilters in function B the filters are not passing over.0
-
0
-
I am using the %1 thing as well as passing the variable as type var into the function but to no avail.0
-
you can pass the entire record variable, it will maintain the filters you set.
*EDIT: just noticed i didn't told that you have to pass the variable by ref in order to obtain the filter set with this method, sorry :oops:
alternatively (never tried before) you can pass the result of GETVIEW function as a parameter and use SETVIEW to replicate the set of filters0 -
Hi,
Is it a local v's global variable problem?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
- 250 Dynamics CRM
- 102 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