SAPUI5: How to filter data with 2 or more values

前端 未结 9 1264
被撕碎了的回忆
被撕碎了的回忆 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:19

    I hope I got everything right: Here is how filtering more than one column when binding data to a table:

    oTable.bindRows({
        path : "/modelData",
        filters:  [new sap.ui.model.Filter("severity", sap.ui.model.FilterOperator.EQ, '2'),
                   new sap.ui.model.Filter("severity", sap.ui.model.FilterOperator.EQ, '3')]  
    });
    

提交回复
热议问题