table.length

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

Returns the number of rows in a Table, as displayed, including header rows and data rows.

Type

Integer

Example

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

Either syntax below can be used in component script:

table.length                 // unqualified
TableView1.table.length      // qualified

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