How to get the web sevice filters?

tipcsi
Member Posts: 3
Hi,
We have a published page through web service. We set some filters through the ReadMultiple web service method, but we can not query the applied filters on triggers OnInit or OnOpenPage.
The GETFILTER and GETFILTERS functions give an empty string.
If we call functions above, on trigger OnAfterGetRecord, the functions give back the proper filterstrings.
We have also tried all of the FILTERGROUPS, but it does not work. We are trying to filter on normal fields, not on FlowFields or FlowFilters. We have tried this on on both 2009 R2 and 2013, neither of them worked.
So the question is: how can we access the webservice filters before reading any record of the page?
Thanks!
We have a published page through web service. We set some filters through the ReadMultiple web service method, but we can not query the applied filters on triggers OnInit or OnOpenPage.
The GETFILTER and GETFILTERS functions give an empty string.
If we call functions above, on trigger OnAfterGetRecord, the functions give back the proper filterstrings.
We have also tried all of the FILTERGROUPS, but it does not work. We are trying to filter on normal fields, not on FlowFields or FlowFilters. We have tried this on on both 2009 R2 and 2013, neither of them worked.
So the question is: how can we access the webservice filters before reading any record of the page?
Thanks!
0
Comments
-
Hello,
could you detail the user scenario for GETFILTERS? What are you trying to do woth the filters?
Thanks,
Bogdan0 -
Hi Bogdan,
Our scenario is the following: let's say we have a custom page on Item table with No. and Description. We published this page as web service, and teh web service is used by a mobile application to display Items. We are having a filter possibility in the app on both fields, which the ReadMultiple operation supports very well. We can also read barcode as filter, and we would like to make the search on No. a bit more "sophisticated", so we would like to retrieve the set filter criteria on the No. and "process" it in the OnOpenPage. So we tried to call GETFILTER for No. to retrieve the set Item No., and search e.g.: the cross reference or other Item fields (e.g.: custom Barcode field), and modify the filter for the proper Item No.
So in the imagined situation the mobile user reads a barcode into the No. filter, and if that barcode contains a cross reference barcode, then use that; if the barcode matches a custom barcode field of Item table, then use that; if it is "just" a real Item No., then use that.
Would it be possible to retrieve the filer set on the ReadMultiple method on the web service?
Thanks,
Tibor0
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