English
getAllDetailDatas()
About 115 wordsLess than 1 minute
2025-09-22
This method synchronously returns a copy of all current child object data.
Parameters
None
Return Value
Return Value Example
{
"SalesOrderProductObj":[{"_id":"xxxid1",...},{"_id":"xxxid2",...}],
"object_testslave__c":[{"_id":"xxxid11",...},{"_id":"xxxid22",...}]
}- key: child object's
apiName - value: child object data list; each list item is standard object data
object_data
Code Example
export default function (context) {
return {
/** After the create/edit page has finished rendering */
renderEnd(){
let detailDatas = context.getAllDetailDatas();
console.log("context.getAllDetailDatas: ", detailDatas)
}
}
}Notes
The data returned by this method is a
deepClonecopy. Directly modifying it will not affect the original data.let detailDatas = context.getAllDetailDatas(); detailDatas.abc="123";// invalid console.log(context.getAllDetailDatas().abc);// undefined
