Skip to content

Interface

QueriableDataSource extends DataSource and add query capability. A queriable data source must have an URL to execute the query.

The current default query implementation supports pagination. It allows multiple widgets to apply queries on the same data source, all of which are merged by using the AND logic operator.

When execute a query, in addition to the passed in query parameters, all configured queries and all other widgets applied queries are merged by using the AND logic operator.

When a query is executed against a data view, the query from its main data source is used as well.

Inheritance: QueriableDataSourceDataSource

Properties

Hide inherited properties
PropertyTypeNotes
DataSource

The data source which this data source derives from.

count
inherited
number

The total records count depends on the current query

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.

id
inherited
string

The data source ID.

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.

isLocal
inherited
boolean

True means the data source is a local data source.

isSqlCaseSensitiveboolean

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

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.

type
inherited
string

The type of the data source.

urlstring

The data source URL

belongToDataSource

optionalinheritedinherited
Interface Property

count

optionalinheritedinherited
Interface Property

dataSourceManager

inheritedinherited
Interface Property

dataViewId

optionalinheritedinherited
Interface Property

id

inheritedinherited
Interface Property

isDataView

inheritedinherited
Interface Property

isLocal

inheritedinherited
Interface Property

isSqlCaseSensitive

Interface Property

localId

optionalinheritedinherited
Interface Property

order

optionalinheritedinherited
Interface Property

parentDataSource

inheritedinherited
Interface Property

type

inheritedinherited
Interface Property

url

optional
Interface Property

Methods

Hide inherited methods
MethodReturnsNotes
addSourceVersion()
inherited
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.

buildRecord(data)
inherited
DataRecord

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

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.

destroy()
inherited
void

Destroy the data source.

fetchSchema()
inherited
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 the derived data views and local data sources.

getAllLoadedRecords()DataRecord[]

Get records of all the loaded pages.

getAutoRefreshInterval()number

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

getConfigQueryParams()QueryParams

Get the user config query parameters.

getCountStatus()
inherited
DataSourceStatus

Return data source count status.

getCurrentQueryId()string

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

getCurrentQueryParams(options?)QueryParams

Get the current query parameters. The current query parameters contain all applied queries.

IMDataSourceJson

The data source JSON object in app config.

getDataView(dataViewId)QueriableDataSource

Get data view by data view ID.

IMDataViewJson

Return the config of the current data source.

getDataViews()QueriableDataSource[]

Override parent interface to get correct type.

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.

getLocalDataSource(localId)
inherited
DataSource

Get local data source by local ID.

DataSource[]

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

getMainDataSource()QueriableDataSource

Return the main data source.

getMaxRecordCount()number

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

getRealQueryPages(pageSize, page)number[]

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

getRealQueryParams(query, flag, options?)QueryParams

When do query/load, we do not fire the query request directly. Instead, we'll consider the data source's config/current query parameter.

getRecordById(id)
inherited
DataRecord

Get record by ID

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.

getRecordsByPage(page, pageSize)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.

getRecordsByPageWithSelection(page, pageSize)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.

getRemoteQueryParams()QueryParams

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

DataSource

Return the root data source.

getRuntimeQueryParams(excludeWidgetId?)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

getSourceRecords()
inherited
DataRecord[]

Return the source records

getSourceVersion()
inherited
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.

isDataSourceSet()
inherited
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 .

isInAppConfig()
inherited
boolean

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

isSelectionView()
inherited
boolean

Determine whether the data source is a selection view.

load(query, options?)Promise<DataRecord[]>

Execute the query against the service and update the internal data records, pagination is supported. When call this method, the real query is returned by getRealQueryParams .

loadAll(query, signal?, progressCallback?, options?)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(id, refresh?)Promise<DataRecord>

Load record by ID, do not consider other queries.

loadCount(query, options?)Promise<number>

Load the records count.

mergeQueryParams(queries)QueryParams

Merge queries by using AND , and return the merged result. If any query is undefined/null, it will be ignored.

query(query, options?)Promise<QueryResult>

Execute query against the service only, do NOT update the internal data records. The actual query parameters are generated by getRealQueryParams .

queryAll(query, signal?, progressCallback?, options?)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(id, fields?)Promise<DataRecord>

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

queryCount(query, options?)Promise<QueryResult>

Query count

queryIds(query, options?)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 .

selectAllLoadedRecords()void

Select all loaded records.

selectRecordById(id, record?)
inherited
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(options, signal?, progressCallback?)Promise<QueryResult>

Select records.

selectRecordsByIds(ids, records?)
inherited
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.

setCountStatus(status)
inherited
void

Update data source count status.

setDataSourceJson(dsJson)
inherited
void

Update data source JSON in data source instance

setListenSelection(listen)
inherited
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.

setNeedRefresh(needRefresh)void

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

setRecords(records)
inherited
void

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

setSourceRecords(records)
inherited
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(status)
inherited
void

Update data source status.

updateQueryParams(query, widgetId)void

Update the data source query without executing the actual query.

updateSelectionInfo(options, triggerDataSource, forceCheck?)
inherited
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 Method
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.

Returns 
void

addVersion

optionalinheritedinherited
Interface Method
addVersion(): void

Update data source version.

Returns 
void

buildRecord

inheritedinherited
Interface Method
buildRecord(dataany): DataRecord

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

Parameters
ParameterType
dataany
Returns 
DataRecord

clearRecords

optionalinheritedinherited
Interface Method
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.

Returns 
void

clearSourceRecords

inheritedinherited
Interface Method
clearSourceRecords(): void

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

Returns 
void

destroy

inheritedinherited
Interface Method
destroy(): void

Destroy the data source.

Returns 
void

fetchSchema

inheritedinherited
Interface Method
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.

Returns 
Promise<IMDataSourceSchema>

getAllDerivedDataSources

inheritedinherited
Interface Method
getAllDerivedDataSources(): DataSource[]

Return the derived data views and local data sources.

Returns 
DataSource[]

getAllLoadedRecords

Interface Method
getAllLoadedRecords(): DataRecord[]

Get records of all the loaded pages.

Returns 
DataRecord[]

getAutoRefreshInterval

Interface Method
getAutoRefreshInterval(): number

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

Returns 
number

getConfigQueryParams

Interface Method
getConfigQueryParams(): QueryParams

Get the user config query parameters.

Returns 
QueryParams

getCountStatus

inheritedinherited
Interface Method
getCountStatus(): DataSourceStatus

Return data source count status.

Returns 
DataSourceStatus

getCurrentQueryId

Interface Method
getCurrentQueryId(): string

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

Returns 
string

getCurrentQueryParams

Interface Method
getCurrentQueryParams(options?GetCurrentQueryParamsOptions): QueryParams

Get the current query parameters. The current query parameters contain all applied queries.

Parameters
ParameterType
optionsGetCurrentQueryParamsOptions
Returns 
QueryParams

getDataSourceJson

inheritedinherited
Interface Method
getDataSourceJson(): IMDataSourceJson

The data source JSON object in app config.

Returns 
IMDataSourceJson

getDataView

Interface Method
getDataView(dataViewIdstring): QueriableDataSource

Get data view by data view ID.

Parameters
ParameterType
dataViewIdstring
Returns 
QueriableDataSource

getDataViewConfig

inheritedinherited
Interface Method
getDataViewConfig(): IMDataViewJson

Return the config of the current data source.

Returns 
IMDataViewJson

getDataViews

Interface Method
getDataViews(): QueriableDataSource[]

Override parent interface to get correct type.

Returns 
QueriableDataSource[]

getIdField

inheritedinherited
Interface Method
getIdField(): string

Return the data source ID field.

Returns 
string

getInfo

inheritedinherited
Interface Method
getInfo(): IMDataSourceInfo

Return the data source info in redux store.

Returns 
IMDataSourceInfo

getLabel

inheritedinherited
Interface Method
getLabel(): string

Return data source label.

Returns 
string

getListenSelection

inheritedinherited
Interface Method
getListenSelection(): boolean

Return whether listen selection.

Returns 
boolean

getLocalDataSource

inheritedinherited
Interface Method
getLocalDataSource(localIdstring): DataSource

Get local data source by local ID.

Parameters
ParameterType
localIdstring
Returns 
DataSource

getLocalDataSources

inheritedinherited
Interface Method
getLocalDataSources(): DataSource[]

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

Returns 
DataSource[]

getMainDataSource

Interface Method
getMainDataSource(): QueriableDataSource

Return the main data source.

Returns 
QueriableDataSource

getMaxRecordCount

Interface Method
getMaxRecordCount(): number

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

Returns 
number

getRealQueryPages

Interface Method
getRealQueryPages(pageSizenumber, pagenumber): number[]

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

Parameters
ParameterType
pageSizenumber
pagenumber
Returns 
number[]

getRealQueryParams

Interface Method
getRealQueryParams(queryQueryParams, flag"load" | "query", options?QueryOptions): QueryParams

When do query/load, we do not fire the query request directly. Instead, we'll consider the data source's config/current query parameter.

  • For load: we'll merge the configured query parameter if it has, and all widget applied queries.
  • For query, we'll merge the current query parameter and the configured query parameter it has.
Parameters
ParameterType
queryQueryParams
flag"load" | "query"
optionsQueryOptions
Returns 
QueryParams

getRecordById

inheritedinherited
Interface Method
getRecordById(idstring): DataRecord

Get record by ID

Parameters
ParameterType
idstring
Returns 
DataRecord

getRecords

Interface Method
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.

Returns 
DataRecord[]

getRecordsByPage

Interface Method
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.

Parameters
ParameterType
pagenumber
pageSizenumber
Returns 
DataRecord[]

getRecordsByPageWithSelection

Interface Method
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.

Parameters
ParameterType
pagenumber
pageSizenumber
Returns 
DataRecord[]

getRecordsWithSelection

inheritedinherited
Interface Method
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.

Returns 
DataRecord[]

getRemoteQueryParams

Interface Method
getRemoteQueryParams(): QueryParams

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

Returns 
QueryParams

getRootDataSource

inheritedinherited
Interface Method
getRootDataSource(): DataSource

Return the root data source.

Returns 
DataSource

getRuntimeQueryParams

Interface Method
getRuntimeQueryParams(excludeWidgetId?string): QueryParams

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

Parameters
ParameterType
excludeWidgetIdstring
Returns 
QueryParams

getSchema

inheritedinherited
Interface Method
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.

Returns 
IMDataSourceSchema

getSelectedRecordIds

inheritedinherited
Interface Method
getSelectedRecordIds(): string[]

Get selected record IDs

Returns 
string[]

getSelectedRecordIndexes

inheritedinherited
Interface Method
getSelectedRecordIndexes(): number[]

Get selected record indexes

Returns 
number[]

getSelectedRecords

inheritedinherited
Interface Method
getSelectedRecords(): DataRecord[]

Get selected records

Returns 
DataRecord[]

getSelectionDataView

inheritedinherited
Interface Method
getSelectionDataView(): DataSource

Get selection data view

Returns 
DataSource

getSourceRecords

inheritedinherited
Interface Method
getSourceRecords(): DataRecord[]

Return the source records

Returns 
DataRecord[]

getSourceVersion

inheritedinherited
Interface Method
getSourceVersion(): number

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

Returns 
number

getStatus

inheritedinherited
Interface Method
getStatus(): DataSourceStatus

Return data source status.

Returns 
DataSourceStatus

getVersion

inheritedinherited
Interface Method
getVersion(): number

Return data source version.

Returns 
number

isDataSourceSet

inheritedinherited
Interface Method
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 .

Returns 
thisisDataSource & SetDataSourceMixin

isInAppConfig

inheritedinherited
Interface Method
isInAppConfig(): boolean

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

Returns 
boolean

isSelectionView

inheritedinherited
Interface Method
isSelectionView(): boolean

Determine whether the data source is a selection view.

Returns 
boolean

load

Interface Method
load(queryQueryParams, options?QueryOptions): Promise<DataRecord[]>

Execute the query against the service and update the internal data records, pagination is supported. When call this method, the real query is returned by getRealQueryParams .

Pagination: The pagination properties in the passed in query parameter may be not the same as the real query pagination that is sent to the service. The real query pagination is defined in the data source setting.

Parameters
ParameterType
queryQueryParams
optionsQueryOptions
Returns 
Promise<DataRecord[]>

loadAll

Interface Method
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.

Parameters
ParameterType
queryQueryParams
signalAbortSignal
progressCallbackQueryProgressCallback
optionsQueryOptions
Returns 
Promise<DataRecord[]>

loadById

Interface Method
loadById(idstring, refresh?boolean): Promise<DataRecord>

Load record by ID, do not consider other queries.

Parameters
ParameterType
idstring
refreshboolean
Returns 
Promise<DataRecord>

loadCount

Interface Method
loadCount(queryQueryParams, options?QueryOptions): Promise<number>

Load the records count.

Parameters
ParameterType
queryQueryParams
optionsQueryOptions
Returns 
Promise<number>

mergeQueryParams

Interface Method
mergeQueryParams(queriesQueryParams[]): QueryParams

Merge queries by using AND , and return the merged result. If any query is undefined/null, it will be ignored.

Parameters
ParameterType
queriesQueryParams[]
Returns 
QueryParams

query

Interface Method
query(queryQueryParams, options?QueryOptions): Promise<QueryResult>

Execute query against the service only, do NOT update the internal data records. The actual query parameters are generated by getRealQueryParams .

To query count, please use queryCount .

Parameters
ParameterType
queryQueryParams
optionsQueryOptions
Returns 
Promise<QueryResult>

queryAll

Interface Method
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.

Parameters
ParameterType
queryQueryParams
signalAbortSignal
progressCallbackQueryProgressCallback
optionsQueryOptions
Returns 
Promise<QueryResult>

queryById

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

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

Parameters
ParameterType
idstring
fieldsstring[]
Returns 
Promise<DataRecord>

queryCount

Interface Method
queryCount(queryQueryParams, options?QueryOptions): Promise<QueryResult>

Query count

Parameters
ParameterType
queryQueryParams
optionsQueryOptions
Returns 
Promise<QueryResult>

queryIds

Interface Method
queryIds(queryQueryParams, options?QueryOptions): Promise<QueryResult>

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

Parameters
ParameterType
queryQueryParams
optionsQueryOptions
Returns 
Promise<QueryResult>

ready

inheritedinherited
Interface Method
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 .

Returns 
Promise<any>

selectAllLoadedRecords

Interface Method
selectAllLoadedRecords(): void

Select all loaded records.

Returns 
void

selectRecordById

inheritedinherited
Interface Method
selectRecordById(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.

Parameters
ParameterTypeNotes
idstring

The ID to be selected. The selection will be cleared if the ID is null.

recordDataRecord
Returns 
void

selectRecords

Interface Method
selectRecords(optionsQueriableSelectOptions, signal?AbortSignal, progressCallback?QueryProgressCallback): Promise<QueryResult>

Select records.

Parameters
ParameterType
optionsQueriableSelectOptions
signalAbortSignal
progressCallbackQueryProgressCallback
Returns 
Promise<QueryResult>

selectRecordsByIds

inheritedinherited
Interface Method
selectRecordsByIds(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.

Parameters
ParameterTypeNotes
idsstring[]

The IDs to be selected. The selection will be cleared if the IDs are null.

recordsDataRecord[]
Returns 
void

setCountStatus

optionalinheritedinherited
Interface Method
setCountStatus(statusDataSourceStatus): void

Update data source count status.

Parameters
ParameterType
statusDataSourceStatus
Returns 
void

setDataSourceJson

inheritedinherited
Interface Method
setDataSourceJson(dsJsonIMDataSourceJson): void

Update data source JSON in data source instance

Parameters
ParameterType
dsJsonIMDataSourceJson
Returns 
void

setListenSelection

inheritedinherited
Interface Method
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.

Parameters
ParameterType
listenboolean
Returns 
void

setNeedRefresh

Interface Method
setNeedRefresh(needRefreshboolean): void

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

Parameters
ParameterType
needRefreshboolean
Returns 
void

setRecords

inheritedinherited
Interface Method
setRecords(recordsDataRecord[]): void

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

Parameters
ParameterType
recordsDataRecord[]
Returns 
void

setSourceRecords

inheritedinherited
Interface Method
setSourceRecords(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.

Parameters
ParameterType
recordsDataRecord[]
Returns 
void

setStatus

optionalinheritedinherited
Interface Method
setStatus(statusDataSourceStatus): void

Update data source status.

Parameters
ParameterType
statusDataSourceStatus
Returns 
void

updateQueryParams

Interface Method
updateQueryParams(queryQueryParams, widgetIdstring): void

Update the data source query without executing the actual query.

Parameters
ParameterType
queryQueryParams
widgetIdstring
Returns 
void

updateSelectionInfo

inheritedinherited
Interface Method
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.

Parameters
ParameterType
optionsSelectOptions
triggerDataSourceDataSource
forceCheckboolean
Returns 
void

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