Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82395

Unexpected result on reversed self-reference XPath

$
0
0

Hi,

I have a simple enity "Entity" with a self-reference "Self".

In a datagrid I want to show all Entities that are referenced by another Entity. I.e. given A and B with A/Self = B the grid should show B.

I expected that this could be achieved with

//Entity[ Self[ reversed() ]/Entity]

However, this does not work, but gives the same result as

//Entity[ Self/Entity ]

The reversed() seems to be ignored in the first XPATH. On the other hand, when I use the following expression, it works fine:

//Entity[ Self[ reversed() ]/Entity/id!=empty]

I couldn't find any explanation for this behaviour. Is this a bug, or just some weird special case?


Viewing all articles
Browse latest Browse all 82395

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>