Skip to content

Interface

Interface for map related data sources. It contains a JS API Map instance.

Inheritance: MapDataSourceDataSourceSetDataSourceMixin

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.

() => boolean

Return whether all child data sources (including descendant data sources) are created. Data source has this method only if it is data source set ( dataSource.isDataSourceSet() is true).

DataSource

The data source which this data source derives from.

buildRecord
inherited
(dataany) => DataRecord

Builds a data record only -- does not add the record into data source.

childDataSourcesReady() => Promise<DataSource[]>

All child data sources (including descendant data sources) are ready for use. Data source has this method only if it is data source set ( dataSource.isDataSourceSet() is true).

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

createDataSourceById(dataSourceIdstring) => Promise<DataSource>

Create a child or a descendant data source by id. Data source has this method only if it is data source set ( dataSource.isDataSourceSet() is true).

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.

fetchSchema() => Promise<IMDataSourceSchema>

Fetch the data schema from an actual data source. If it's a statistic data source, the schema will not be fetched.

() => DataSource[]

Return all child data sources of a parent data source, includes the grandchildren

() => DataSource[]

Return the derived data views and local data sources.

(jimuChildIdstring) => DataSource

Get child data source by jimuChildId . You can get jimuChildId by getJimuChildId() .

() => string[]

Get child data source IDs, the child data sources may not be created by the time.

() => DataSource[]

Return child data sources of a parent data source.

() => DataSourceStatus

Return data source count status.

() => IMDataSourceJson

The data source JSON object in app config.

getDataView
inherited
(dataViewIdstring) => DataSource

Get data view by data view ID.

() => IMDataViewJson

Return the config of the current data source.

getDataViews
inherited
() => DataSource[]

Return all data views created from a main data source.

getIdField
inherited
() => string

Return the data source ID field.

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.

() => DataSource

Return the main data source.

getRecord
inherited
(indexnumber) => DataRecord

Get record by index

getRecordById
inherited
(idstring) => DataRecord

Get record by ID

getRecords
inherited
() => DataRecord[]

Get records

() => 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.

() => DataSource

Return the root data source.

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.

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.

ready() => Promise<void>

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 .

(idstring, record?DataRecord) => void

Select a record by ID. When select record by ID, we can pass in the record. So when the selected record is not loaded, we can add it in.

selectRecords
inherited
(optionsSelectOptions) => Promise<Pick<QueryResult"records">>

Select records.

(idsstring[], records?DataRecord[]) => void

Select records by IDs. When select records by IDs, we can pass in the records. So when the selected records are not loaded, we can add them in.

(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.

setRecords
inherited
(recordsDataRecord[]) => void

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

(recordsDataRecord[]) => void

When current data source is created from an array of records, will save it in sourceRecords . These two methods are used to update or get the source data.

setStatus
inherited
(statusDataSourceStatus) => void

Update data source status.

typeMap | WebMap | WebScene

The type of the data source.

(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

addVersion

optionalinheritedinherited
Interface Property

areChildDataSourcesCreated

inheritedinherited
Interface Property

belongToDataSource

optionalinheritedinherited
Interface Property

buildRecord

inheritedinherited
Interface Property

childDataSourcesReady

Interface Property

clearRecords

optionalinheritedinherited
Interface Property

clearSourceRecords

inheritedinherited
Interface Property

count

optionalinheritedinherited
Interface Property

createDataSourceById

Interface Property

dataSourceManager

inheritedinherited
Interface Property

dataViewId

optionalinheritedinherited
Interface Property

destroy

inheritedinherited
Interface Property

fetchSchema

Interface Property

getAllChildDataSources

inheritedinherited
Interface Property

getAllDerivedDataSources

inheritedinherited
Interface Property

getChildDataSource

inheritedinherited
Interface Property

getChildDataSourceIds

inheritedinherited
Interface Property

getChildDataSources

inheritedinherited
Interface Property

getCountStatus

inheritedinherited
Interface Property

getDataSourceJson

inheritedinherited
Interface Property

getDataView

inheritedinherited
Interface Property

getDataViewConfig

inheritedinherited
Interface Property

getDataViews

inheritedinherited
Interface Property

getIdField

inheritedinherited
Interface Property

getInfo

inheritedinherited
Interface Property

getLabel

inheritedinherited
Interface Property

getListenSelection

inheritedinherited
Interface Property

getLocalDataSource

inheritedinherited
Interface Property

getLocalDataSources

inheritedinherited
Interface Property

getMainDataSource

inheritedinherited
Interface Property

getRecord

inheritedinherited
Interface Property

getRecordById

inheritedinherited
Interface Property

getRecords

inheritedinherited
Interface Property

getRecordsWithSelection

inheritedinherited
Interface Property

getRootDataSource

inheritedinherited
Interface Property

getSchema

inheritedinherited
Interface Property

getSelectedRecordIds

inheritedinherited
Interface Property

getSelectedRecordIndexes

inheritedinherited
Interface Property

getSelectedRecords

inheritedinherited
Interface Property

getSelectionDataView

inheritedinherited
Interface Property

getSourceRecords

inheritedinherited
Interface Property

getSourceVersion

inheritedinherited
Interface Property

getStatus

inheritedinherited
Interface Property

getVersion

inheritedinherited
Interface Property

id

inheritedinherited
Interface Property

isDataSourceSet

inheritedinherited
Interface Property

isDataView

inheritedinherited
Interface Property

isInAppConfig

inheritedinherited
Interface Property

isLocal

inheritedinherited
Interface Property

isSelectionView

inheritedinherited
Interface Property

localId

optionalinheritedinherited
Interface Property

order

optionalinheritedinherited
Interface Property

parentDataSource

inheritedinherited
Interface Property

ready

Interface Property

selectRecordById

inheritedinherited
Interface Property

selectRecords

inheritedinherited
Interface Property

selectRecordsByIds

inheritedinherited
Interface Property

setCountStatus

optionalinheritedinherited
Interface Property

setDataSourceJson

inheritedinherited
Interface Property

setListenSelection

inheritedinherited
Interface Property

setRecords

inheritedinherited
Interface Property

setSourceRecords

inheritedinherited
Interface Property

setStatus

optionalinheritedinherited
Interface Property

type

Interface Property

updateSelectionInfo

inheritedinherited
Interface Property

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