Rowset.position()
note
This article is about the position() function of the Rowset object.
Rowset.position()
Gets the position of the current record relative to its data set.
Returns a string of the form '*position*/*count*', where position is the 1-based position of the current record within its data set, and count is the total number of records in that data set. Returns '0/0' if there is no current record.
Syntax
$.udb( *ds* ).rowSet( *rowSet* ).position()
The required ds parameter is a data source selector.
The required rowSet parameter is a rowset identifier.
Example
let rowSet = $.udb('EMP').rowSet('current');
console.log('Record %s of the current data set', rowSet.position());
Example output:
'Record 1/8 of the current data set'