Mendix 7 is no longer supported unless you have Extended Support. Mendix 7 documentation will remain available until July 2024.

To upgrade to a supported version, see Moving from Desktop Modeler Version 7 to Studio Pro 8.

XPath min

Last modified: August 2, 2022

1 Overview

The min() function returns the minimum value of its argument.

The function requires an XPath query as argument.

The function must specify a column in the query to aggregate.

The query must specify an attribute that has a numeric type.

2 Examples

This query returns the lowest total price found in any object:

1
min(//Sales.Order/TotalPrice)

This query returns the lowest total price of an order placed by a customer named “Jansen”:

1
min(//Sales.Order[Sales.Customer_Order/Sales.Customer/Name = 'Jansen']/TotalPrice)