Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

This method updates the currently positioned record.

Parameters
  1. Record format name (optional) - A String value specifying the record format name.
  2. Data structure (optional) - A Profound.js data structure reference. If specified, the record will be populated with the values from the data structure. If the data structure is not qualified, you must wrap the parameter with the pjs.ds() API.

Exception Handling

An Error instance will be thrown with the following properties:

  • message - The message text.
  • error - The message id.
  • help - The message help text.
Examples
Code Block
languagejavascript
titleUpdate record
pjs.defineTable("myfile", { keyed: true, read: true, update: true });
myfile.getRecord(100);
if (myfile.found()) { 
  field1 = "New value";
  myfile.update(); 
}


RPG Equivalent

UPDATE

Requirements

This API requires the Profound.js Connector module.