【发布时间】:2018-09-20 16:08:52
【问题描述】:
我有一个这样的 JSON 结果集
"Default": [
{
"PortalId": 0,
"Price": 990000,
"Featured": false,
"Type": 1,
"Bathrooms": 6,
"Rooms": 5,
"Volume": 0,
"Area": 430,
"CreatedDate": "2017-03-13T18:16:08.38Z",
"ShowFrom": "2017-03-13T18:16:08.38Z",
"ShowTill": "9999-12-31T23:59:59.997Z",
"UserId": 2,
"Kitchen": 1,
"CityId": 46,
"Code": "CA-799",
"Verified": false,
"Plot": 1234,
"CityName": "Capdepera",
"ImageName": "RV5",
"ImagePath": "/Portals/0/RealEstateThumbs/20/RV5.jpg",
"Id": 20,
"Guid": "00000000-0000-0000-0000-000000000000",
"Title": null,
"Modified": "0001-01-01T00:00:00Z",
"_2sxcEditInformation": {
"entityId": 20,
"title": "(no title)",
"isPublished": true
}
},
{
"PortalId": 0,
"Price": 1750000,
"Featured": false,
"Type": 1,
"Bathrooms": 6,
"Rooms": 5,
"Volume": 0,
"Area": 360,
"CreatedDate": "2017-03-10T10:25:42.647Z",
"ShowFrom": "2017-03-10T10:25:42.647Z",
"ShowTill": "9999-12-31T23:59:59.997Z",
"UserId": 2,
"Kitchen": 1,
"CityId": 61,
"Code": "ES-9337",
"Verified": false,
"Plot": 1234,
"CityName": "Esporles",
"ImageName": "RV6",
"ImagePath": "/Portals/0/RealEstateThumbs/21/RV6.JPG",
"Id": 21,
"Guid": "00000000-0000-0000-0000-000000000000",
"Title": null,
"Modified": "0001-01-01T00:00:00Z",
"_2sxcEditInformation": {
"entityId": 21,
"title": "(no title)",
"isPublished": true
}
}
当我使用测试参数将 ValueFilter 添加到 Visual Query 时:[QueryString: Code]=SP
它不过滤此代码值(在上面的示例中,不应返回这两个结果)。
我做错了什么?
ValueFilter 本身定义为:
Attribute = Code
Value = [QueryString: Value]
Operator: begins
Take: all
这是我解决问题的关键。
【问题讨论】:
-
您可以添加您的可视化查询编辑器的屏幕截图吗?可能还有其他过滤器,包括您不想要的记录
标签: dotnetnuke 2sxc