company logo

Property :: maximum - Get maximum value for a collection

The function returns the maximum value for an attribute/expression for a collection. In case of an error, the function throws an exception.

Return value:  Value ( odaba::Value & )

Value of any type.

Implementation details

odaba::Value Property  :: maximum ( odaba::String &sName )

The function calculates the maximum value for the attribute path or expression passed in sExpression over all instances in the collection. When a filter condition has been set, only instances filtered by condition are considered. The value returned has the same type as the attribute/expression passed in sExpression.

The expression passed must be a valid property or expression in the context of the instances to be aggregated.

  • sName - Name