pjs.fields()



The value returned by this method can be passed to file.update() to control which fields are updated in the record. 

Parameters

Field name - this parameter can be repeated as many times as needed.

Return Value

A list of field names that can be passed as the last argument to file.update(). If the field list is not specified, all fields in the record are updated.

Example

Update selected fields only
var updateFile = pjs.defineTable("updateFile", { read: true, update: true }); updateFile.fetchNext(); field1 = 100; field2 = 200; updateFile.update("recName", pjs.fields(field1, field2));

RPG Equivalent 

%FIELDS()

Requirements

This API requires the Profound.js Connector module.