DataSourceContainer object

Previous Next

This object contains a set of data sources.

When calling $.udb(), you can refer to data sources with arrays or simple strings, using the selection techniques below:

 

 

collapseSelecting by data source ID
collapseSelecting by data source type
collapseSelecting by name or path
collapseSelecting by frame ID

Functions

The DataSourceContainer object exposes the following functions.

When you call a function, the DataSourceContainer transfers the method to each individual data source that it contains.

The DataSourceContainer object is derived from the DataSourceMetaContainer object, in the sense that practically all DataSourceMetaContainer functions are exposed also by the DataSourceContainer object.

Function

Description

.clear()

Function to clear the datasources' contents.

.clearQuery()

Function to clear the query conditions of the data sources in the container.

.createRowSet()

Function to create a new Rowset in the data source for some parent key

.each()

Function to iterate execution of a function for each matched data source.

.embeddedKeyCols()

Function that returns columns that are used as keys in an embedded data source.

.executeQuery()

Function to (re)query a data source.

.getDataSet()

Function to fetch a specific set of records.

.gotoDataSet()

Function to display or query a set of records given by a data set indicator.

.meta()

Function that returns the meta data container of the first data source of its collection.

.off()

Function to remove a handler from an event.

.on()

Function that binds a handler to an event.

.refresh()

Function to refresh the current data set.

.rowCount()

Function that returns the number of records.

.rowCreate()

Function to create a new record.

.rows()

Function to get a collection of records.

.rowSet()

Function to get a rowSet object of the data source for some parent key

.searchCols()

Function to get a column of columns.

.setQueryHook()

Function to modify or process a set of query conditions prior to querying it.

.trigger()

Function to trigger an event.