Extending a business operation for a paginated table sample
This section provides a sample of how to extend a business operation for a paginated table. After the business operation for a paginated table is created, the business operation is available for selection for the operationNameForPagination property in the Pagination tab of the Properties view.
To extend a business operation for a paginated table
1 Create a new .operation file, and in the Filename field, enter PaginationBusinessOp.
2 In the Data tab of the PaginationBusinessOp operation file, create data elements. Create the following two root kColl data elements:
▪ pageRetrieverData
▪ item
3 For the pageRetrieverData root kColl, create the following field data elements as child elements:
▪ start
▪ count
▪ totalRowNumber
▪ enableNext
▪ enablePrevious
▪ errMsg
▪ sort
▪ rowsPerPage
▪ pageNumber
▪ pageEvent
4 For the pageRetrieverData root kColl, create a refData element as a child element. In the RefId field for the refData element, select item.
5 For the pageRetrieverData root kColl, create an iColl element as a child element. In the id field for the iColl, enter items.
6 For the items child iColl, create a refData element as a child element. In the RefId field for the refData element, select item.
7 For the item root kColl, create the following two field data elements as child elements:
▪ name
▪ address
The structure of the data for the PaginationBusinessOp operation is shown here: