How to setup Odata webservice request for Page 197 (Account Schedule KPI Web service)

tvandongen1
Member Posts: 1
I am trying to set up an Odata webservice connection for Account Schedule KPI Web service.This is done by publsihing page 197, so the data can be used with Excel. We are publishing several account schedules, so I want to be able to filter on the account schedule name.
On normal pages it is not a problem to add an filter after the Odata request (?$filter=<field> eq <value>)
On this specifc page the filters are ignored. I suspect that it is because on the code of the page there is the following:
OnOpenPage()
InitSetupData;
FILTERGROUP(2);
SETRANGE(Number,0,NoOfLines - 1);
FILTERGROUP(0);
If I remove the filtergroep and setrange the filter in the Odata request is working, but then the page is not working correctly any more
Does anyone have a suggestion how we can use this page with a filter setting on the field "Account Schedule Name"?
On normal pages it is not a problem to add an filter after the Odata request (?$filter=<field> eq <value>)
On this specifc page the filters are ignored. I suspect that it is because on the code of the page there is the following:
OnOpenPage()
InitSetupData;
FILTERGROUP(2);
SETRANGE(Number,0,NoOfLines - 1);
FILTERGROUP(0);
If I remove the filtergroep and setrange the filter in the Odata request is working, but then the page is not working correctly any more
Does anyone have a suggestion how we can use this page with a filter setting on the field "Account Schedule Name"?
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