PCModelingLibrary::setAttributeModifier Method [AX 2012]
Creates or deletes a modifier of the specified type, depending on the specified value.
server public static NoYes setAttributeModifier(
EcoResCategoryAttribute _attribute,
boolean _set,
NoYes _value,
EcoResModifierType _modifierType)
Run On
ServerParameters
- _attribute
- Type: EcoResCategoryAttribute Table
The attribute that contains the modifier.
- _set
- Type: boolean
A Boolean value that indicates whether the modifier should be created.
- _value
- Type: NoYes Enumeration
The current value when the _set parameter is true.
- _modifierType
- Type: EcoResModifierType Enumeration
The modifier type of the record to create or delete.
Return Value
Type: NoYes EnumerationNoYes::Yes if the category has a modifier of the type that is specified in the _modifierType parameter; otherwise, the NoYes::No enumeration value.
Show: