Share via


SysQuery::addOrderByDimensionAttribute Method [AX 2012]

Sorts the query by the specified dimension information.

Syntax

client server public static void addOrderByDimensionAttribute(
    Query _query, 
    str _dataSourceName, 
    str _dimensionFieldName, 
    DimensionComponent _dimensionComponent, 
   [SortOrder _sortOrder, 
    str _dimensionAttributeName])

Run On

Called

Parameters

  • _dataSourceName
    Type: str
    The name of the data source that contains the dimension information.
  • _dimensionFieldName
    Type: str
    The name of the field on the data source that contains the dimension information.
  • _dimensionAttributeName
    Type: str
    The name of the dimension attribute for which the sorting should be applied.

Remarks

If no dimension attribute name is specified and the field is a ledger dimension, the query will sort based on the denormalized combination string.

See Also

Reference

SysQuery Class