QuickObjects.ObjectBase Send comments on this topic.
GetSortExpression Method
See Also 
Akal.QuickObjects.ObjectBase Namespace > BaseBusinessObject Class : GetSortExpression Method

GetSortExpression

Provides a String of field names with their sort order separated by comma for this object and any joined objects. The Recursive property on this objects and on the joined objects determine if the joined objects will also try to create sort expressions from their joined objects. This process will follow until the depth reaches maxLevel parameter value.

Parameters:
Description
levelCurrent level in recursion.
maxLevelsMaximum levels of business objects to cover during recursion.
objectsCoveredA collection that can be used to track what business objects are already covered.
sortFieldsA collection that is used to add all the fields that will be used to build the sort expression.

Returns:
Type
System.String

Overload List

OverloadDescription
GetSortExpression(Int32,Int32,IBusinessObjectCollection,IFieldCollection)GetSortExpression

Provides a String of field names with their sort order separated by comma for this object and any joined objects. The Recursive property on this objects and on the joined objects determine if the joined objects will also try to create sort expressions from their joined objects. This process will follow until the depth reaches maxLevel parameter value.

Parameters:
Description
levelCurrent level in recursion.
maxLevelsMaximum levels of business objects to cover during recursion.
objectsCoveredA collection that can be used to track what business objects are already covered.
sortFieldsA collection that is used to add all the fields that will be used to build the sort expression.

Returns:
Type
System.String
 

GetSortExpression(RecursionTypes,Int32,Int32,IBusinessObjectCollection,IFieldCollection)GetSortExpression

Provides a String of field names with their sort order separated by comma for this object and any joined objects. The Recursive property on this objects and on the joined objects determine if the joined objects will also try to create sort expressions from their joined objects. This process will follow until the depth reaches maxLevel parameter value.

Parameters:
Description
recurRecursion type that will determine what kind of joined objects will be covered. If Recursion is set to RecursionTypes.Parent then only the Join objects with relationship type of Parent will be covered and hence same process for Child relationship.
levelCurrent level in recursion.
maxLevelsMaximum levels of business objects to cover during recursion.
objectsCoveredA collection that can be used to track what business objects are already covered.
sortFieldsA collection that is used to add all the fields that will be used to build the sort expression.

Returns:
Type
System.String
 

Requirements

Target Platforms: .NET Framework 1.1 or .NET Framework 2.0

See Also