Mendix 7 is no longer supported unless you have Extended Support (for details, please contact Mendix Support). Mendix 7 documentation will remain available for customers with Extended Support until July, 2024.

XPath contains

Last modified: April 9, 2024

1 Overview

The contains() function tests whether a string attribute contains a specific string (case-insensitive) as a sub-string.

2 Example

This query returns all the customers from which the name contains the string an:

1
//Sales.Customer[contains(Name, 'an')]

Customers with the name “Andy” or “Jan” will be returned, for example, because “an” is part of those names.