CRM and CX Blogs by SAP
Stay up-to-date on the latest developments and product news about intelligent customer experience and CRM technologies through blog posts from SAP experts.
cancel
Showing results for 
Search instead for 
Did you mean: 
rene_schwarz2
Explorer

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