Wednesday, December 27, 2017

Oracle JET : How to control the number of records shown in Oj-Table, apart from pagination.


This post is to share a trivial issue I faced with OjTable and how I resolved the same.
This might be a simple and common issue, but might help those who have not figured out the root cause.

Here ADFBC REST service was returning expected data and the JET table was also set with correct pagination setup.


<oj-paging-control id="paging" data='[[localPagingDatasource]]' page-size='5' layout="auto" maxPageLinks="10" slot='bottom'>
</oj-paging-control>

Here I expected the table to show 5 rows per page. However the data exceeded this and showed all the data at once.

To resolve this , I have used fetchSize:5  in the oj collection as below : 


This will make sure only 5 rows are shown per page.

Thanks for reading,
Srikanth

No comments:

Post a Comment

Fusion BIP : How to show one parameter in report and pass different value to the datamodel

Hi All, There can be a scenario where we might need to show one value in the report and a different value to the actual query. Lets say a...