DimensionDefaultingController::constructInTabWithValues Method [AX 2012]
Constructs an instance of the DimensionDefaultingController class that has a string edit control that is associated with each dimension attribute added to the specified FormTabPageControl object.
Syntax
client public static DimensionDefaultingController constructInTabWithValues(
boolean _showNoDefaultLabel,
boolean _showWhereUsed,
boolean _allowEdit,
RecId _editableDimensionAttributeSetId,
FormRun _formRun,
FormTabPageControl _tabPageControlContainer,
str _introGroupLabel,
[SelectableDataArea _company])
Run On
Client
Parameters
- _showNoDefaultLabel
Type: boolean
A Boolean value that indicates whether the name column associated with each value displays "No default" or blank 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 can be edited.
- _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.
- _formRun
Type: FormRun Class
The FormRun object of the form hosting the container that contains the added controls.
- _tabPageControlContainer
Type: FormTabPageControl Class
The FormTabPageControl container that contains the added controls.
- _introGroupLabel
Type: str
The label that is used as introductory text above the added controls.
- _company
Type: SelectableDataArea Extended Data Type
The company that is used to filter the list of dimension attributes.
Return Value
Type: DimensionDefaultingController Class
An instance of the DimensionDefaultingController class that has a check box control that is associated with each dimension attribute.
Exceptions
Exception | Condition |
---|---|
Error | The _formRun, _tabPageControlContainer, _introGroupLabel, _valueLabel, and _company parameters must be specified. An _editableDimensionAttributeSetID parameter can only be specified when the _allowEdit parameter is true. |