DimensionProvider.getAttributeValueLocFromQueryRun Method [AX 2012]
Gets the location of the dimension information from the specified query.
Syntax
public container getAttributeValueLocFromQueryRun(
QueryRun _queryRun,
str _dataSourceName,
str _dimensionFieldName,
DimensionComponent _dimensionComponent,
[str _dimensionAttributeName])
Run On
Called
Parameters
- _queryRun
Type: QueryRun Class
The QueryRun object that contains the results.
- _dataSourceName
Type: str
The name of the root data source in the query that references dimension information.
- _dimensionFieldName
Type: str
The name of the field in the root data source in the query that references dimension information.
- _dimensionComponent
Type: DimensionComponent Enumeration
The dimension information that is being pivoted.
- _dimensionAttributeName
Type: str
The name of the dimension attribute for which to return a value.
Return Value
Type: container
A container of the buffer number and field ID in that buffer that contain the specified dimension information.
Remarks
The QueryRun object must contain the values that are searched for as columns, which can be done by calling the DimensionHelper::addDataSourceToQuery method before the query. If it does not exist, an exception is raised. If the dimension attribute name is not specified, the denormalized combination string for the ledger dimension is returned.