XPath id

1 minute to read Download PDF Edit

This function replaces the default XPath query syntax. It retrieves data based upon the unique identification number supplied. Each individual mendix object generated in a project is automatically provided with an ID.

The argument of this function can be:

  • a string containing one ID
  • a string containing a space-separated sequence of ID’s
id('ID_123423462342')

This query returns a list with one object. This object has the ID 123423462342.

id('ID_123423462342 ID_123423462343 ID_123423462344')

This query returns a list with three objects. These objects have the ID’s 123423462342, 123423462343 and 123423462344.

Id-queries cannot be started by the characters ‘//’! Id-queries always start directly with id(….