37
Views
3
Comments
Solved
sort list based on date
Question

I want the list sort by latest date and display only 5 latest. how can i do it?


FBS.oml
Solution

Hello Azfar 

Follow the below screenshot to do so.

can check the oml.

Regards 

Anees


FBS (q).oml

Hi,

As I can see you have used the Get Booking aggregate also to display total booking count, you can do following:  Set Max record of aggregate to 5 and inside aggregate add sorting on CreatedOn column descending(to get top 5) and where you display count, instead of GetBooking.Length use Getbooking.Count (this would give you total count of records)

Hi @Azfar Aiman

Go to aggregates get bookings and add a sort Booking_CreatedOn as Descending and max record  of getbooking aggregate set to 5 as it is shown in a screenshot

Asad

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.