FRAMES | NO FRAMES Description | Parameters | Examples | Response
getLayerDefinition (Operation)
URL http://<ReviewerResults-url>/getLayerDefinition
Parent Resource ReviewerResults

Description

Utility operation that returns a where clause given a set of input filters. You can use this where clause as the definitionExpression of the reviewer map service. This restricts the display of features in the Dynamic Layer to those that satisfy the criteria defined in the input filters.

Parameters

Parameter Details
filtersArray Description: An array of filters. A filter is a JSON structure. There are four types: singleAttributeFilter, rangeAttributeFilter, listAttributeFilter, spatialFilter. You can have one or more filters of different types in the filters array. If you use multiple filters, spatialFilters are applied before attribute filters. Multiple filters are evaluated using AND operands: Filter 1 AND Filter 2 AND Filter 3.

JSON Structures:

f Description: The response format. The default response format is html.

Values: html | json

Example Usage

Example 1: Return a map service query string where SEVERITY = 1

http://localhost:6080/arcgis/rest/services/reviewer/MapServer/exts/DataReviewerServer/ReviewerResults/getLayerDefinition?filtersArray={"filtersArray":[{singleAttributeFilter:[{fieldName:"SEVERITY",fieldValue:1}]}]}&f=pjson

JSON Response Example

{
 "whereClause": "  ((REVTABLEMAIN.SEVERITY = 1))"
}