Share via


SysQuery::getDimensionAttributeValueFromQueryRun Method [AX 2012]

Retrieves the value of the specified dimension from the QueryRun object and authorization information.

Syntax

client server public static container getDimensionAttributeValueFromQueryRun(
    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.
  • _dimensionAttributeName
    Type: str
    The name of the dimension attribute for which a value should be retrieved.

Return Value

Type: container
The string or enumeration value of the specified dimension.

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.

See Also

Reference

SysQuery Class