cancel
Showing results for 
Search instead for 
Did you mean: 

Paging Handling in SAPUI5 framework

Harsh_Jain2512
Participant
0 Kudos

Hi All,

In UI5 if I am loading data into a table then it will handled in chunks which are decided by Paging parameeters $top and $skip. Let's for example data to be loaded consists of 35 rows and $top = 20 and $skip = 0, then first the top 20 rows will be loaded then the next 15 rows in the second call to backend Odata services.

Do anyone have any idea that where this paging and call to call to backend Odata services is handled in UI5 framework, that is where the system validates that no further data exists in backend and hence no further calls to backend are required, like the 3rd call in above example was not made to backend as system knew there was no data.

Any help in this would be great.

Regards

Accepted Solutions (0)

Answers (2)

Answers (2)

maheshpalavalli
Active Contributor

Hi Harsh Jain,

I hope you wanted to know where the logic is written to do the pagination for m.table or m.list. If yes, then it will be done in GrowingEnablement.js. You can find the code at GitHub: https://github.com/SAP/openui5/blob/master/src/sap.m/src/sap/m/GrowingEnablement.js

BR,

Mahesh

Harsh_Jain2512
Participant
0 Kudos

Thanks Mahesh.