cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Build Apps - Basic Table with Adapter and Pagination

Hijie
Newcomer
2,834

Hi,

I'm able to establish an OData integration in SAP Build Apps. I pull in the basic table with adapter and two buttons (Previous and Next) to navigate the pages.

However, the data remains static in the table after the Page Mounted event.

What I'm saying is - the basic table gets populated with data with the Page Mounted event. Every other Event does not refresh the data on the table. 

At first, i thought it was the variables. But I've tried App variables and Page Variables.

Both do not work with the pagination in the basic table with adapter.

The expectation is that with the component tap (button tap), the current page increments or decrements by 1.

The formula works. I've tested it on the Page Mounted event.

I'm even able to get it to display on the page. 

I'm able to get the total number of pages and total number of records.

But the basic table with adapter only gets populated with the Page Mounted event and no other events will get it to refresh.

I've tried modifying the properties of the table but it doesn't have the refresh property. If you create the refresh manually, you can't find the Internal Component that was mentioned in the other blogs.

I've seen a few questions about the Basic Table being populated from other Database via odata but they're running into the same problem.

Yes, i can switch to lists but i really want this basic table with adapter to work with pagination.

Any other recommendations?

I can export and upload my app here if anyone wants to have a look. 

Accepted Solutions (0)

Answers (1)

Answers (1)

LudoNoens
Product and Topic Expert
Product and Topic Expert
0 Likes

Please check my blog post: https://community.sap.com/t5/technology-blogs-by-sap/consuming-sap-with-sap-build-apps-adding-s-4han...

The key point you've missed is that you need to modify/extend the table with logic that handles the refresh. This includes adding the Refresh property.