Sort grouped list in Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2024 10:03 AM
Hello everybody,
I've encountered a problem with configuring a list in a custom workspace. I need to group a list by one of the values and then sort by a number of records.
In UI16 it's done pretty easily using "sort groups by" option. It adds parameter sysparm_group_sort%3DCOUNTDESC to the list link. But when it comes to workspace I cannot find such option in an interface.
To further clarify my task: I have a list in a workspace and I need to have a link on workspace homepage, that will open list with this predefined parameters.
I was able to configure everything except for group sorting. Refer to the screenshot below. Since there's no documentation in this, I've tried different parameter names such as "group_sort", "groupSort", "listGroupSort", etc, but none if them works. And since there's no such option just using workspace interface, I'm starting to doubt that it's even possible.
Any ideas are highly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2024 08:10 AM
What is the component that you are using to show the List of records? As the list component has a config property named Group by you can use that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 02:54 AM
I'm using the list, and the problem is not with grouping itself, that I already achieved. Now I need to sort groups by the number of records, and this is the tricky part with workspace list.