...
Code Block | ||||
---|---|---|---|---|
| ||||
pjs.defineDisplay("display", "mydisplay.json"); var records = pjs.query("SELECT * FROM ORDERS"); display.grid1.replaceRecords(records); |
Code Block | ||||
---|---|---|---|---|
| ||||
pjs.defineDisplay("display", "mydisplay.json");
display.grid1.clear();
var c1 = pjs.allocStmt();
c1.executeDirect("SELECT * FROM ORDERS");
var record = c1.fetch();
while (c1.hasMoreRows()) {
display.grid1.push(record);
record = c1.fetch();
}
|