openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Growing Feature for sap.m.ViewSettingsDialog

Open didierbueno opened this issue 8 years ago • 16 comments

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)

didierbueno avatar Jan 26 '17 11:01 didierbueno

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

hristop avatar Jan 26 '17 12:01 hristop

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

didierbueno avatar Jan 26 '17 12:01 didierbueno

Hi @didierbueno ,

In this case we have opened internal incident: 1780068253.

Best Regards,

Hristo

hristop avatar Jan 26 '17 13:01 hristop

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

jonaszuberbuehler avatar Jul 24 '17 14:07 jonaszuberbuehler

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

DerGuteWolf avatar Jul 24 '17 14:07 DerGuteWolf

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

jonaszuberbuehler avatar Jul 24 '17 14:07 jonaszuberbuehler

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

DerGuteWolf avatar Jul 24 '17 14:07 DerGuteWolf

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

jonaszuberbuehler avatar Jul 24 '17 14:07 jonaszuberbuehler

@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 avatar Jul 24 '17 14:07 didierbueno

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

didierbueno avatar Jun 05 '18 10:06 didierbueno

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

DerGuteWolf avatar Jun 05 '18 10:06 DerGuteWolf

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.

didierbueno avatar Jun 05 '18 11:06 didierbueno

ALso facing the same issue

suha-kajouk avatar Sep 21 '21 07:09 suha-kajouk

Has anyone managed to solve this problem?

RubensCesarPereira avatar Aug 01 '22 19:08 RubensCesarPereira

Hello,

Any update on this? Any solution?

Thanks and regards!

Juliomor avatar Mar 10 '23 11:03 Juliomor

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.

mrtwinkler avatar Dec 02 '23 09:12 mrtwinkler