Versions Compared

Key

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


Method that This method returns the next changed record from the grid, based on previous calls to display.grid.readChanged or display.grid.getRecord (if neither has been previously called it will return the first record of the grid if present.)

Parameters

ds in a grid. The record data can then be accessed through global fields, a data structure, or a return value object.

Parameters

Data structure (optional) - A Profound.js data structure reference. If specified and a record is found, the referenced data structure will be populated with the record data. If not specified, the data (if found). 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. This would normally be used if a data structure is not specified in the method call. If a record is not found. an empty object is returned. 

Code Block
languagejavascript
var recordpjs.defineDisplay("display", "subfiled.json");
 
// GetLoad thesubfile nextgrid record in the grid
record =data here
 
display.gridctl.readChangedexecute();  // Verify it was retrieved
if (typeof record !== 'undefined'){
 display control record
 
// Now process all subfile grid records changed by the user 
display.sfl.readChanged();
while (!display.endOfData()) {
  // Process changed dosubfile somethingrecords withhere
retrieved record, etcdisplay.sfl.readChanged();

}

...


RPG Equivalent

READC