This documentation is archived and is not being maintained.
DimensionDefaultingControllerBase.setValueEditabilityForEnums Method [AX 2012]
Specifies a map of enumeration values associated with a Boolean value that indicates whether the associated value can be edited.
public void setValueEditabilityForEnums(Map _valueEditForEnumMap, [boolean _clearWhenNonEditable])
Run On
Called
Parameters
-
_valueEditForEnumMap
- Type: Map Class
A map of enumeration values as keys and Boolean values as values.
-
_clearWhenNonEditable
- Type: boolean
A Boolean value that indicates whether to clear the value and description fields when the control cannot be edited.
| Exception | Condition |
|
Error
|
A map must be specified.
|
Setting this method will not change the editable state of any control immediately.
A control value must be changed or the opened method called to trigger a reload and update of the editability state of all controls.