SAPUI5: How to filter data with 2 or more values

前端 未结 9 1270
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 20:51

I\'m currently trying some stuff with/in SAPUI5 and I\'ve implemented a very simple search like this:

    var filters = [];
    var query = evt.getParameter(\"qu         


        
9条回答
  •  情深已故
    2021-02-04 21:38

    According to the API

    For manual filtering you should always pass the FilterType

    If you change your code to

     list.getBinding("items").filter(filters, sap.ui.model.FilterType.Application);
    

    it should work.

    See also https://openui5.hana.ondemand.com/docs/guide/BindingAggregations.html at the very bottom.

提交回复
热议问题