Hello.
I used ListCounter & ListNavigation widget for pagination. When I click on the ListNavigation to move to the second page or beyond, and then apply a search filter on that page, the filtered results do not appear as expected. However, the result is actually shown in the first page of the ListNavigation. To view the filtered results after applying the search filter, I have to return to the first page and then the results appear.
This issue does not occur if I apply the search filter while on the first page.
Any help would be appreciated.
Hi @Shahanaz Natasha Jamihil Jamil ,
After looking at your case, it seems that you are having the issue because your filter is in a separate webblock as well as your table and navigation.
I attached a sample working OML for your perusal and see where you need to change in your project.
But in summary, the issue is due to pagination action not being executed when the webblock is refreshed. So we need to have a pagination logic inside the preparation.
Hope this helps.Thanks.
Hi @Bryan Villalobos ,
Thanks! It works. I missed out the pagination logic inside the preparation.
Hello,
Its better to reset pagination every time user click search or reset button. So if user in page 5 for example and change filters then click search again, he should start again from page 1
This issue is due to the current page not being reset.So lets say, you navigated to page 10. But when you do another filter that results to only 5 pages, that current page you are in (page 10) will definitely be blank. If you try to navigate to the first 5 pages, only then you will see the data. You can:1. Reset the current page to the first page2. Reset the current page to the last page
I would suggest to ask your BA on which the client prefers to use.
I hope this helps.Thanks.Regards,Bryan