English
setReadOnly
About 90 wordsLess than 1 minute
2025-12-15
dataUpdater.setReadOnly(opts)
Sets master-object or detail-object fields to read-only
Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
| opts | Parameters for modifying read-only state | Object | Yes |
opts
| Parameter | Description | Type | Required |
|---|---|---|---|
| status | Whether read-only | Boolean | Yes |
| fieldName | Field apiName | Array | Yes |
| dataIndex | Row IDs of modified detail objects | Array | No |
| whiteFieldName | Field apiName whitelist (all fields except those in whiteFieldName will be modified) | Array | No |
Return Value
None
Basic Example
Set master-object fields to read-only
context.dataUpdater.setReadOnly({
status: true,
fieldName: ['data_own_department']
});