Flow filters consuming a web service

Putxi
Member Posts: 8
how I can apply a flow filter to a web service to get the stock availability for a set of Items in a specific location?
I've modified the item page to publish the Location_filter field but in the web service i´ve got an error message.
I've modified the item page to publish the Location_filter field but in the web service i´ve got an error message.
0
Comments
-
Adding a FlowFilter field to a page web service definitely causes an error. I have a support incident open with Microsoft on this specific topic and so far there's not be much in the way of a response.
I have discovered that you can create an extension codeunit that extends the page web service where you can pass in the value of the flowfilter and then the codeunit can set the filter, calculate the flowfield, and pass the result back.0 -
Me to integrate the Navision web service with share point web portal for dealer.
While using the Item list page (to get the inventory by location) web service and add the Location filter in page it gives error. Web page give error.
While use the extension using codeunit web service. Web page become too slow.0 -
I know that it has been a lot of time since the first post, but we just have faced the problem and found the solution, may be it could help someone else too.
In the OnAfterGetRecord code of the published page:
SETRANGE("Location Filter", 'LOCATION_VALUE');
Not need of extension codeunit at all.
Hope it helps.
Airatx.0 -
How did you manage to pass "'LOCATION_VALUE" as parameter to the page?* Daniele Rebussi * | * Rebu NAV Diary *0
-
Yes, sorry, I noticed it after I summit the answer. At this point we have no need to pass the location as a parameter because we work actually with only one location, I mean, we have more than one but we only ship our deliveries from this one, so..
But I pretty sure that we going to face this problem soon, so I keep working in a solution and I found a ugly one, but it works.
If you pass the filter "Base Unit of Measure" (for instance )= '<>Location_value', this filter has none effect and in the OnAfterGetRecord code section:
LOCATION VALUE = GETFILTER(COPYSTR("Base Unit of Measure", 3, 10);
Again sorry for my rash answer. :oops:
Airatx0
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