Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onBeforeRebindTableExtension: function (oEvent) {
- var oBindingParams = oEvent.getParameter("bindingParams");
- oBindingParams.parameters = oBindingParams.parameters || {};
- var oSmartTable = oEvent.getSource();
- var oSmartFilterBar = this.byId(oSmartTable.getSmartFilterId());
- var customFilter;
- if (oSmartFilterBar instanceof sap.ui.comp.smartfilterbar.SmartFilterBar) {
- //Custom price filter
- customFilter = this.getView().byId("OrganizationInput").getSelectedKey();
- oBindingParams.filters.push(new sap.ui.model.Filter("POLE_Z_SEGW", sap.ui.model.FilterOperator.EQ, customFilter));
- }
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement