onBeforeRebindVisualFilterExtension: function (sEntityType, sDimension, sMeasure, oContext) { // oContext has filters, queryParameters, sorters, entityParameters applicable for this specific visual filter
"use strict";
var oNavigationContext = this.extensionAPI.getNavigationContext(); //getting incoming navigation context through extension API
var dist = 0;
if (oNavigationContext.SelectOptions) {
for (var i = 0; i < oNavigationContext.SelectOptions.length; i++) {
if (oNavigationContext.SelectOptions[i].PropertyName === "District") {
dist = oNavigationContext.SelectOptions[i].Ranges[0].Low;
}
}
}
if (sDimension === "FieldServiceEngineer") {
if (dist !== 0) {
oContext.filters.push(new sap.ui.model.Filter("District", "EQ", dist));
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |