SysQuery::getDimensionAttributeValNameFromQueryRun Method [AX 2012]
Gets the description of the specified dimension from a specified QueryRun object and authorization information.
Syntax
client server public static container getDimensionAttributeValNameFromQueryRun(
QueryRun _queryRun,
str _dataSourceName,
str _dimensionFieldName,
DimensionComponent _dimensionComponent,
[str _dimensionAttributeName])
Run On
Called
Parameters
- _queryRun
Type: QueryRun Class
A QueryRun object that contains the results.
- _dataSourceName
Type: str
The name of the root data source in the query that references the dimension information.
- _dimensionFieldName
Type: str
The name of the field in the root data source in the query that references the dimension information.
- _dimensionComponent
Type: DimensionComponent Enumeration
The dimension information that is being pivoted.
- _dimensionAttributeName
Type: str
The name of the dimension attribute for which a description should be retrieved.
Return Value
Type: container
The string description of the specified dimension.
Remarks
The instance of the QueryRun class must contain the values that are being searched for as columns. This can be done by calling the addDimensionDataSourceToQuery method before the query is executed. If it does not exist, an exception will be thrown. If the dimension attribute name is not specified, the denormalized combination string for the ledger dimension is returned.