How to Use Crosslight ServiceDescriptor Combined with QueryDefinition

1 reply. Last post: March 23, 2015 8:41 AM by Yudi
Tags :
  • (None)
Bug Submission
  • New Discussion
  • New Question
  • New Product Feedback
Jimmy TungolMember
Product Name
Crosslight
Product Version
1.0.5000
Build Version
193
Status
Open
Importance
Normal
Browser
  • Mozilla Firefox
  • Google Chrome
  • Internet Explorer 11
Operating System
  • Windows 8.1 x64
NET Version
  • .NET Framework 4.5
Dev. Environment
  • Microsoft Visual Studio.NET 2013
Dev. Stage
  • Development

Description

Kindly fix the error, wherein there are two question marks "?" concatenated with the request Url whenever ServiceDescriptor and QueryDefinition are being used together.

Step to Reproduce

We are using ServiceDescriptor to use a custom web method (e.g. QueryResult GetItemsByUser(string userName)) from the controller to get data for an entity with the help of stored procedures to satisfy complex business rules. While at the same viewmodel, we are using QueryDefinition to enable searching, includes, and sorting.

Actual Result

http://localhost/data/Enterprise/GetItemsByUser?$expand=Locations&$orderby=LocationName?userName=mike

Expected Result

http://localhost/data/Enterprise/GetItemsByUser?userName=mike&$expand=Locations&$orderby=LocationName

All times are GMT -5. The time now is 1:31 AM.
Previous Next