Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

The replaceRecords() methods clears a grid and then adds an array of records to it.

 

Parameter

  1. Array of records; each array element is a JavaScript object with properties representing fields in the grid


Example

pjs.defineDisplay("display.json");  // assume display.json defines mygrid with fields named "product" and "description"
 
display.mygrid.replaceRecords([
  { product: 1, description: "ITEM ONE" },
  { product: 2, description: "ITEM TWO" },
  { product: 3, description: "ITEM THREE" },
  { product: 4, description: "ITEM FOUR" }
]);
  • No labels