Skip To Content
ArcGIS Developer
Dashboard

DataSource configuration

The following table describes the attributes for data source configuration.

AttributesDescription

id

String. The data source ID.

For each data source below, the source ID is as follows:

  • A map: map~<layerId>~<filterId>
  • A widget: widget~<widgetId>~<dataSourceId>
  • Added through an extra data source: external~<id>

filter

String. The filter expression applied to a layer or extra data source.

filterByExtent

Boolean. Whether or not the query is in the current map extent.

label

String. The data source label.

isDynamic

Boolean. If true, the data source will be updated periodically. If false, once the data source is initialized, it will not be updated.

refreshInterval

Number. For a dynamic data source only, the unit is in minutes.

type

String. There are two types of data source you can add:

  • Layer—A subset of data of a feature layer, a table, or an image service vector layer.
  • Statistics—Stores the feature count of group data (if specified) and calculates the sum, average, maximum, and minimum values of the group (if specified) based on one or more numeric fields.

url

String. The data source URL.

dataSchema

Object. The data schema of the data source.

  • Features data source
    • geometryType—String. esriGeometryPoint, esriGeometryPolyline, or esriGeometryPolygon.
    • fields—Field[]: Class: Field.
    • orderByFields—String[], Class: Query.
    • displayFieldName—String. The display field name.
    • objectIdFieldName—String. The object ID field name.
    • typeIdFieldName—String. The type ID field name.
  • FeatureStatistics data source
    • geometryType
    • groupByFields—String[].
    • statistics—StatisticDefinition[]. Class: StatisticDefinition.
    • fields—Field[]: Class: Field.
    • displayFieldName—String. The display field name.
    • objectIdFieldName—String. The object ID field name.
    • typeIdFieldName—String. The type ID field name.

resultRecordType

String. This attribute has three values:

  • Service limit—The maximum number of records specified when the service is published.
  • All—All the records from the service.
  • Custom—The number of records you want to retrieve from the service.

resultRecordCount

Number. The result count.