Property :: sum - Calculate sum value for a collection
The function returns the sum 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  :: sum ( odaba::String &sName )
The function calculates the sum 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