question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sap.ui.table.Table: Threshold ineffective on initial load

See original GitHub issue

OpenUI5 version: 1.60.16 (possibly any other) Browser: Chrome 76.0.3809.100 (Windows 10 x64 10.0.18362) Any other tested browsers: Also fails in Edge and Internet Explorer 11 Minimal example: https://output.jsbin.com/manuqavuvu/1 (Disable CORS!)

Steps to reproduce the problem:

  1. Use sap.ui.table

    • threshold = 500
    • visibleRowCountMode = Auto
  2. Query a larger OData v2 data source

What is the expected result?

The table immediatly fetches data for the first 500 rows. Thus, enabling smooth scrolling through a large portion of these entries without further interruption as described in the API documentation for the threshold property.

What happens instead?

The table fetches additional data way to early, in some cases right after the first or second scrolling. During the fetch, the table’s local busy indicator is displayed, preventing all user interaction. This becomes really annoying if the query actually takes time and blocks the user from scrolling through the remaining 80% of the already loaded data.

Network trace of the minimal example immediately after displaying the table:

  1. GET Orders?$skip=0&$top=505 (Correct)
  2. GET Orders?$skip=200&$top=500 (What now?)
  3. GET Orders?$skip=400&$top=430 (No idea)

This might or might not be related to the OData test service. Yet, the symptoms are identical using on-premise SAP Gateway services.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:20 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
Shtilianovacommented, Aug 20, 2020

Hello @janmattfeld , I’ve created an internal incident 2080375757. The status of the issue will be updated here in GitHub. Regards, Diana

1reaction
Jordan-Ryancommented, Feb 13, 2020

Hi,

I am running on version: 1.60.24

I have a very similiar issue, on inital load it calls the service for 113 records (13 visible and 100 threshold) but when I scroll down (past the 13 records) it starts to call the service again, meaning the busy indicator comes and the table is not usable.

Would this be the same issue as mentioned here or would this be slightly different?

Read more comments on GitHub >

github_iconTop Results From Across the Web

3209224 - Threshold issue while scrolling in sap.ui.table. ...
3209224 - Threshold issue while scrolling in sap.ui.table.Table. Symptom. The table will trigger next odata call only after scrolling down only one row....
Read more >
growingThreshold alternative for Sap.ui.Table
Hi experts,. I have a Sap.uiTable which has to load more than 1000 rows. I have set the next properties to the table:....
Read more >
Table and threshold parameter
So, I'm trying to use the threshold parameter of the Table element in order to fix a limit to the number of line...
Read more >
How to reduce the application initial load from ...
Hi All, I am working on Custom SAPUI5 application which involves sap.ui.vbm map control and smart tables and normal sap.ui.table.
Read more >
How to get all table items , after applied Growing Threshold ...
define([ "sap/ui/core/mvc/Controller" ], function (Controller) { "use strict"; var oTable; return Controller.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found