This method returns the next changed record 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 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.
Code Block | ||
---|---|---|
| ||
pjs.defineDisplay("display", "subfiled.json");
// Load subfile grid data here
display.ctl.execute(); // display control record
// Now process all subfile grid records changed by the user
display.sfl.readChanged();
while (!display.endOfData()) {
// Process changed subfile records here
display.sfl.readChanged();
} |
RPG Equivalent
READC