display.endOfData()
This method returns a specific display's end of file state indicating whether the last call to display.grid.readChanged() found more changed records.
Return Value
A boolean value is returned. True indicates no more changed records were found. False indicates a changed record was found.
Example
pjs.defineDisplay("display", "subfiled.json", { rrnFields: { sfl: 'RRN' } });
Â
// 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
%EOF(display_file_name)