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
- _query
Type: Query Class
The query to update.
- _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.
- _dimensionComponent
Type: DimensionComponent Enumeration
- _sortOrder
Type: SortOrder Enumeration
The order in which the results should be sorted.
- _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.