display.grid.setGridRecNumField()
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