Gridx pagination
You can set up pagination for a grid and start pagination for a paginated grid.
- To set up pagination for a grid, do the following tasks:
- Provide a valid pagination binding and source binding.
- Ensure the
pagination
andpaginationBar
modules are added in the grid. - Mashups that have a class, which is an instance of
com.sterlingcommerce.ui.web.platform.mashup.SCUIPaginatedXAPIMashup
class works with pagination.
- To start pagination for a paginated grid, call the
startPagination
utility method ofisccs.utils.UIUtils
utility. This utility callsmashupRef
and populates data based on binding.Pass the following arguments in thestartPagination
utility method.- Screen - Parent screen of grid widget.
- Grid uId - Unique identifier of the grid.
- inputJson - Input to an API in JSON format.
- Option - An object that contains the following attributes:
- Screen - Screen object.
- MashupRefId - Reference identifier of a mashup.
Note: For a pagination grid, mashup class must be an instance of the
SCUIPaginatedXAPIMashup
class.
For more information about SCUIPaginatedXAPIMashup
,
see Javadoc.