s如果我有一个表,我可以从一列过滤:
handleSearch: function(oEvent) {
var sValue = oEvent.getParameter("value");
var oFilter = new sap.ui.model.Filter("RAG_SOC_1", sap.ui.model.FilterOperator.Contains, sValue);
var oBinding = oEvent.getSource().getBinding("items");
oBinding.filter([oFilter]);
},
Run Code Online (Sandbox Code Playgroud)
但我可以从更多cols过滤?
例如,如果我有cols:A,B,C,B,如果我在搜索栏中写"hello",我想要在字段A或B或C或D中包含"hello"字样的所有结果