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

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