Paginate Transform
This transformation function is called immediately after the fetch returns with a response. The paginate response transform function can process the response and return an object with the following properties set.
The returned Object is the primary way in which callers like Service Data Provider know about the paging state.
totalSize
: A number tracking for the (canonical) total size of the result is. See JET Data Provider Docs for details.hasMore
: generally required. A boolean that indicates whether there are more records to fetch. Example in Business Objects based services, this would map to the hasMore boolean property commonly returned, in the response. Iterating components can use this information to keep iterating until there is no more data to fetch, or until certain UI conditions are met (this might be needed when a selected row is several pages down).pagingState
: This can be used to store any paging state specific to the paging capability supported by the endpoint. This additional paging state will then be passed 'as is' to the request paginate transform function, for the next iteration.