English
toggleMDStatus
About 109 wordsLess than 1 minute
2025-12-15
bizApi.toggleMDStatus(objApiName, status)
Toggles the display state of a detail object
Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
| objApiName | Detail object apiName | String | Yes |
| status | Whether to show | Boolean | Yes |
Return Value
None
Basic Example
export default class Plugin {
apply() {
return [{
event: 'form.render.after',
functional: this.formRendereAfter.bind(this)
}]
}
formRendereAfter(context, plugin) {
context.bizApi.toggleMDStatus('object_a39cd__c', true); // show table
context.bizApi.toggleMDStatus('object_dbd66__c', false); // hide table
}
}Notes
1. This method cannot hide a specific business type
In object form plugins, show/hide operations for specific business types should use showDetailsComp and hideDetailsComp. These two methods can show or hide specified business types after form rendering according to specific conditions.
