Hi,
I am trying to retrieve objects from a database that comply to the following constraint: firstActionDate=NULL or firstActionDate is more than 5 days ago. I tried to build an XPath constraint, but it keeps giving errors.
My first option is:
[firstActionDate=NULL or daysBetween('[%CurrentDateTime%]', firstActionDate)>5]
This gives:
Expression must be of type Float or Integer or String or DateTime.
Incompatible expression types: Boolean, Integer/Long.
Unknown function 'daysBetween'.
Then I found the following question and tried that:https://mxforum.mendix.com/questions/5/using-date-subtraction-in-Xpath
[firstActionDate=NULL or firstActionDate<'[%CurrentDateTime%]-5*[%DayLength%]']
This leads to 'Unknown token '[%CurrentDateTime%]-5*[%DayLength%]'
How should I write the XPath constraint to achieve my condition?