Problem with Layer Definition Queries for Local Layer Widget Server 10.5

614
0
06-07-2017 03:44 PM
ChadRicks
New Contributor III

I have several Dynamic Layers in WAB Local Layer Widget with a definition query. I just upgraded to ArcGIS Server10.5 and found the bug. I got the patch (ArcGIS Server 10.5 Layer Definition Query Patch ) downloaded and installed that then tried again and still get the error:

{"error":{"code":400,"message":"Invalid 'layerDefs' is specified","details":[]}}

this is the local layer config: 

"definitionQueries": "{\"1\":\"floor_name_snfs02 = '1st Flr'\"}"

I also have a map switcher widget that uses ImageParameters layerDefs:

var imageParameters = new ImageParameters();
var layerDefs = [];
layerDefs[1] = "floor_name_snfs02 = '" + FLOOR +"'";
layerDefs[2] = "floor_name_snfs02 = '" + FLOOR +"'";
layerDefs[3] = "floor_name_snfs01 = '" + FLOOR +"'";
layerDefs[4] = "floor_name_snfs02 = '" + FLOOR +"'";
layerDefs[5] = "Floor = '" + FLOOR +"'";
layerDefs[6] = "floor_name_snfs02 = '" + FLOOR +"'";
layerDefs[7] = "floor_name_snfs02 = '" + FLOOR +"'";
layerDefs[11] = "Floor = '" + FLOOR +"'";
imageParameters.layerDefinitions = layerDefs;

Is there a way to see if the patch worked or do i need to write the definition queries in a different format?

0 Kudos
0 Replies