XPath and & or

0
Hello, I have the following XPathconstraint: [DemoApp.RegistratieEvent/DemoApp.Event/Date >= '[%BeginOfCurrentDay%]' and RegistratieAccount/Administration.Account [id = '[%CurrentUser%]']] Now the word 'and' is in red and the error given says: no viable alternative at input 'Registratie_Account' What should the correct constraint be? Thanks, Joey
asked
2 answers
0

Nevermind I found the issue,correct constraint is:

[DemoApp.RegistratieEvent/DemoApp.Event/Date >= '[%BeginOfCurrentDay%]' and DemoApp.RegistratieAccount/Administration.Account [id = '[%CurrentUser%]']]

Thanks

answered
0

I think you are missing the Module name before RegistratieAccount. You also don't need the extra [ when accessing the account id.

[DemoApp.RegistratieEvent/DemoApp.Event/Date >= '[%BeginOfCurrentDay%]' and DemoApp.RegistratieAccount/Administration.Account/id = '[%CurrentUser%]']

or

[DemoApp.RegistratieEvent/DemoApp.Event/Date >= '[%BeginOfCurrentDay%]']
[DemoApp.RegistratieAccount/Administration.Account/id = '[%CurrentUser%]']

I believe both of these are equivalent.

answered