getRRN( row )



This method will return the relative record number (RRN) for the given row number.

Parameters:

  • row = the row number of the grid after the data has been filtered and sorted.

Return Value:

  • Returns the relative record number (RRN) value corresponding to that row number value. This number should match the RRN used in your RPG program when the record was written.

Example:

var row = 3; var rrn = getObj("Grid1").grid.getRRN(row);   // rrn = 17