133
Views
4
Comments
Solved
Pagination in Traditional Web App
Application Type
Traditional Web
Service Studio Version
11.54.66 (Build 63364)

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. 


2024-03-23 18-16-49
Bryan Villalobos
Solution

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.

TraditionalTest.oml
2023-02-09 02-08-23
Shahanaz Natasha Jamihil Jamil

Hi @Bryan Villalobos

Thanks! It works. I missed out the pagination logic inside the preparation. 

2020-11-25 10-45-32
Mostafa Othman
Champion

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

2024-03-23 18-16-49
Bryan Villalobos

Hi  @Shahanaz Natasha Jamihil Jamil ,

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 page
2. 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

2024-03-23 18-16-49
Bryan Villalobos
Solution

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.

TraditionalTest.oml
2023-02-09 02-08-23
Shahanaz Natasha Jamihil Jamil

Hi @Bryan Villalobos

Thanks! It works. I missed out the pagination logic inside the preparation. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.