English
md.add.end
About 125 wordsLess than 1 minute
2025-12-15
This hook is triggered after child-object data is added and after UI events/calculation logic have finished executing. It allows extra business actions, including but not limited to data validation.
- Validate data
Parameters
| Parameter | Description | Type |
|---|---|---|
| Common parameters | See details | -- |
| objApiName | Child object apiName | String |
| recordType | Child object record type | String |
| newData | Newly added child-object data | Object |
| newDataIndexs | Row IDs of the newly added child-object data | Array |
Basic Example
Basic Usage
export default class Plugin {
apply() {
return [{
event: 'md.add.end',
functional: this.mdAddEnd.bind(this)
}]
}
// If this is a middleware plugin in a vcrm project, swap the interaction parameter positions
// mdAddEnd(plugin, context)
mdAddEnd(context, plugin) {
// todo what you want
}
}