English
update
About 120 wordsLess than 1 minute
2025-09-22
A unified method for updating one data record of either the main object or a child object.
Parameters
| Parameter | Description | Type |
|---|---|---|
| apiName | Child object apiName | String |
| dataIndex | dataIndex of the target child object data. Pass an empty value when updating the main object | String |
| object_data | Data to update | Object |
Return Value
None
Code Example
{
event: "form.render.end",
functional: function (pluginExecResult, options) {
console.log("custom plugin: form.render.end exec");
let {dataUpdater,masterObjApiName}=options;
// Update main object data
dataUpdater.update(masterObjApiName, "", {name:"1111"})
// Update the data whose dataIndex is "1" in child object SalesOrderProductObj
dataUpdater.update("SalesOrderProductObj", "1", {name:"2222"})
}
},Notes
- This method only contains logic for updating object data. It does not trigger calculations or UI events.
