Skip to Content
Author's profile photo Rene Schwarz

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.

Steps:

  1. Extend the view component handler of the generic search (AdvSearchVCHandler.java)
  2. Extend the public method with the name sortResultList()
  3. 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!

Best regards,

Rene Schwarz

SAP WCEM Development

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.