PCModelingLibrary::templateLoadFloatAllocation Method [AX 2012]

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

client public static str templateLoadFloatAllocation(
    PCClass _component, 
    PCTemplateAttributeBinding _templateAttributeBinding, 
    FormRealControl _floatValue, 
    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.
_floatValue
Type: FormRealControl Class
The FormRealControl object that receives 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: str
The name of the attribute if the allocation binds to an attribute; otherwise, the string representation of the constant value.
Show: