Returns an array containing the relative record numbers of all rows currently selected with the "row selection" feature.

Return Value:

  • an array numbers containing the RRNs of the rows that have been selected.  This will be the same RRN that was used when writing the row from your program.

  • or, an empty array if no rows are selected.


var myGrid = getObj("Grid1"); var myArray = myGrid.grid.getSelectedRows(); for (var i=0; i<myArray.length; i++) { var rrn = myArray[i]; // row 'rrn' was selected. Get the "CUSTNO" field from that row. var custno = myGrid.grid.getDataValue(rrn, "CUSTNO"); // do something with 'custno' here. }