DimensionDefaultingController::constructInGroupWithChecks Method [AX 2012]
Constructs an instance of the DimensionDefaultingController class that has a check box control associated with each dimension attribute added to the specified FormGroupControl object.
Syntax
client public static DimensionDefaultingController constructInGroupWithChecks(
boolean _allowEdit,
RecId _editableDimensionAttributeSetId,
FormRun _formRun,
FormGroupControl _groupControlContainer,
str _introGroupLabel,
str _checkLabel,
[SelectableDataArea _company])
Run On
Client
Parameters
- _allowEdit
Type: boolean
A Boolean value that indicates whether the controls are editable.
- _editableDimensionAttributeSetId
Type: RecId Extended Data Type
The record ID of a list of dimension attributes associated with the controls that can only be edited when the _allowEdit parameter is true; optional.
- _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 container to hold the added controls.
- _introGroupLabel
Type: str
The label that is used as introductory text above the added controls.
- _checkLabel
Type: str
The label that is used to identify the column of 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 check box control associated with each dimension attribute.
Exceptions
Exception | Condition |
---|---|
Error | The _formRun, _groupControlContainer, _introGroupLabel, _checkLabel, and the _company parameters must be specified. An _editableDimensionAttributeSetID parameter can only be specified if the _allowEdit parameter is true. |