.dataSet() |
Gets information about a specific data set in a row set. The subdivision into data sets of a row set depends on the value of the data source's "Maximum number of records" property. You can get this value by calling .dataSetIndicator(). Returns an object with static information about this data set. The data set must have been queried already and must exist prior to calling this function, or else the result value is 'undefined'. Whether or not a data set is queried depends on the value of the data source's "Automatically query next data sets" property. Syntax
The required data-set is one of the following: •One of the literal values listed and explained in the table below, or •An index value that is an integer pointing at a specific data set. The index is 0-based: the first data set has index 0, not 1.
Output values The returned object contains the following fields:
Example var dataSetInfo = rowSet.dataSet('current'); if (dataSetInfo.rowCount > 10) { var rows = rowSet.rows(dataSetInfo.start, dataSetInfo.start+10); … } |