Constructors
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
updateData |
Array.<Object> |
an array of row update objects
|
- Since:
- Documents 5.0d HF2
Example
var rowUpdate = new otris.scriptlist.RowUpdate();
rowUpdate.addEntry("id5", {columnOne: "New value for column one"});
return rowUpdate.transfer();
Methods
-
addEntry(rowId, newData)
-
Adds a new entry
Name Type Description rowId
string row id
newData
Object updated row data (plain key/value object)
-
transfer(){string}
-
Return a proper JSON representation of this
rowUpdate
.Returns:
Type Description string JSON representation that can be used as a return value of a PortalScript