Discussions
Categories
- 196.8K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.3K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 544 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.9K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.5K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 439 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
loadMoreOnScroll using RESTDataProvider

We are having issues getting the loadMoreOnScroll functionality to work while using the RESTDataProvider. I was able to replicate this behavior by adding the loadMoreOneScroll property to the table and setting the height style in the example in the cookbook. If you add a bunch of entries to the arrayData.json file, you will notice the table does not load the additional rows - it only loads the default of 25 and does not load the additional rows as you scroll. Is there a trick to get this functionality working?
REST Data Provider | Overview | JET Developer Cookbook (oracle.com)
<oj-table
id="table"
aria-label="Departments Table"
accessibility.row-header="depName" style="height:300px;"
data="[[dataprovider]]" scroll-policy='loadMoreOnScroll'
columns-default='{"sortable": "disabled"}'
columns='[{"headerText": "Dept Id", "field": "DepartmentId", "id": "depId"},
{"headerText": "Dept Name", "field": "DepartmentName", "id": "depName"},
{"headerText": "Manager Id", "field": "ManagerId", "id": "manId"},
{"headerText": "Date", "field": "Date", "id": "date"}]'
class="demo-table-container"></oj-table>
Answers
-
The RESTDataProvider is meant to work with REST services that provide CRUD type functionality.
The loadMoreOnScroll feature of the table or another other collection based component, will make a request to the RESTDataProvider with the proper offset and limit attributes and push that to the REST service for more data. If you are not using a REST service that supports pagination, this is not going to work.
If you do not have a REST service that supports pagination, and you want to just make a REST call and pull all of the data down in one request, but load that data one page at time in the component, use something like the MutableArrayDataProvier or the ArrayDataProvider instead as that will work off of the local Array instead of trying to make REST calls.