Skip to Content
avatar image
Former Member

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


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jan 01, 2015 at 11:30 AM

    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

    Add comment
    10|10000 characters needed characters exceeded