onBeforeRebindTableExtension: function (oEvent) {
debugger;
var customFilterItems = this.getView().byId(
"com.zlistreportobjectsample9::sap.suite.ui.generic.template.ListReport.view.ListReport::YTEST_FLIGHT_LIST--maxspace").getItems(),
mBindingParams = oEvent.getParameter("bindingParams"),
aSelectedItems = this.getView().byId(
"com.zlistreportobjectsample9::sap.suite.ui.generic.template.ListReport.view.ListReport::YTEST_FLIGHT_LIST--maxspace").getSelectedItems(),
aSelectedItemsArray = [],
aItemsArray = [];
aSelectedItems.forEach(function (oSelectedItem) {
aSelectedItemsArray.push(oSelectedItem.getText());
});
customFilterItems.forEach(function (oItem) {
aSelectedItemsArray.forEach(function (oSec) {
if (oSec === oItem.getText()) {
var oItemKey = oItem.getKey();
aItemsArray.push(oItem);
}
});
});
aItemsArray.forEach(function (oTextItem) {
mBindingParams.filters.push(
new sap.ui.model.Filter(
"carrid",
sap.ui.model.FilterOperator.EQ,
oTextItem.getKey()
)
);
});
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |