Page tree
Skip to end of metadata
Go to start of metadata

Specifies the field name to use for the relative record number. You may also specify the relative record number field using the rrnFields config property on the pjs.defineDisplay() API.

Parameter

Field name (string)

Example

pjs.defineDisplay("display", "mydspf.json");  // declare display file
pjs.define("rrn", { type: "integer" });  // declare rrn field
display.sfl.setGridRecNumField("rrn");  // set rrn field to a subfile grid named sfl
 
// grid record data can be populated here
 
rrn = 1;  // use rrn field to specify record 1
 
display.sfl.write();  // write record 1 to the grid