DimensionDefaultingController::constructInGroupWithCombosAndValues Method [AX 2012]
Constructs an instance of the DimensionDefaultingController class that has a combo box control and string edit associated with each dimension attribute added to the specified FormGroupControl object.
Syntax
client public static DimensionDefaultingController constructInGroupWithCombosAndValues(
EnumId _enumType,
boolean _valuesAppearLast,
boolean _allowEdit,
RecId _editableDimensionAttributeSetId,
FormRun _formRun,
FormGroupControl _groupControlContainer,
str _introGroupLabel,
str _comboLabel,
[SelectableDataArea _company])
Run On
Client
Parameters
- _enumType
Type: EnumId Extended Data Type
The EnumId value of the base enumeration to link to the combo box control.
- _valuesAppearLast
Type: boolean
A Boolean value that indicates whether the value column appears before the combo box column.
- _allowEdit
Type: boolean
A Boolean value that indicates whether the controls can be edited.
- _editableDimensionAttributeSetId
Type: RecId Extended Data Type
The value that specifies a list of dimension attributes associated with the controls.
- _formRun
Type: FormRun Class
The FormRun object of the form that hosts the container to hold the added controls.
- _groupControlContainer
Type: FormGroupControl Class
The FormGroupControl object that contains the added controls.
- _introGroupLabel
Type: str
The label that is used as the introductory text above the added controls.
- _comboLabel
Type: str
The label that is used to identify the column of the check box controls.
- _company
Type: SelectableDataArea Extended Data Type
The company that is used to filter the list of dimension attributes.
Return Value
Type: DimensionDefaultingController Class
A new instance of the DimensionDefaultingController class that has a combo box control and string edit associated with each dimension attribute.
Exceptions
Exception | Condition |
---|---|
Error | The _formRun, _groupControlContainer, _introGroupLabel, _valueLabel, and _company parameters must be specified. An _editableDimensionAttributeSetID parameter can only be specified when the _allowEdit parameter is true. |