display.grid.update()



This method updates the current subfile grid record.

Parameter

  1. Data structure (optional) - A Profound.js data structure reference. If specified, the record will be populated with the values from the data structure. If not specified, global field values are used.

Example

pjs.defineDisplay("mydisplay.json"); // Declare Rich Display File   // Business logic and logic to populate a grid can go here mydisplay.mysubfile.getRecord(1); // Retrieve 1st record from a grid myfield = "myvalue"; // Set a field value in the grid mydisplay.mysubfile.update(); // Update grid record



RPG Equivalent

UPDATE