Navision OData服务过滤器不起作用

时间:2019-05-16 07:00:41

标签: web-services odata is-empty navision

我在Navision有服务

https://.......?$format=json返回结果

value: [
{
  No: "000001",
  Description: "MAGE Dummy",
  Shelf_No: "",
  recVendor_Predal: "",
  ETag: "32;GwAAAAJ7BjAAMAAwADAAMAAxAAAAAAA=9;7842639340;"
},
{
  No: "10",
  Description: "Test",
  Shelf_No: "",
  recVendor_Predal: "",
  ETag: "20;GwAAAAJ7AjEAMAAAAAAA9;7683646470;"
},
{
  No: "10000",
  Description: "ALU - FC R9-290X DCII Backplate",
  Shelf_No: "",
  recVendor_Predal: "",
  ETag: "28;GwAAAAJ7BTEAMAAwADAAMAAAAAAA9;7794545540;"
},
{
  No: "100001",
  Description: "TOP Plexi - Acrylic block front DS rev 1.3",
  Shelf_No: "4M-5E",
  recVendor_Predal: "123123",
  ETag: "32;GwAAAAJ7BjEAMAAwADAAMAAxAAAAAAA=9;7842639440;"
},
....

如果我尝试用

过滤掉

https://.......?$format=json$filter=recVendor_Predal%20ne%20%27%27它会返回相同的结果,就像过滤器将被忽略。

但是如果我将相同的过滤器用于其他属性,则过滤器会产生影响:

https://.......?$format=json$filter=Shelf_No%20ne%20%27%27返回

{
  No: "100001",
  Description: "TOP Plexi - Acrylic block front DS rev 1.3",
  Shelf_No: "4M-5E",
  recVendor_Predal: "123123",
  ETag: "32;GwAAAAJ7BjEAMAAwADAAMAAxAAAAAAA=9;7842639440;"
},
{
  No: "100004",
  Description: "SPOJKA Hitra M Barb 10mm - Black",
  Shelf_No: "4O-7A",
  recVendor_Predal: "",
  ETag: "32;GwAAAAJ7BjEAMAAwADAAMAA0AAAAAAA=9;7683646500;"
},
....

可能有什么问题,..

0 个答案:

没有答案