Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Input Assisted Not Working As Contains

Hi, 

I need a contains filter working for Input Assisted.

Take a look here :http://jsbin.com/zudazuquxa/2/edit

If you see, the filter applied is sap.ui.model.FilterOperator.Contains

However, it still works startsWith


Am I missing something?


Please help


Thanks

Amjad


Former Member
Former Member replied

You'll have to reset the default filter function for suggestion.The default is to check whether the first item text begins with the typed value.

oInput.setFilterFunction(function(sValue, oItem){

  return true;

});

JS Bin - Collaborative JavaScript Debugging

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question