What is object ID? how to use it with Xpath?

0
When I use Xpath I found there is an attributed named by ‘ID’, what is it?  how do we use it with Xpath?
asked
2 answers
0

Every Mendix object has a unique id, which can be used in a database retrieve.

You can read more about in the documentation here:

https://docs.mendix.com/refguide/xpath-id

answered
0

In corner cases, with complicated XPATH, I have written the XPATH like given below. But it is not common in simple DB retrieval. 

For example:

In general we write something like Mymodule.ObjectA_ObjectB = $ObjectA

But we can also write it as: Mymodule.ObjectA_ObjectB/MyModule.ObjectA/id = $ObjectA

Otherwise, few cases as listed in the link that Lennart posted already.

answered