This documentation supports the 9.1 to 9.1 Service Pack 3 version and its patches of BMC Atrium Core. The documentation for version 9.1.04 and its patches is available here.

To view the latest version, select the version from the Product version menu.

CMDBQuerySortStruct structure

The CMDBQuerySortStruct structure is used to sort the results that the CMDBQuery function returns, based on the attribute specified in the CMDBQuerySortStruct structure.


typedef struct CMDBQuerySortStruct
{
   ARNameType alias;
   ARNameType attributeName;
   unsigned int sortorder;
} CMDBQuerySortStruct;



The CMDBQuerySortStruct structure consists of the following elements:

alias

This alias name for the class that is specified in the CMDBQueryObject structure. The alias must be unique across all CMDBQueryObject objects.

attributeName

The attribute name on which to sort the result list that the query returns.
Make sure that the attributes you specify belong to the CI nodes that are a part of the query inputs. Otherwise, the sort functionality might not yield results.

sortOrder

An integer value indicating the sort order for the attribute.

  • 1 -- The attribute is sorted in ascending order (CMDB_QUERY_SORT_ASCENDING ).
  • 2 -- The attribute is sorted in descending order (CMDB_QUERY_SORT_DESCENDING ).

Was this page helpful? Yes No Submitting... Thank you

Comments