ArcGIS Data Reviewer API for JavaScript
Show:

ReviewerFilters Class

ReviewerFilters limit or precisely define which results to generate by applying conditions to a query for dashboard results. Conditions can be spatial or attribute based. You can apply multiple filters to a query.

See getDashboardResults, getResults

Constructor

ReviewerFilters

()

Methods

addAttributeFilter

(
  • fieldName
  • fieldValues
)

Queries an attribute by a value.

Parameters:

  • fieldName String

    The field to filter by

  • fieldValues String | Number | Array

    A value or an Array of values in fieldName to filter by

addRangeFilter

(
  • fieldName
  • min
  • max
)

Queries an attribute by a range of values.

Parameters:

addSpatialFilter

(
  • geometry
)

Queries by a polygon. Reviewer workspace geometries that intersect the polygon are used to generate results.

Parameters:

getCount

() Number

Returns the count of ReviewerFilters added

Returns:

Number: Count of reviewer filters added to this instance.

toJSON

() JSON Object

Returns a JSON representation of a filter object.

Returns:

JSON Object: String serialization of ReviewerFilters object.