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!
0
Comments
could you detail the user scenario for GETFILTERS? What are you trying to do woth the filters?
Thanks,
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,
Tibor