You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Pagination for oj-table component in VBCS

edited May 10, 2019 7:27AM in Visual Builder 13 comments

Summary

Oj-Paging-control tag data attribute data type

Content

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'}));

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!