PCModelingLibrary::templateSaveStringAllocation Method [AX 2012]

Saves the allocation value for a string field for the specified template binding.

client server public static void templateSaveStringAllocation(
    PCClass _component, 
    PCTemplateComponent _templateComponent, 
    PCTemplateAttribute _fieldReference, 
    FormStringControl _stringContainer, 
    FormRadioControl _radioButtons)

Run On

Called

Parameters

_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.
_stringContainer
Type: FormStringControl Class
The FormStringControl object that contains the name of the attribute if the allocation is set to an attribute; otherwise it contains the constant value.
_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.
Show: