我希望在过滤字段为空或空白时显示所有表记录。只要USER字段中有值,就会根据值过滤数据。现在我想显示所有记录,如果USER字段为空或空。 能否请你帮忙。 以下是代码
onSettingsSaveBtn: function (oEvent) {
var oModel = this._oSettingsDialog.getModel("SettingsContext"),
oData = oModel.getData(),
user = oData.StoreID;
var aTableSearchState = [];
aTableSearchState = [new Filter("DeliveryStatus", "EQ", user)];
var oBinding = this._oTable1.getBinding("items");
this._oSettingsDialog.close();
if (user === "") {
}
else {
oBinding.filter(aTableSearchState,"Application");
}
}