How to get recent activity

0
Hi all,  I am working on one project so I need your help. I have one entity activity when I extend that activity that activity date is extended so that activity present in today and Tomorrow and so on. So in data grid every activity is showing so I want the latest one will be visible on page so I added one date time variable at the time of extend but now confused how to write xpath in data grid which give me recent date and time activity. Please help me Thanka
asked
2 answers
5

Hello Priyanka,

 

Make the sort order to descending for the data time attribute to display the most recent records in the data grid 

Attached the image below

 

answered
0

hii Priyanka Sawant 

use max function to get latest date in x path 

max(//Sales.Order/TotalPrice)

XPath Max | Mendix Documentation

 

i hope it will help you

answered