PCModelingLibrary::templateLoadBoolAllocation Method [AX 2012]
Loads the allocation value for a Boolean field from the specified template binding if it exists.
client public static str templateLoadBoolAllocation(
PCClass _component,
PCTemplateAttributeBinding _templateAttributeBinding,
FormCheckBoxControl _boolValue,
FormStringControl _stringContainer,
FormCheckBoxControl _checkbox,
FormRadioControl _radioButtons,
FormGroupControl _group)
Run On
ClientParameters
- _component
- Type: PCClass Table
The component that owns the allocation.
- _templateAttributeBinding
- Type: PCTemplateAttributeBinding Table
The allocation binding of the field.
- _boolValue
- Type: FormCheckBoxControl Class
The FormCheckboxControl object that will receive the value if the allocation is set to a constant value.
- _stringContainer
- Type: FormStringControl Class
The FormStringControl object that receives the name of the attribute if the allocation is set to an attribute.
- _checkbox
- Type: FormCheckBoxControl Class
The FormCheckboxControl object that will be marked as checked if a binding exists.
- _radioButtons
- Type: FormRadioControl Class
The FormRadioControl object that will be set to the PCAllocation::Attribute enumeration value if the allocation is of the attribute type; otherwise it will be set to the PCAllocation::Value enumeration value.
- _group
- Type: FormGroupControl Class
The FormGroupControl object that will be set to enabled if a binding exists.
Return Value
Type: strThe name of the attribute if the allocation binds to an attribute; otherwise, the string representation of the constant value.
Show: