511
Views
4
Comments
Loading the next records on a mobile app
Question

Hello 


I have a mobile app. On the screen I fetch a filtered list of data from the server database, e.g. a list of products where the user searched for the word "Cat". There are 150 matching items in the database, but I only want to show 20 at a time.

So I set the aggregate of "GetProducts" to Max.Records 20 and I display that.

How do I get the next 20 records filtered records from the database when the user clicks next or when the user drags down on the screen?

Any help will be appreciated?


Thanks


Vonnelize



2026-03-09 12-26-51
Fábio Fantato
 
MVP

Hi Vonnelize,

You can use the list control's "On Scroll Ending" event to handle this. Just open the event's dropdown list and select the "(New Infinite Scroll Client Action)". The platform automatically creates a client action that takes care of all the logic to do it.


Best Regards

Fabio Fantato


2023-04-28 15-39-13
Artemio Sampayo Olivares

Hello Fabio

Can you share some example for see how i can implement this action?

thanks in advance

2018-11-21 17-31-38
Priya Khade

Artemio Sampayo wrote:

Hello Fabio

Can you share some example for see how i can implement this action?

thanks in advance

Hi Artemio, 

The platform implements this action on its own. For the list widget there is an event named On Scroll Ending, click on the dropdown and then choose New infinite client scroll action. You can then set the number of records as per your choice.


2023-04-28 15-39-13
Artemio Sampayo Olivares

Hello Priya

Thanks for your support

When I add the event OnScrollEndingon on the list, automatically is added an If on my screen, On this If, I don´t know what is the correct logic for true and for the false condition.

Thank you

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