If you would like to upgrade to a newer long-term support version of Studio Pro, see Moving from Mendix Studio Pro 8 to 9.
XPath Count
Last modified: August 20, 2024
Overview
The count()
function counts all objects retrieved by the enclosed query and returns the value as an integer.
Examples
This query returns a count of all the placed orders:
count(//Sales.Order)
This query returns a count of all the orders placed by a customer named “Jansen”:
count(//Sales.Order[Sales.Customer_Order/Sales.Customer/Name = 'Jansen'])