Skip to content

BuildingComponentSubLayerDataSource

Interface

Child data source of BuildingSceneLayerDataSource or BuildingGroupSubLayerDataSource .

Inheritance: BuildingComponentSubLayerDataSourceOmit<SceneLayerDataSource"type">

Properties

Hide inherited properties
PropertyTypeNotes
() => void

When current data source is created from an array of records, it will be saved in sourceRecords . Add the version of sourceRecords . setSourceRecords will add the version by default.

addVersion
inherited
() => void

Update data source version.

DataSource

The data source which this data source derives from.

(gdbVersionstring) => void

Change the layer GDB version.

clearRecords
inherited
() => void

This function will clear the loaded records and won't clear the sourceRecords. Once the loaded records are cleared, the version in the data source info will be updated.

() => void

Clear both sourceRecords and loaded records. Both source version and version in data source info will be updated.

count
inherited
number

The total records count depends on the current query

(dataSource?DataSource, useDataSourceQueryParams?boolean, throwError?boolean) => Promise<Layer | ArcGISSubLayer>

Default dataSource is the current data source. Default useDataSourceQueryParams is true, that is to say apply the data source's query params to the created ArcGIS Maps SDK for JavaScript layer by default. Default throwError is false, that is to say the method won't throw error and will return undefined if the creation fail.

DataSourceManager

The data source manager, which is used to manage the data source, including create/get/destroy the data source instance.

dataViewId
inherited
string

The data view ID configured in JSON.

destroy
inherited
() => void

Destroy the data source.

() => DataSource[]

Return the derived data views and local data sources.

() => DataRecord[]

Get records of all the loaded pages.

() => number

If the return value > 0, auto refresh is enabled.

() => DataSourceStatus

Return data source count status.

() => string

Get the current loaded record id, which is used in loadById method.

() => IMDataSourceJson

The data source JSON object in app config.

() => IMDataViewJson

Return the config of the current data source.

getGDBVersion
inherited
() => string

Return the current GDB version.

getInfo
inherited
() => IMDataSourceInfo

Return the data source info in redux store.

getLabel
inherited
() => string

Return data source label.

() => boolean

Return whether listen selection.

(localIdstring) => DataSource

Get local data source by local ID.

() => DataSource[]

Return all local data sources created from a main data source or data view.

() => number

Null means there is no record count limit, and will return all records from the service.

(pageSizenumber, pagenumber) => number[]

Get real query page depends on the widget's request page.

getRecord
inherited
(indexnumber) => DataRecord

Get record by index

getRecordById
inherited
(idstring) => DataRecord

Get record by ID

getRecords
inherited
() => DataRecord[]

Get records of the loaded continuous pages. If the loaded pages are 1, 2, and 10, will only return records on the page 1 and 2.

(pagenumber, pageSizenumber) => DataRecord[]

The page size here defines the records this method returns, which are not the actual query pageSize. Will use a fixed pageSize to query and cache data.

(pagenumber, pageSizenumber) => DataRecord[]

If selected records are not loaded in the current data source, will concat them to the end of records array. See getRecordsWithSelection for details.

() => DataRecord[]

If selected records are not loaded in the current data source, they will be concatenated to the end of records array. For example, record 1 is selected in data view 1 and it is not loaded in data view 2 (record 1 actually matches query params of data view 2), dataView2.getRecordsWithSelection() will return all loaded records in data view 2 and record 1.

() => QueryParams

Get the query parameters configured in remote (not in exb).

() => DataSource

Return the root data source.

(excludeWidgetId?string) => QueryParams

Get the queries applied in runtime. If the excludeWidgetId is passed in, the queries of this widget will be excluded.

getSchema
inherited
() => IMDataSourceSchema

The schema returned here is the merged result of the configured schema and the fetched schema. The configured schema is the user's changes, such as a new data source name. The fetched schema is the original schema from AGOL/portal item or a remote database, such as the service name, the fields and the filters.

() => string[]

Get selected record IDs

() => number[]

Get selected record indexes

() => DataRecord[]

Get selected records

() => DataSource

Get selection data view

() => DataRecord[]

Return the source records

() => number

When current data source is created from an array of records, it will be saved in sourceRecords . Return the version of sourceRecords .

getStatus
inherited
() => DataSourceStatus

Return data source status.

getVersion
inherited
() => number

Return data source version.

id
inherited
string

The data source ID.

() => thisisDataSource & SetDataSourceMixin

Whether a data source contains child data sources. A set data source won't create all its child data sources when ready is resolved. To make sure all child data sources are created, please use childDataSourcesReady .

isDataView
inherited
boolean

True means the data source is a data view. For local data source, this is false even the local data source is created from a data view.

isInAppConfig
inherited
() => boolean

Return whether the data source is added in builder and is saved in app config.

isLocal
inherited
boolean

True means the data source is a local data source.

() => boolean

Determine whether the data source is a selection view.

boolean

Whether the data source is case-sensitive when doing query by SQL clauses.

loadAll
inherited
(queryQueryParams, signal?AbortSignal, progressCallback?QueryProgressCallback, options?QueryOptions) => Promise<DataRecord[]>

Load all records, there is no limit to the number of the records returned in the records array response. You can abort the progress by a abort signal and can use progressCallback to get the progress and the current results.

loadById
inherited
(idstring, refresh?boolean) => Promise<DataRecord>

Load record by ID, do not consider other queries.

localId
inherited
string

The local ID of the data source.

order
inherited
number

Order in the parent data source.

DataSource & SetDataSourceMixin

The parent data source of this data source, mull means it's a root data source.

queryAll
inherited
(queryQueryParams, signal?AbortSignal, progressCallback?QueryProgressCallback, options?QueryOptions) => Promise<QueryResult>

Query all records, there is no limit to the number of the records returned in the records array response. You can abort the progress by a abort signal and can use progressCallback to get the progress and the current results.

queryById
inherited
(idstring, fields?string[]) => Promise<DataRecord>

Query record by ID. Will return all fields if not pass in the fields .

queryIds
inherited
(queryArcGISQueryParams, options?QueryOptions) => Promise<QueryResult>

Query record IDs, there is no limit to the number of the IDs returned in the ids array response.

ready
inherited
() => Promise<any>

Ready is resolved means the data source instance is ready for use. Please note that can not make sure all child data sources are created if a set data source is ready. To make sure all child data sources are created, please use childDataSourcesReady .

() => void

Select all loaded records.

(statusDataSourceStatus) => void

Update data source count status.

(dsJsonIMDataSourceJson) => void

Update data source JSON in data source instance

(listenboolean) => void

Whether listen selected records from other data sources which are derived from the same main data source. If true, will update selected record IDs of current data source info when selecting records via other derived data sources. Will also update selected record IDs when selecting records via current data source itself. If false, won't change selected record IDs when selecting records via other derived data sources. Will update selected record IDs only when selecting records via current data source itself.

(needRefreshboolean) => void

When the auto refresh is turned on, and the data source needRefresh status is changed, this method will be invoked.

setRecords
inherited
(recordsDataRecord[]) => void

Update the records in the data source object only, does not update the source data.

(featuresGraphic | GraphicProperties[], others?Omit<FeatureLayerProperties"source" | "fields" | "objectIdField">) => Promise<void>

When current data source is created from an array of features (__esri.Graphic), will save it in an ArcGIS Maps SDK for JavaScript feature layer. This method is used to update the source data. Please note, use this method only when isDataInDataSourceInstance is not true.

(recordsDataRecord[]) => void

When current data source is created from an array of records ( DataRecord ), will save it in sourceRecords . These two methods are used to update or get the source data. Please note, use these two methods only when isDataInDataSourceInstance is true.

setStatus
inherited
(statusDataSourceStatus) => void

Update data source status.

() => Promise<boolean>

Whether supports to create replica. See https://developers.arcgis.com/rest/services-reference/enterprise/create-replica/.

(queryArcGISQueryParams, widgetIdstring) => void

Update the data source query without executing the actual query.

(optionsSelectOptions, triggerDataSourceDataSource, forceCheck?boolean) => void

Update selected records in data source info if the current data source listens selection change (see setListenSelection ) or the current data source is the trigger data source (that is to say, select via it).

addSourceVersion

inheritedinherited
Interface Property
addSourceVersion: () => void

When current data source is created from an array of records, it will be saved in sourceRecords . Add the version of sourceRecords . setSourceRecords will add the version by default.

Type declaration
    function(): void
    Returns 
    void
Inherited from Omit.addSourceVersion

addVersion

optionalinheritedinherited
Interface Property
addVersion: () => void

Update data source version.

Type declaration
    function(): void
    Returns 
    void
Inherited from Omit.addVersion

belongToDataSource

optionalinheritedinherited
Interface Property
belongToDataSource: DataSource

The data source which this data source derives from.

Inherited from Omit.belongToDataSource

changeGDBVersion

inheritedinherited
Interface Property
changeGDBVersion: (gdbVersionstring) => void

Change the layer GDB version.

Type declaration
    function(gdbVersionstring): void
    Parameters
    ParameterType
    gdbVersionstring
    Returns 
    void
Inherited from Omit.changeGDBVersion

clearRecords

optionalinheritedinherited
Interface Property
clearRecords: () => void

This function will clear the loaded records and won't clear the sourceRecords. Once the loaded records are cleared, the version in the data source info will be updated.

Type declaration
    function(): void
    Returns 
    void
Inherited from Omit.clearRecords

clearSourceRecords

inheritedinherited
Interface Property
clearSourceRecords: () => void

Clear both sourceRecords and loaded records. Both source version and version in data source info will be updated.

Type declaration
    function(): void
    Returns 
    void
Inherited from Omit.clearSourceRecords

count

optionalinheritedinherited
Interface Property
count: number

The total records count depends on the current query

Inherited from Omit.count

createJSAPILayerByDataSource

inheritedinherited
Interface Property
createJSAPILayerByDataSource: (dataSource?DataSource, useDataSourceQueryParams?boolean, throwError?boolean) => Promise<Layer | ArcGISSubLayer>

Default dataSource is the current data source. Default useDataSourceQueryParams is true, that is to say apply the data source's query params to the created ArcGIS Maps SDK for JavaScript layer by default. Default throwError is false, that is to say the method won't throw error and will return undefined if the creation fail.

Type declaration
    function(dataSource?DataSource, useDataSourceQueryParams?boolean, throwError?boolean): Promise<Layer | ArcGISSubLayer>
    Parameters
    ParameterType
    dataSourceDataSource
    useDataSourceQueryParamsboolean
    throwErrorboolean
    Returns 
    Promise<Layer | ArcGISSubLayer>
Inherited from Omit.createJSAPILayerByDataSource

dataSourceManager

inheritedinherited
Interface Property
dataSourceManager: DataSourceManager

The data source manager, which is used to manage the data source, including create/get/destroy the data source instance.

Inherited from Omit.dataSourceManager

dataViewId

optionalinheritedinherited
Interface Property
dataViewId: string

The data view ID configured in JSON.

Inherited from Omit.dataViewId

destroy

inheritedinherited
Interface Property
destroy: () => void

Destroy the data source.

Type declaration
    function(): void
    Returns 
    void
Inherited from Omit.destroy

getAllDerivedDataSources

inheritedinherited
Interface Property
getAllDerivedDataSources: () => DataSource[]

Return the derived data views and local data sources.

Type declaration
Inherited from Omit.getAllDerivedDataSources

getAllLoadedRecords

inheritedinherited
Interface Property
getAllLoadedRecords: () => DataRecord[]

Get records of all the loaded pages.

Type declaration
Inherited from Omit.getAllLoadedRecords

getAutoRefreshInterval

inheritedinherited
Interface Property
getAutoRefreshInterval: () => number

If the return value > 0, auto refresh is enabled.

Type declaration
    function(): number
    Returns 
    number
Inherited from Omit.getAutoRefreshInterval

getCountStatus

inheritedinherited
Interface Property
getCountStatus: () => DataSourceStatus

Return data source count status.

Type declaration
Inherited from Omit.getCountStatus

getCurrentQueryId

inheritedinherited
Interface Property
getCurrentQueryId: () => string

Get the current loaded record id, which is used in loadById method.

Type declaration
    function(): string
    Returns 
    string
Inherited from Omit.getCurrentQueryId

getDataSourceJson

inheritedinherited
Interface Property
getDataSourceJson: () => IMDataSourceJson

The data source JSON object in app config.

Type declaration
    function(): IMDataSourceJson
    Returns 
    IMDataSourceJson
Inherited from Omit.getDataSourceJson

getDataViewConfig

inheritedinherited
Interface Property
getDataViewConfig: () => IMDataViewJson

Return the config of the current data source.

Type declaration
    function(): IMDataViewJson
    Returns 
    IMDataViewJson
Inherited from Omit.getDataViewConfig

getGDBVersion

inheritedinherited
Interface Property
getGDBVersion: () => string

Return the current GDB version.

Type declaration
    function(): string
    Returns 
    string
Inherited from Omit.getGDBVersion

getInfo

inheritedinherited
Interface Property
getInfo: () => IMDataSourceInfo

Return the data source info in redux store.

Type declaration
    function(): IMDataSourceInfo
    Returns 
    IMDataSourceInfo
Inherited from Omit.getInfo

getLabel

inheritedinherited
Interface Property
getLabel: () => string

Return data source label.

Type declaration
    function(): string
    Returns 
    string
Inherited from Omit.getLabel

getListenSelection

inheritedinherited
Interface Property
getListenSelection: () => boolean

Return whether listen selection.

Type declaration
    function(): boolean
    Returns 
    boolean
Inherited from Omit.getListenSelection

getLocalDataSource

inheritedinherited
Interface Property
getLocalDataSource: (localIdstring) => DataSource

Get local data source by local ID.

Type declaration
Inherited from Omit.getLocalDataSource

getLocalDataSources

inheritedinherited
Interface Property
getLocalDataSources: () => DataSource[]

Return all local data sources created from a main data source or data view.

Type declaration
Inherited from Omit.getLocalDataSources

getMaxRecordCount

inheritedinherited
Interface Property
getMaxRecordCount: () => number

Null means there is no record count limit, and will return all records from the service.

Type declaration
    function(): number
    Returns 
    number
Inherited from Omit.getMaxRecordCount

getRealQueryPages

inheritedinherited
Interface Property
getRealQueryPages: (pageSizenumber, pagenumber) => number[]

Get real query page depends on the widget's request page.

Type declaration
    function(pageSizenumber, pagenumber): number[]
    Parameters
    ParameterType
    pageSizenumber
    pagenumber
    Returns 
    number[]
Inherited from Omit.getRealQueryPages

getRecord

inheritedinherited
Interface Property
getRecord: (indexnumber) => DataRecord

Get record by index

Type declaration
Inherited from Omit.getRecord

getRecordById

inheritedinherited
Interface Property
getRecordById: (idstring) => DataRecord

Get record by ID

Type declaration
Inherited from Omit.getRecordById

getRecords

inheritedinherited
Interface Property
getRecords: () => DataRecord[]

Get records of the loaded continuous pages. If the loaded pages are 1, 2, and 10, will only return records on the page 1 and 2.

Widgets can use different page sizes to query the data source, but the data source has a specific page size to query the service. The data source will save the loaded records by its own page size and split them when widgets doing queries (with different page and page sizes). The method returns continuous page records to make sure the order of the records is correct.

Type declaration
Inherited from Omit.getRecords

getRecordsByPage

inheritedinherited
Interface Property
getRecordsByPage: (pagenumber, pageSizenumber) => DataRecord[]

The page size here defines the records this method returns, which are not the actual query pageSize. Will use a fixed pageSize to query and cache data.

Type declaration
    function(pagenumber, pageSizenumber): DataRecord[]
    Parameters
    ParameterType
    pagenumber
    pageSizenumber
    Returns 
    DataRecord[]
Inherited from Omit.getRecordsByPage

getRecordsByPageWithSelection

inheritedinherited
Interface Property
getRecordsByPageWithSelection: (pagenumber, pageSizenumber) => DataRecord[]

If selected records are not loaded in the current data source, will concat them to the end of records array. See getRecordsWithSelection for details.

Type declaration
    function(pagenumber, pageSizenumber): DataRecord[]
    Parameters
    ParameterType
    pagenumber
    pageSizenumber
    Returns 
    DataRecord[]
Inherited from Omit.getRecordsByPageWithSelection

getRecordsWithSelection

inheritedinherited
Interface Property
getRecordsWithSelection: () => DataRecord[]

If selected records are not loaded in the current data source, they will be concatenated to the end of records array. For example, record 1 is selected in data view 1 and it is not loaded in data view 2 (record 1 actually matches query params of data view 2), dataView2.getRecordsWithSelection() will return all loaded records in data view 2 and record 1.

Type declaration
Inherited from Omit.getRecordsWithSelection

getRemoteQueryParams

inheritedinherited
Interface Property
getRemoteQueryParams: () => QueryParams

Get the query parameters configured in remote (not in exb).

Type declaration
Inherited from Omit.getRemoteQueryParams

getRootDataSource

inheritedinherited
Interface Property
getRootDataSource: () => DataSource

Return the root data source.

Type declaration
Inherited from Omit.getRootDataSource

getRuntimeQueryParams

inheritedinherited
Interface Property
getRuntimeQueryParams: (excludeWidgetId?string) => QueryParams

Get the queries applied in runtime. If the excludeWidgetId is passed in, the queries of this widget will be excluded.

Type declaration
    function(excludeWidgetId?string): QueryParams
    Parameters
    ParameterType
    excludeWidgetIdstring
    Returns 
    QueryParams
Inherited from Omit.getRuntimeQueryParams

getSchema

inheritedinherited
Interface Property
getSchema: () => IMDataSourceSchema

The schema returned here is the merged result of the configured schema and the fetched schema. The configured schema is the user's changes, such as a new data source name. The fetched schema is the original schema from AGOL/portal item or a remote database, such as the service name, the fields and the filters.

Type declaration
Inherited from Omit.getSchema

getSelectedRecordIds

inheritedinherited
Interface Property
getSelectedRecordIds: () => string[]

Get selected record IDs

Type declaration
    function(): string[]
    Returns 
    string[]
Inherited from Omit.getSelectedRecordIds

getSelectedRecordIndexes

inheritedinherited
Interface Property
getSelectedRecordIndexes: () => number[]

Get selected record indexes

Type declaration
    function(): number[]
    Returns 
    number[]
Inherited from Omit.getSelectedRecordIndexes

getSelectedRecords

inheritedinherited
Interface Property
getSelectedRecords: () => DataRecord[]

Get selected records

Type declaration
Inherited from Omit.getSelectedRecords

getSelectionDataView

inheritedinherited
Interface Property
getSelectionDataView: () => DataSource

Get selection data view

Type declaration
Inherited from Omit.getSelectionDataView

getSourceRecords

inheritedinherited
Interface Property
getSourceRecords: () => DataRecord[]

Return the source records

Type declaration
Inherited from Omit.getSourceRecords

getSourceVersion

inheritedinherited
Interface Property
getSourceVersion: () => number

When current data source is created from an array of records, it will be saved in sourceRecords . Return the version of sourceRecords .

Type declaration
    function(): number
    Returns 
    number
Inherited from Omit.getSourceVersion

getStatus

inheritedinherited
Interface Property
getStatus: () => DataSourceStatus

Return data source status.

Type declaration
Inherited from Omit.getStatus

getVersion

inheritedinherited
Interface Property
getVersion: () => number

Return data source version.

Type declaration
    function(): number
    Returns 
    number
Inherited from Omit.getVersion

id

inheritedinherited
Interface Property
id: string

The data source ID.

Inherited from Omit.id

isDataSourceSet

inheritedinherited
Interface Property
isDataSourceSet: () => thisisDataSource & SetDataSourceMixin

Whether a data source contains child data sources. A set data source won't create all its child data sources when ready is resolved. To make sure all child data sources are created, please use childDataSourcesReady .

Type declaration
Inherited from Omit.isDataSourceSet

isDataView

inheritedinherited
Interface Property
isDataView: boolean

True means the data source is a data view. For local data source, this is false even the local data source is created from a data view.

Inherited from Omit.isDataView

isInAppConfig

inheritedinherited
Interface Property
isInAppConfig: () => boolean

Return whether the data source is added in builder and is saved in app config.

Type declaration
    function(): boolean
    Returns 
    boolean
Inherited from Omit.isInAppConfig

isLocal

inheritedinherited
Interface Property
isLocal: boolean

True means the data source is a local data source.

Inherited from Omit.isLocal

isSelectionView

inheritedinherited
Interface Property
isSelectionView: () => boolean

Determine whether the data source is a selection view.

Type declaration
    function(): boolean
    Returns 
    boolean
Inherited from Omit.isSelectionView

isSqlCaseSensitive

inheritedinherited
Interface Property
isSqlCaseSensitive: boolean

Whether the data source is case-sensitive when doing query by SQL clauses.

Inherited from Omit.isSqlCaseSensitive

loadAll

inheritedinherited
Interface Property
loadAll: (queryQueryParams, signal?AbortSignal, progressCallback?QueryProgressCallback, options?QueryOptions) => Promise<DataRecord[]>

Load all records, there is no limit to the number of the records returned in the records array response. You can abort the progress by a abort signal and can use progressCallback to get the progress and the current results.

Type declaration
Inherited from Omit.loadAll

loadById

inheritedinherited
Interface Property
loadById: (idstring, refresh?boolean) => Promise<DataRecord>

Load record by ID, do not consider other queries.

Type declaration
    function(idstring, refresh?boolean): Promise<DataRecord>
    Parameters
    ParameterType
    idstring
    refreshboolean
    Returns 
    Promise<DataRecord>
Inherited from Omit.loadById

localId

optionalinheritedinherited
Interface Property
localId: string

The local ID of the data source.

Inherited from Omit.localId

order

optionalinheritedinherited
Interface Property
order: number

Order in the parent data source.

Inherited from Omit.order

parentDataSource

inheritedinherited
Interface Property
parentDataSource: DataSource & SetDataSourceMixin

The parent data source of this data source, mull means it's a root data source.

Inherited from Omit.parentDataSource

queryAll

inheritedinherited
Interface Property
queryAll: (queryQueryParams, signal?AbortSignal, progressCallback?QueryProgressCallback, options?QueryOptions) => Promise<QueryResult>

Query all records, there is no limit to the number of the records returned in the records array response. You can abort the progress by a abort signal and can use progressCallback to get the progress and the current results.

Type declaration
Inherited from Omit.queryAll

queryById

inheritedinherited
Interface Property
queryById: (idstring, fields?string[]) => Promise<DataRecord>

Query record by ID. Will return all fields if not pass in the fields .

Type declaration
    function(idstring, fields?string[]): Promise<DataRecord>
    Parameters
    ParameterType
    idstring
    fieldsstring[]
    Returns 
    Promise<DataRecord>
Inherited from Omit.queryById

queryIds

inheritedinherited
Interface Property
queryIds: (queryArcGISQueryParams, options?QueryOptions) => Promise<QueryResult>

Query record IDs, there is no limit to the number of the IDs returned in the ids array response.

Type declaration
Inherited from Omit.queryIds

ready

inheritedinherited
Interface Property
ready: () => Promise<any>

Ready is resolved means the data source instance is ready for use. Please note that can not make sure all child data sources are created if a set data source is ready. To make sure all child data sources are created, please use childDataSourcesReady .

Type declaration
    function(): Promise<any>
    Returns 
    Promise<any>
Inherited from Omit.ready

selectAllLoadedRecords

inheritedinherited
Interface Property
selectAllLoadedRecords: () => void

Select all loaded records.

Type declaration
    function(): void
    Returns 
    void
Inherited from Omit.selectAllLoadedRecords

setCountStatus

optionalinheritedinherited
Interface Property
setCountStatus: (statusDataSourceStatus) => void

Update data source count status.

Type declaration
Inherited from Omit.setCountStatus

setDataSourceJson

inheritedinherited
Interface Property
setDataSourceJson: (dsJsonIMDataSourceJson) => void

Update data source JSON in data source instance

Type declaration
    function(dsJsonIMDataSourceJson): void
    Parameters
    ParameterType
    dsJsonIMDataSourceJson
    Returns 
    void
Inherited from Omit.setDataSourceJson

setListenSelection

inheritedinherited
Interface Property
setListenSelection: (listenboolean) => void

Whether listen selected records from other data sources which are derived from the same main data source. If true, will update selected record IDs of current data source info when selecting records via other derived data sources. Will also update selected record IDs when selecting records via current data source itself. If false, won't change selected record IDs when selecting records via other derived data sources. Will update selected record IDs only when selecting records via current data source itself.

Main data source and its data views will listen selected records by default, local data source does not listen selected records by default.

Type declaration
    function(listenboolean): void
    Parameters
    ParameterType
    listenboolean
    Returns 
    void
Inherited from Omit.setListenSelection

setNeedRefresh

inheritedinherited
Interface Property
setNeedRefresh: (needRefreshboolean) => void

When the auto refresh is turned on, and the data source needRefresh status is changed, this method will be invoked.

Type declaration
    function(needRefreshboolean): void
    Parameters
    ParameterType
    needRefreshboolean
    Returns 
    void
Inherited from Omit.setNeedRefresh

setRecords

inheritedinherited
Interface Property
setRecords: (recordsDataRecord[]) => void

Update the records in the data source object only, does not update the source data.

Type declaration
Inherited from Omit.setRecords

setSourceFeatures

inheritedinherited
Interface Property
setSourceFeatures: (featuresGraphic | GraphicProperties[], others?Omit<FeatureLayerProperties"source" | "fields" | "objectIdField">) => Promise<void>

When current data source is created from an array of features (__esri.Graphic), will save it in an ArcGIS Maps SDK for JavaScript feature layer. This method is used to update the source data. Please note, use this method only when isDataInDataSourceInstance is not true.

Type declaration
    function(featuresGraphic | GraphicProperties[], others?Omit<FeatureLayerProperties"source" | "fields" | "objectIdField">): Promise<void>
    Parameters
    ParameterType
    featuresGraphic | GraphicProperties[]
    othersOmit<FeatureLayerProperties"source" | "fields" | "objectIdField">
    Returns 
    Promise<void>
Inherited from Omit.setSourceFeatures

setSourceRecords

inheritedinherited
Interface Property
setSourceRecords: (recordsDataRecord[]) => void

When current data source is created from an array of records ( DataRecord ), will save it in sourceRecords . These two methods are used to update or get the source data. Please note, use these two methods only when isDataInDataSourceInstance is true.

Type declaration
Inherited from Omit.setSourceRecords

setStatus

optionalinheritedinherited
Interface Property
setStatus: (statusDataSourceStatus) => void

Update data source status.

Type declaration
Inherited from Omit.setStatus

supportReplica

inheritedinherited
Interface Property
supportReplica: () => Promise<boolean>

Whether supports to create replica. See https://developers.arcgis.com/rest/services-reference/enterprise/create-replica/.

Type declaration
    function(): Promise<boolean>
    Returns 
    Promise<boolean>
Inherited from Omit.supportReplica

updateQueryParams

inheritedinherited
Interface Property
updateQueryParams: (queryArcGISQueryParams, widgetIdstring) => void

Update the data source query without executing the actual query.

Type declaration
Inherited from Omit.updateQueryParams

updateSelectionInfo

inheritedinherited
Interface Property
updateSelectionInfo: (optionsSelectOptions, triggerDataSourceDataSource, forceCheck?boolean) => void

Update selected records in data source info if the current data source listens selection change (see setListenSelection ) or the current data source is the trigger data source (that is to say, select via it).

Before update info, will check whether these selected records match filters of the current data source firstly, and then only set the matched selected records to info. Will skip the check in some cases to improve performance if the forceCheck is not passed in or is false. For example, if the current data source is main data source (we suppose that main data source contains all records, no need to check). But if the forceCheck is true, won't skip the check.

Type declaration
Inherited from Omit.updateSelectionInfo

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.