Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This API writes a record to a grid.

Section

 

 

Column
width25%

Parameters


  • Profound.js data structure reference (optional)

(info) If specified, the record will be populated with the values from the data structure. If not specified, global field values are used.

Column
width25%

RPG Equivalent


WRITE

...

It is also possible to specify an RRN (Relative Record Number) field on a subfile grid. If this is specified in the pjs.defineDisplay() statement, then the appropriate RRN number be populated before the write() method is executed.

Code Block
languagejavascript
pjs.defineDisplay("display", "subfiled.json", { rrnFields: { sfl: 'RRN' } });
pjs.define("RRN", { type: 'integer' });
display.sfl.clear();
for (RRN = 1; RRN <= 99; RRN++) {
  // Logic to populate grid record can go here
  display.sfl.write();
}
display.screen.execute();

...