External API Pagination

I’m displaying data from an external API in a repeating group 10 records at a time, and I want to enable paging. The data returned from the API includes the total number of records as well as current page number, and the API supports a “page” parameter, specifying which page to request/view.

Thus, I seem to have what I need to navigate the result set, but it’s unclear exactly how to proceed. How do I go about “injecting” the desired page number into a new request for the repeating group data? In other words, it seems I have to somehow update the RG’s “data source”, but I’m not sure how to go about it.

You may find this post useful: http://forum.bubble.io/t/google-places-next-page-token/8840/3?u=louisadekoya

2 Likes

Thanks, @louisadekoya. I missed that thread in my search. A hidden field did occur to me, but I didn’t know if there was a better way of storing arbitrary data to be used as part of a data source endpoint. I will give it a try and see how it works.

1 Like

Has anyone solved this, I’m having the same problem

1 Like