Codeunit WSB_CFClearFieldValues¶
Codeunit responsible for clearing the custom field values for a given record and field reference. This function is seperated from the CFDefinitionMgt codeunit to allow clearing on posted table fields, which requires special permissions. This codeunit has the necessary permissions to clear fields on posted tables, and is called from CFDefinitionMgt when a custom field definition is being deleted with the option to clear values.
Properties¶
| Name | Value |
|---|---|
| Access | Public |
Methods¶
wgFncClearFieldValues¶
Clears existing values for this custom field when action Clear Field Values executed.
Parameters¶
| Type | Name | Description |
|---|---|---|
Record "WSB Custom Field Definition" |
pRecWSBCustomFieldDefinition |
Record for which values must be deleted in related tables |
wlEvpOnBeforeClearRelatedValues¶
Allows to suppress confirm dialog on delete of the WSB Custom Field Definition record. Replaces wlEvpOnBeforeClearRelatedValues event in WSB_CFDefinitionMgt codeunit.
Parameters¶
| Type | Name | Description |
|---|---|---|
Record "WSB Custom Field Definition" |
pRecWSBCustomFieldDefinition |
The WSB Custom Field Definition record. |
Boolean |
vSuppressDialog |
Set this to true, if confirm dialog must be suppresed on deletion of the record. |