Interface
Parameters of DataSource
's constructor.
Properties
Property | Type | Notes |
---|---|---|
belongToDataSource | DataSource | Data source that the to-be-created data source belongs to. |
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 | string | If dataViewId exists, a data view will be created. |
id | string | The data source ID. |
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 | string | if localId exists, a local data source will be created. |
order | number | Order in the parent data source. |
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. |
belongToDataSource
belongToDataSource: DataSource
Data source that the to-be-created data source belongs to.
dataSourceJson
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
dataViewId: string
If dataViewId exists, a data view will be created.
jimuChildId
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
localId: string
if localId exists, a local data source will be created.
sourceRecords
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.