display.grid.getRecord()



This method retrieves a record from the grid by its relative record number. The record data can then be accessed through global fields, a data structure, or a return value object.

Parameters

  1. RRN - Numeric value specifying a relative record number

  2. Data structure (optional) - a Profound.js data structure reference. If specified, the referenced data structure will be populated with the record data. Otherwise, the data is populated into global fields. If the data structure is not qualified, you must wrap the parameter with the pjs.ds() API.

Return Value

If a record is found, this method returns an object containing the fields in the matched record as properties. 

Example

// Get the 7th record in the grid display.grid.getRecord(7); // Verify it was retrieved if (display.found()) { // do something with retrieved record here }



RPG Equivalent

CHAIN