
caseInsensitiveFilters: function (oEvent) {
var oBindingParams = oEvent.getParameter("bindingParams");
var oFilters = oBindingParams.filters;
var exceptionFilters = ["STATUS","PACKAGE_ID"];
oFilters.forEach(function (x) {
if (x.aFilters) {
x.aFilters.forEach(function (y) {
if (y.aFilters) {
y.aFilters.forEach(function (z) {
if (z.sPath && typeof z.oValue1 === 'string' && !exceptionFilters.includes(z.sPath)) {
z.sPath = "tolower(" + z.sPath + ")";
z.oValue1 = "'" + z.oValue1.toLowerCase().toString() + "'";
}
} else if (y.sPath && typeof y.oValue1 === 'string' && !exceptionFilters.includes(y.sPath)) {
y.sPath = "tolower(" + y.sPath + ")";
y.oValue1 = "'" + y.oValue1.toLowerCase().toString() + "'";
}
});
} else if (x.sPath && typeof x.oValue1 === 'string' && !exceptionFilters.includes(x.sPath)) {
x.sPath = "tolower(" + x.sPath + ")";
x.oValue1 = "'" + x.oValue1.toLowerCase().toString() + "'";
}
});
},
onBeforeRebindTableExtension: function (oEvent) {
this.caseInsensitiveFilters(oEvent);
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 |