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 count

Last modified: June 29, 2022

1 Overview

The count() function counts all objects retrieved by the enclosed query and returns the value as an integer.

2 Examples

This query returns a count of all the placed orders:

1
count(//Sales.Order)

This query returns a count of all the orders placed by a customer named “Jansen”:

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