I have an input with both value help and suggestion items. I'm applying filters when the suggest event triggers and getBinding("suggestionItems") returns undefined. Snippets of my code are listed below.
onSuggestion: function(oEvent) {
var value = oEvent.getParameter("suggestValue");
var Filters = [];
if (value) {
Filters.push(new sap.ui.model.Filter("Key", sap.ui.model.FilterOperator.StartsWith, value));
oEvent.getSource().getBinding("suggestionItems").filter(Filters);
sap.ui.getCore().byId(oEvent.getSource().sId)
works, but
oEvent.getSource().getBinding("suggestionItems")
returns
undefined.
For some reason I am unable to get the binding of suggestionItems.
Value help and it's select dialog also work, just not suggestions.
Any help is appreciated, thank you!
Hi Abdul,
Have you found any solution to this one?
If not, are you pushing it under some aggregation? What version on UI5 library are you using?