Change default behaviour of paginator after sorting in generic search result list views
Dear community member,
if you have done a sorting inside a generic search result list view the default behaviour is that the page will not changed. But if you want to change this behaviour you have an easy possibility to switch back for example to the first page.
- Extend the view component handler of the generic search (AdvSearchVCHandler.java)
- Extend the public method with the name sortResultList()
- Add the following line: setIndexOfFirstResultPage(0); after execution of the default functionality
The number between the round braces is the index of the result list row. If you have 10 rows per page the first index of the third page is 20; for the second page the index is 10 and for the first page the index is 0.
I hope I could help you with this information!
SAP WCEM Development