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

Why can't I sum numeric attributes in an xPath constraint?

$
0
0

I have a microflow retrieve object action (retrieve from database). I want to retrieve all objects where the sum of 2 numeric attributes is greater than the value of a third numeric attribute, so I am setting an xPath constraint : [IssuedQuantity + DisposedQuantity > ReceivedQuantity] This is returning an error "no viable alterenative at input 'IssuedQuantity'

The Mendix ref guide5 (https://world.mendix.com/display/refguide5/XPath+Expressions) has the following comparable example: //Sales.Order[TotalPrice + ShippingPrice < 50.00]

So why is my constraint failing? And what does this error actually mean? It seems to be a syntax error relating to the first part of the expression (the sum), but I have tried every permutation of brackets & parentheses I can think of & nothing works. Thanks.


Viewing all articles
Browse latest Browse all 82391

Trending Articles



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