Skip to main content
Version: 11.2

Rowset.isEmpty()

note

This article is about the isEmpty() function of the Rowset object.

Rowset.isEmpty()

Detects whether the row set contains any records. This can be used to determine whether records must be displayed, or need to be queried first.

Returns a boolean.

Syntax

$.udb( *ds* ).rowSet( *rowSet* ).isEmpty()

The required ds parameter is a data source selector.

The required rowSet parameter is a rowset identifier.

Example

let rowSet = $.udb('EMP').rowSet('current');

if (rowSet.isEmpty()) {
$.udb('EMP').executeQuery();
}