No filter paramether in page web service

rhpnt
Member Posts: 688
It seems to me that page web services with a source table which primary key consists of more than one field do not include the "entity_filter" parameter in the ReadMultiple method. Any ideas of how to filter records in this ws?
0
Answers
-
Anyone?0
-
I just tried to expose the Post Codes page (367)
The Read function takes all the primary fields (in this case Code, City)
and the ReadMultiple can be used like normally:PostCodesRef.PostCodes_Service service = new PostCodesRef.PostCodes_Service(); service.UseDefaultCredentials = true; PostCodesRef.PostCodes_Filter filter = new PostCodesRef.PostCodes_Filter(); filter.Field = PostCodesRef.PostCodes_Fields.City; filter.Criteria = "*ham*"; PostCodesRef.PostCodes[] postcodes = service.ReadMultiple(new PostCodesRef.PostCodes_Filter[] { filter }, null, 0);
Can you post some more info about what you do differently?Freddy Kristiansen
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.0 -
I have never seen something like that before - it looks like you have no primary key (since you have no Read method and no filters in ReadMultiple)
Can you post the table definition (showing fields, types and the key definitions)Freddy Kristiansen
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.0 -
Hi Freddy,
I found the source of the problem. The page didn't have any Container, Group or Fields defined (I simply forgot). After adding the mentioned objects everything is back to normal.
I discovered it by publishing the default warehouse employees page (7328) as a service where everything was in place as it should be. Only my page which had the same source table (warehouse employees) had those things missing.
May be helpfull for future reference...
Thanks for the time!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