sap.m.ListBase provides growing-related properties, which can be used for tables and lists.
A growing list has a loading mechanism that requests data from the model in a lazy way. This enables the app to only data from the server as and when necessary.
The growing-related properties of sap.m.ListBase are:
To enable data for a table to be fetched on demand like this, you just need to set the values for these properties appropriately on your table control. For example, adding the highlighted lines as shown:
<List items="{/ProductCollection}" headerText="Products" growing="true" growingThreshold="4" growingScrollToLoad="false"> <StandardListItem title="{Name}" description="{ProductId}" icon="{ProductPicUrl}" iconDensityAware="false" iconInset="false" /> </List>
will cause five items to be displayed in the table initially, with a More button (this is the default text if you don't set it with the growingTriggerText property):
<App> <Page title="Table Events"> <Table> ... </Table> </Page> <App>