Xpath mismatched input +.

3
I have a XPath constraint on a datagid. This XPath seems to be correct when viewing the documentation. But I get an error in the modeler: mismatched input '+' expecing BRACKET_CLOSE The XPath is: ['[%BeginOfCurrentYear%]' <= Planning.Profielmaand_Maand/Planning.Maand/StartDag] [year-from-dateTime(Planning.Profielmaand_Maand/Planning.Maand/StartDag) <= year-from-dateTime('[%BeginOfCurrentYear%]') + 1] What am I doing wrong? I'm using Mendix 3.2.1.
asked
3 answers
1

Should be

year-from-dateTime('[%BeginOfCurrentYear%] + [%YearLength%]')

(mind the quotes) See the XPath documentation at world.mendix.com

answered
1

OK, thank you, this solved my immediate problem.

answered
0

This seemed to solve my immediate problem. Thank you for that, but then, testing, I figured out that I had to add two years, so I wrote: '[%BeginOfCurrentYear%] + [%YearLength%] + [%YearLength%]'

Then it says: Multiplier in token expression must be an Integer. Any ideas?

answered