Show a week data in xpath

0
Hi, Does anyone know how to show a week's data in the XPath constraint list view? Currently I successful make for a day by using [Date='[%BeginOfCurrentDay%]'] But, for week i cannot do it.
asked
3 answers
0

Hi Muhammad,
you can use the following Xpath:
[Date>='[%BeginOfCurrentWeek%]']

And if your solution is allowing the users to add a future date you can use the following Xpath:
[Date>='[%BeginOfCurrentWeek%]' and Date<='[%EndOfCurrentWeek%]']

answered
0

Hi Muhammed,

 

What do you need? 

Do you want all dates of this week (example 07Feb – 13Feb) or all days from a week ago (04Feb – 11Feb)?

You can already look into this documentation and see what is possible in the examples

https://docs.mendix.com/refguide/xpath-keywords-and-system-variables

 

answered
0

Hi Muhammad,

What you could do is use the following function in your XPath: addDays('[%BeginOfCurrentDay%]', -6)

This way you would be able to get the dates for today and the 6 days before. Hope that helps!

 

 

answered