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
paginationandpaginationBarmodules are added in the grid. - Mashups that have a class, which is an instance of
com.sterlingcommerce.ui.web.platform.mashup.SCUIPaginatedXAPIMashupclass works with pagination.
- To start pagination for a paginated grid, call the
startPaginationutility method ofisccs.utils.UIUtilsutility. This utility callsmashupRefand populates data based on binding.Pass the following arguments in thestartPaginationutility 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.