data.length

Property is read-only. It cannot be set in script.

Returns the number of rows in a table, prior to aggregation and summarization.

Type

Integer

Example

// Testing for empty result set:
if (TableView1.data.length == 1) {
  Text1.text = 'No data returned';
}

Either syntax below can be used in component script:

data.length                 // unqualified
TableView1.data.length      // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.