Skip to Content
0
Aug 11, 2016 at 06:18 PM

Need to combine Combobox with Suggestions / AutoComplete

1129 Views

Hi Experts

I need for a ComboBox also a similar feature like the input control offers (suggestions / auto-completion).

Do you have any samples?

<Input

id="productInput"

showSuggestion="true"

suggestionItems="{/ProductCollection}" >

<suggestionItems>

<core:Item text="{Name}" />

</suggestionItems>

</Input>

this.byId("productInput").setFilterFunction(function(sTerm, oItem) {

// A case-insensitive 'string contains' style filter

return oItem.getText().match(new RegExp(sTerm, "i"));

});

SAPUI5 Explored

Any help would be nice, thanks!