Pagination for oj-table component in VBCS
Summary
Oj-Paging-control tag data attribute data typeContent
Hi,
My service is returning large number of data so I've been trying to implement pagination for an oj-table.
I have added the Oj-Paging-control tag to the VBCS page and included the ojs/ojpagingcontrol in the import.
I am unable to figure out the type of the variable that should be given in the data attribute.
I have followed below steps:
1) Called Rest webservice and assign response of webservice to Array type variable.
2) Passed this array type variable to JS function.
3) JS function:
self.pagingDatasource = new oj.PagingTableDataSource(new oj.ArrayTableDataSource
(array, {idAttribute: 'DepartmentId'}));
1