75
Views
7
Comments
Solved
why does my pagination on the crew part on the detail screen not working

Hello,


Because the cast of a film can be very long I like to use pagination.

So I Implemented it but on some way it does not work as expected. I still see the whole list instead of a part of it. 


Regatds, 


Roelof


FilmDatabase.oml
2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

Hi Roelof,

You are retrieving Crew data from a REST API and store the result in a list. The list is bound to the table. The pagination should not be done on the list that you bind to the table, the list should get the limited result set as based on the pagination.

The REST API that you consume does not support pagination. If it would then you could implement that. But as it doesn't the easiest way to implement pagination is that you cache the crew information in an OutSystems entity locally and then fetch it using an aggregate and bind it to your screen table.

Regards,

Daniel

2023-01-04 05-10-52
Akshay Puri

Roelof Wobben wrote:

Hello,


Because the cast of a film can be very long I like to use pagination.

So I Implemented it but on some way it does not work as expected. I still see the whole list instead of a part of it. 


Regatds, 


Roelof


Hi Roelof,

Please try restricting the records you are fetching through your aggregate. Here is how you can restrict it to only fetch the required records:



2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

Hi Roelof,

You are retrieving Crew data from a REST API and store the result in a list. The list is bound to the table. The pagination should not be done on the list that you bind to the table, the list should get the limited result set as based on the pagination.

The REST API that you consume does not support pagination. If it would then you could implement that. But as it doesn't the easiest way to implement pagination is that you cache the crew information in an OutSystems entity locally and then fetch it using an aggregate and bind it to your screen table.

Regards,

Daniel

2019-11-08 06-49-04
Roelof Wobben

Oke, 


So I can better store all the info I have in a database.
Then I have to think about how to make the associations and so on. I did not wanted that way because it's makimg things very compilicated.  I see that the biggest power of outsystems is when using a database. 


Now I have two assocations. 


A flim has multiple  actors and/or crew.
A actor can play in multiple flims.

I think I need then a very very big assign to make this work.


Roelof


2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi Roelof,

You did the movie database training, so the entity model for your reactive web could be based on that.

Regards,

Daniel

2019-11-08 06-49-04
Roelof Wobben

yep. I know


I only have to find a way to make the right assocations. That is why I think it will be a very big assign. 


Roelof


2019-11-08 06-49-04
Roelof Wobben

Pity , most things only work when usimg  database. I find it that it takes care that I cannot make things like I want and that is disappointimg 

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Well that is what databases are for storing and retrieving data. 

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