Interface
The data source info which provides status, count, selected ids, widget queries and more.
Properties
| Property | Type | Notes |
|---|---|---|
gdbVersion | string | This property applies only to |
instanceStatus | DataSourceStatus | The |
lastAutoRefreshCheckTime | number | This property applies only to a |
needRefresh | boolean | This property applies only to a |
selectedIds | string[] | An immutable array of selected |
selectOptions | SelectOptions | If widgets select records by |
sourceVersion | number | Whenever the source of data source is changed, the |
version | number | Whenever a data source is changed on the client side, the |
widgetQueries | {} | The query parameters widgets applied to the |
gdbVersion
gdbVersion: stringThis property applies only to FeatureLayerDataSource .
The gdbVersion applies to the gdb version used when querying/adding/updating a feature layer.
For additional information, please see:
Query (Feature Service/Layer)
Version Management Service
instanceStatus
Interface PropertyinstanceStatus: DataSourceStatusThe DataSourceInfo instanceStatus property indicates the create status of the data source. The instanceStatus
is of type DataSourceStatus enum.
lastAutoRefreshCheckTime
lastAutoRefreshCheckTime: numberThis property applies only to a QueriableDataSource .
Timestamp (in milliseconds) indicating when the data was last refreshed.
needRefresh
needRefresh: booleanThis property applies only to a QueriableDataSource .
For static data, the data does not need refresh.
For auto refresh data, the data requires a refresh on arrival of the refresh interval.
selectedIds
selectedIds: string[]An immutable array of selected DataSource ids.
selectOptions
selectOptions: SelectOptionsIf widgets select records by dataSource.selectRecords , the data source will save the original select options here.
The data source will use selectOptions to query records and save IDs of the query result to selectedIds . So if widgets only need to highlight the selected records, please just watch changes of selectedIds .
sourceVersion
sourceVersion: numberWhenever the source of data source is changed, the sourceVersion is incremented +1. The sourceVersion is 1 when the data is loaded for the first time.