DimensionDefaultingController::constructInGroupWithValues Method [AX 2012]
Constructs an instance of the DimensionDefaultingController class that has a string edit control associated to each DimensionAttribute record added to the specified FormGroupControl container.
Syntax
client public static DimensionDefaultingController constructInGroupWithValues(
boolean _showNoDefaultLabel,
boolean _showWhereUsed,
boolean _allowEdit,
RecId _editableDimensionAttributeSetId,
FormRun _formRun,
FormGroupControl _groupControlContainer,
str _introGroupLabel,
[SelectableDataArea _company])
Run On
Client
Parameters
- _showNoDefaultLabel
Type: boolean
A Boolean value that indicates whether the name column associated with each value shows No default or displays a blank value when no value is entered.
- _showWhereUsed
Type: boolean
A Boolean value that indicates whether the where-used structure pane is drawn to the right of the primary edit control pane.
- _allowEdit
Type: boolean
A Boolean value that indicates whether the controls are editable.
- _editableDimensionAttributeSetId
Type: RecId Extended Data Type
A list of DimensionAttribute records that are associated with the controls that are only editable when the _allowEdit parameter is true.
- _formRun
Type: FormRun Class
The instance of the FormRun class for the form that is hosting the container to hold the added controls.
- _groupControlContainer
Type: FormGroupControl Class
The FormGroupControl container to hold the added controls.
- _introGroupLabel
Type: str
The label to use as introductory text above the added controls.
- _company
Type: SelectableDataArea Extended Data Type
The company used to filter the list of DimensionAttribute records.
Return Value
Type: DimensionDefaultingController Class
A new instance of the DimensionDefaultingController class that has a check box control associated to each DimensionAttribute record.
Exceptions
Exception | Condition |
---|---|
Error | The _formRun, _groupControlContainer, _introGroupLabel, _valueLabel, or _company parameter was not specified. An _editableDimensionAttributeSetID parameter can only be specified if the _allowEdit parameter is true. |
Remarks
The _valueLabel parameter is obsolete and should not be used.