SysQuery::getDimensionAttributeValLocFromQueryRun Method [AX 2012]
Retrieves the location of the value of the specified dimension from the QueryRun object and authorization information.
Syntax
client server public static container getDimensionAttributeValLocFromQueryRun(
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 component within the dimension information to pivot.
- _dimensionAttributeName
Type: str
The name of the dimension attribute for which a value should be retrieved.
Return Value
Type: container
A container consisting of the data source number and field ID containing the dimension value.
Remarks
The instance of the QueryRun object 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.