PCModelingLibrary::templateSaveEnumAllocation Method [AX 2012]
Saves the allocation value for an enumeration field for the specified template binding.
client server public static void templateSaveEnumAllocation(
PCClass _component,
PCTemplateComponent _templateComponent,
PCTemplateAttribute _fieldReference,
FormComboBoxControl _enumValue,
FormStringControl _stringContainer,
FormRadioControl _radioButtons)
Run On
CalledParameters
- _component
- Type: PCClass Table
The component that owns the allocation.
- _templateComponent
- Type: PCTemplateComponent Table
The container of field allocations for the component.
- _fieldReference
- Type: PCTemplateAttribute Table
The reference to the existing table field.
- _enumValue
- Type: FormComboBoxControl Class
The FormComboboxControl object that contains the value if the allocation is set to a constant value.
- _stringContainer
- Type: FormStringControl Class
The FormStringControl object that contains the name of the attribute if the allocation is set to an attribute.
- _radioButtons
- Type: FormRadioControl Class
The FormRadioControl object that will be set to the PCAllocation::Attribute value if the allocation is of the attribute type; otherwise it will be set to the PCAllocation::Value enumeration value.
Show: