PCModelingLibrary::templateLoadDateTimeAllocation Method [AX 2012]
Loads the allocation value for a dateTime field from the specified template bindingif it exists.
client public static str templateLoadDateTimeAllocation(
PCClass _component,
PCTemplateAttributeBinding _templateAttributeBinding,
FormDateControl _dateValue,
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.
- _dateValue
- Type: FormDateControl Class
The FormDateControl object that receives the value if the allocation is 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: