PCModelingLibrary::templateLoadStringAllocation Method [AX 2012]

Loads the allocation value for a string field from the specified template binding, if it exists.

client public static str templateLoadStringAllocation(
    PCClass _component, 
    PCTemplateAttributeBinding _templateAttributeBinding, 
   [FormStringControl _stringContainer, 
    FormCheckBoxControl _checkbox, 
    FormRadioControl _radioButtons, 
    FormGroupControl _group])

Run On

Client

Parameters

_component
Type: PCClass Table
The component that owns the allocation.
_templateAttributeBinding
Type: PCTemplateAttributeBinding Table
The allocation binding of the field.
_stringContainer
Type: FormStringControl Class
The FormStringControl object that receives the name of the attribute if the allocation is to an attribute; otherwise it will receive the constant value; optional.
_checkbox
Type: FormCheckBoxControl Class
The FormCheckboxControl object that is marked as checked if a binding exists; optional.
_radioButtons
Type: FormRadioControl Class
The FormRadioControl object that will be set to the PCAllocation::Attribute value if the allocation is of type attribute; otherwise it will be set to the PCAllocation::Value value; optional.
_group
Type: FormGroupControl Class
The FormGroupControl object that is set to enabled if a binding exists; optional.

Return Value

Type: str
The name of the attribute, if the allocation binds to an attribute; otherwise, the string representation of the constant value.
Show: