setCursorRecordNumber(rrn)



This method can be used to set the value which will be received by the field bound to the grid's 'cursor record number' property. This is allows for selection of a grid record, without the user actually having to click on the grid.

If the 'cursor record number' property is not bound, this method will do nothing.

Parameters:

  • rrn - the relative record number to set. This must be a Number value 1-9999.

Example:

The following example sets the cursor record number to 10 and submits the screen to the server for processing.

getObj("Grid1").grid.setCursorRecordNumber(10); pui.click();