English
createNewDataIndex
About 81 wordsLess than 1 minute
2025-09-22
Creates a new numeric string dataIndex, used to specify the dataIndex when creating new data, ensuring that each record has a unique dataIndex.
Parameters
None
Return Value
String: dataIndex
Code Example
{
event: "form.render.end",
functional: function (pluginExecResult, options) {
console.log("custom plugin: form.render.end exec");
let {dataUpdater,bizApi}=options;
dataUpdater.add({
object_describe_api_name: "SalesOrderProductObj",
record_type:"default__c",
name:"1",
dataIndex:bizApi.createNewDataIndex(),// Creates a new dataIndex. This is only an example; dataUpdater.add() will automatically create and supplement the dataIndex
})
}
},