openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Screen Freezes for sap.m.ViewSettingsDialog with more than 5000 Items

Open HatriGt opened this issue 2 years ago • 4 comments

OpenUI5 version: 1.124

Browser/version (+device/version): Chrome 128.0.6613.27

Any other tested browsers/devices(OK/FAIL): FAIL

URL (minimal example if possible):

User/password (if required and possible - do not post any confidential information here):

Steps to reproduce the problem:

  1. Implement a sap.m.ViewSettingsDialog control.
  2. Add more than 5000 Filter Items to the Control.
  3. Now Open the Dialog, the browser screen freezes. Even if you click on cancel button instead of applying any filter, the screen freezes.

What is the expected result? Ideally, the screen freeze should not be there.

What happens instead? The browser screen freezes.

Any other information? (attach screenshot if possible)

image

HatriGt avatar Aug 22 '24 06:08 HatriGt

Hello @HatriGt ,

Thank you for reaching out!

Could you please provide an isolated example where we can reproduce the issue and examine it.

Best regards, Yana

yanaminkova avatar Aug 22 '24 06:08 yanaminkova

Hi @yanaminkova,

Please find the sample example snippet here . Click on Filter button and try to open the first filter field and click back button. Now close the dialog. You will experience the delay or screen freeze.

https://jsbin.com/xowutam/edit?html,output

HatriGt avatar Aug 22 '24 10:08 HatriGt

Hello @HatriGt,

Thank you for sharing this finding. I've created an internal incident DINC0246294. The status of the issue will be updated here in GitHub.

Regards, Yana

yanaminkova avatar Aug 22 '24 11:08 yanaminkova

Hello @HatriGt ,

Thank you for your finding. Unfortunately ViewSettingsDialog control is designed to handle limited amount of filter items (up to 100 or something), and it can be expected it will freeze with 5000+. For cases like yours you can implement different method of filtering. For more information see here: https://experience.sap.com/fiori-design-web/view-settings-dialog/#usage

Best Regards, Nikolay Hristov

NHristov-sap avatar Aug 22 '24 12:08 NHristov-sap