DataSourceConstructorOptions

Interface

Parameters of DataSource 's constructor.

Properties

PropertyTypeNotes

Data source that the to-be-created data source belongs to.

IMDataSourceJson

dataSourceJson or belongToDataSource is either-or option. Pass dataSourceJson will create a main data source. Pass belongToDataSource will create data view or local data source.

string

If dataViewId exists, a data view will be created.

string

The data source ID.

string

jimuChildId is the id to distinguish between different child data sources in a parent data source. Besides jimuChildId, every child data source has a data source id, which consists of parent data source id and jimuChildId.

string

if localId exists, a local data source will be created.

number

Order in the parent data source.

If all of the data is saved in the data source instance, put the data in the source records. For others, the data may come from AGOL/portal item or a remote database.

belongToDataSource

optional
Interface Property
belongToDataSource: DataSource

Data source that the to-be-created data source belongs to.

dataSourceJson

optional
Interface Property
dataSourceJson: IMDataSourceJson

dataSourceJson or belongToDataSource is either-or option. Pass dataSourceJson will create a main data source. Pass belongToDataSource will create data view or local data source.

dataViewId

optional
Interface Property
dataViewId: string

If dataViewId exists, a data view will be created.

id

Interface Property
id: string

The data source ID.

jimuChildId

optional
Interface Property
jimuChildId: string

jimuChildId is the id to distinguish between different child data sources in a parent data source. Besides jimuChildId, every child data source has a data source id, which consists of parent data source id and jimuChildId.

localId

optional
Interface Property
localId: string

if localId exists, a local data source will be created.

order

optional
Interface Property
order: number

Order in the parent data source.

sourceRecords

optional
Interface Property
sourceRecords: DataRecord[]

If all of the data is saved in the data source instance, put the data in the source records. For others, the data may come from AGOL/portal item or a remote database.

Only main data source or selection view will save source records, if current data source is a view of selection view, will use selection view's source records, else, will use main data source's source records.

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