How to sort the records in the portal like sorting in the list view?

Natahlie Nativi
Tera Contributor

In the portal, we are using the my_request widget displaying RITMs with columns for "created_on" and "updated_on" fields. We would like to know how to enable sorting of the records, similar to the list view, where clicking a column header sorts the records based on that column.

7 REPLIES 7

Ankur Bawiskar
Tera Patron

@Natahlie Nativi 

please share screenshots.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

yuvarajkate
Giga Guru

This YouTube will be of great help. Do check it out, it demonstrates your requirement.

Link: https://youtu.be/yRfkD0P7swE?si=g4GVI3ukdu2FosP3

serviceportal #servicenow #portal #serviceportal #search Service Portal D25 - Create Custom List Widget with Pagination Today I will discuss how can we create a list widget and implement pagination ...

@yuvarajkate thank you for the video but the video uses a data table widget. In our sp we are using the oob my_request widget that shows the RITMs. 

@Natahlie Nativi well in that case you can duplicate the widget, give it a different name and then can make changes in the widget editor. You will need to do some changes in the code side.