Versions Compared

Key

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

...

Code Block
languagejavascript
titleLoad one record at a time using primitive objects
pjs.defineDisplay("display", "mydisplay.json");
 
display.grid1.clear();
 
var c1 = pjs.allocStmt();
c1.executeDirect("SELECT * FROM ORDERS");
 
var record = c1.fetch();
while (c1.hasMoreRows()) {
  // custom processing before record is added can go here
  display.grid1.push(record);
  record = c1.fetch();
}