OpenUI5 version: 1.48.8
Browser/version (+device/version): Chrome (Desktop)
Any other tested browsers/devices(OK/FAIL): NA
URL (minimal example if possible): https://openui5.hana.ondemand.com/#/sample/sap.m.sample.InputAssisted/preview
User/password (if required and possible - do not post any confidential information here): NA
Steps to reproduce the problem:
What is the expected result?
The same values displayed in the search help should be displayed in the input autocomplete list.
What happens instead?
No values are displayed in the input autocomplete list.
Any other information? (attach screenshot if possible)


@sebasgoldberg Thank you for reporting the issue. It is forwarded to the dev team for further investigation.
Ticket #1770443614 can be used for internal tracking of the case. Updates will be posted in this GitHub thread as well.
Hi,
The issue is in the example. Only the first 100 items are used in the input suggestions, whereas in the value help dialog all the data is searched.
More info here:
https://sapui5.hana.ondemand.com/#/api/sap.ui.model
We fixed the example in the master branch.
Best,
Teo
Hi @TeodorTaushanov ,
Thanks for your response.
Just to leave a reference, this depends on the size limit of the binding with the model.
To change the size limit is possible to use the model method setSizeLimit:
https://sapui5.hana.ondemand.com/#/api/sap.ui.model.Model/methods/setSizeLimit
Best,
Sebastián
Today I've also had the issue of items not being suggested due to the default SizeLimit of 100. I faced this issue today in the context of a Fiori app that should allow the user to select from a list of countries (more than 100). I would call the example implemented in https://github.com/SAP/openui5/commit/bd623bb9aebc17ca38385739f87445dc9112defa brute force as the setSizeLimit is set to 10000. I've tried a more elegant approach by using the attachRequestCompleted to register a callback method when the model is read. But unfortunately it seems that the setSizeLimit has no effect there. Please check out my sample code at: https://github.com/gregorwolf/showSuggestionSetSizeLimitIssue and a working example at https://showsuggestionsetsizelimit-s0001142741trial.dispatcher.hanatrial.ondemand.com/
cf. https://github.com/SAP/openui5/issues/1607 there is an undocumented length parameter available in the OData binding, however my request to get this official and documented was rejected.
So instead of suggestionItems="{/ProductCollection}" use suggestionItems=”{path:’/ProductCollection’, length:400}”
Thank you @DerGuteWolf for this tip. But there isn't an option to bind this to the $count result or?
"bindable $count" is being worked on... there is an OData v4 example here:
https://openui5nightly.hana.ondemand.com/#/sample/sap.ui.core.sample.odata.v4.SalesOrderTP100_V4/preview
(Table title)
I think in v2 it's not yet possible, but not 100% sure.
@gregorwolf No, you can't bind to $count, but you can simply set it high enough, so that in all circumstances all Elements will be retrieved.
cf. #1607 there is an undocumented length parameter available in the OData binding, however my request to get this official and documented was rejected.
So instead of suggestionItems="{/ProductCollection}" use suggestionItems=”{path:’/ProductCollection’, length:400}”
Actually it is (indirectly) documented..., just please have a look at sap.ui.base.ManagedObject, bindAggregation method, 2nd param (bindinginfo object)...
Yes, but what is missing is the information if this is honored by an ODataListBinding (v2 and v4) and converted to the $top Paramater.
Also the text "may exceed the size limit of the model" should IMHO contain a link to https://openui5nightly.hana.ondemand.com/api/sap.ui.model.Model#methods/setSizeLimit .
Also an example for the usage of the length parameter would be nice.
Most helpful comment
cf. https://github.com/SAP/openui5/issues/1607 there is an undocumented length parameter available in the OData binding, however my request to get this official and documented was rejected.
So instead of suggestionItems="{/ProductCollection}" use suggestionItems=”{path:’/ProductCollection’, length:400}”