loadNext
Description
Loads the subsequent records in a dataset after loadData function was run.
Input / Parameter
Name | Description | Input Type | Default | Options | Required |
---|---|---|---|---|---|
dataset | The name of the local table to be loaded. | String/Text | - | - | Yes |
Output
Description | Output Type |
---|---|
Returns the formatted information. | Object |
Object
Key | Description | Output Type |
---|---|---|
success | Boolean value to denote whether the function was executed successfully. | Text |
message | The message to print. | Text |
data | Any additional message or data to print. | Text |
Callback
beforeCallback
The function to be executed if the subsequent records are loaded successfully.
Example
In this example, we will load the next batch of data from the Local Table and display it in a flatlist component.
Steps
Make sure a
Local Table
component is created and filled on the services panel in the service page.Drag a button component to a page in the mobile designer.
Drag a
flatlist
component to a page in the mobile designer, and drag alabel
component into theflatlist
component.Fill the
flatlist
component property in the page and fill thelabel
component property in theflatlist
component. Make sure thelabel
component field value matches the key of the data that is being stored in the local table.Select the event
press
and drag theDataset.loadNext
function to the event flow. Fill in the parameters of the function.
Result
The next batch of data should be loaded from the local table and displayed in the flalist component.
Last updated