SAP / openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
http://openui5.org
Apache License 2.0
2.97k stars 1.24k forks source link

Growing Feature for sap.m.ViewSettingsDialog #1318

Open didierbueno opened 7 years ago

didierbueno commented 7 years ago

OpenUI5 version: 1.42.8

Browser/version (+device/version): Any

Steps to reproduce the problem:

  1. Create a Settings Dialog with ViewSettingsFilterItem
  2. Bind a Gateway EntitySet to the items aggregator of ViewSettingsFilterItem
  3. If EntitySet have more than 100 results only first 100 will be shown. There's no growing feature like in Facet Filters

What is the expected result? Need to show more than 100 results (like in Facet Filters)

hristop commented 7 years ago

Hi @didierbueno ,

Thank you for reporting this issue.

I believe that the problem is in the model itself - you can set the size by the "setSizeLimit" property (you can check it here: https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.ui.model.Model.html#setSizeLimit

The default limit is set to 100 as described here: https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.ui.model.html

If this does not solve you problem - feel free to reopen the issue.

Best Regards,

Hristo

didierbueno commented 7 years ago

Hello @hristop

Is not a model problem, my EntitySet is huge and I can't set model sizeLimit property to 10000 (is the same model for all my entities). We just need to add the paging feature to the ViewSettingsDialog items lists (growing and growingThreshold). We are using SAPUI5 and Netweaver Gateway for oData. Best regards, Didier

hristop commented 7 years ago

Hi @didierbueno ,

In this case we have opened internal incident: 1780068253.

Best Regards,

Hristo

jonaszuberbuehler commented 7 years ago

@didierbueno We're facing the same issue. As a workaround for now we simply bind the items with length=, i.e. items="{path: '/EntitySet', length: 1000}. Not perfect but at least we get all entities.

DerGuteWolf commented 7 years ago

Yes, but unfortunatly this lenght parameter is nowhere docuemented, cf. https://github.com/SAP/openui5/issues/1607

jonaszuberbuehler commented 7 years ago

IMO it is at ManagedObject (https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.ui.base.ManagedObject.html#bindAggregation).

DerGuteWolf commented 7 years ago

Only sort of, since it is not clear if you can use all these parameter with all models and all aggregations IN BINDINGS eg in XML Views. It's neither mentioned in https://sapui5.hana.ondemand.com/#docs/guide/91f057786f4d1014b6dd926db0e91070.html nor in https://sapui5.hana.ondemand.com/#docs/guide/6c47b2b39db9404582994070ec3d57a2.html

jonaszuberbuehler commented 7 years ago

You're right. I'm kinda used to the trial & error approach when working with UI5. An improvement of the docs would be good.

didierbueno commented 7 years ago

@jonaszuberbuehler Thanks. As you said, is a workaround, but is not a final solution for our problem. We have more than 10000 rows and I don't want to sacrifice performance.

didierbueno commented 6 years ago

Hi, the incident have been solved. See SAP Note here: https://launchpad.support.sap.com/#/notes/2514509

DerGuteWolf commented 6 years ago

Hi @didierbueno , with which OpenUI5 version is this solved in which way? The note you linked only lists changes in some apps... Thanks, DerGuteWolf

didierbueno commented 6 years ago

I haven't found the solution on OpenUI5 Change Log, as you said it seems to be solved on specific apps, so I'm reopening the incident.

RubensCesarPereira commented 2 years ago

Has anyone managed to solve this problem?

Juliomor commented 1 year ago

Hello,

Any update on this? Any solution?

Thanks and regards!

mrtwinkler commented 11 months ago

Any proper solution to this? We are also facing the same problem: Having a list of 5.000 filter items which is freezing the UI on slower machines for 10 seconds at least.

HatriGt commented 2 months ago

Any solution for this issue? I have more than 10000 items in the filter. Open and closing the dialog freezes the UI and even the browser gets stuck.