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 found). . 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. 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 | ||
---|---|---|
| ||
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