AppMachine Help Center

How can we help you?

Follow

How to add pagination with Web service

AppMachine supports pagination in two ways.

Make sure your web service includes at least one of the two options for pagination to work. 

1. PageIndex

At the "Input Properties" tab you can create a property with name "page" and set the "Type" to "pageIndex". In this case "page" is a property in your web service that holds a number that we can automatically increase.

 

 

2. NextPageUrl

At the tab output properties you can edit the "next" property and set the type to "nextPageUrl". (When you have done this, you can delete the "page" property at the "Input Parameters" tab). In this case the "next" property should hold the entire URL to the next page of data.

 

When you scroll to the bottom of the table, the next page will be loaded. 

Was this article helpful?
0 out of 2 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    Anatoliy Mischenkov

    Add usage example and screenshots

  • Avatar
    Anatoliy Mischenkov

    Could you add examples how pagination could be presented in the app?

  • Avatar
    Ollie

    I don't see the next and previous options in my root hierarchy, and therefore cant follow the 'nextpage url'part of the guide above.