cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an AutoComplete control planned for SAPUI5 mobile?

Former Member
0 Kudos

Is there an AutoComplete control (currently only for desktop) planned for SAPUI5 mobile? I guess it will be part of the m-package at some point, but am wondering whether anybody (of the UI5 team or outside) is already working on the AutoComplete desktop equivalent for mobile, and if so, when it would be available.

Accepted Solutions (0)

Answers (1)

Answers (1)

jmoors
Active Contributor
0 Kudos

The sap.m.Input control supports the ability to show suggestions.

sap.m Explored

  <Input
  id="productInput"
  type="Text"
  placeholder="Enter Product ..."
  showSuggestion="true"
  showValueHelp="true"
  valueHelpRequest="handleValueHelp"
  suggestionItems="{/ProductCollection}" >
  <suggestionItems>
  <core:Item text="{Name}" />
  </suggestionItems>
  </Input>

Regards,

Jason

Former Member
0 Kudos

Hi Jason,

thanks for pointing that out. Works fine!

- Mathias

Former Member
0 Kudos

I found that the suggestions are limited to 100 items (default for any model).

In this post (awiedemann.com &amp;bull; SAPUI5 / oData / JSON model - set size limit) is described how to change the limit for a model, but how can it be done for a binding that is defined in xml, like in the code above:

suggestionItems="{/ProductCollection}"

?

jmoors
Active Contributor
0 Kudos

You can set in the controller.