Advertisement
Guest User

Untitled

a guest
Sep 5th, 2018
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. onBeforeRebindTableExtension: function (oEvent) {
  2. var oBindingParams = oEvent.getParameter("bindingParams");
  3. oBindingParams.parameters = oBindingParams.parameters || {};
  4.  
  5. var oSmartTable = oEvent.getSource();
  6. var oSmartFilterBar = this.byId(oSmartTable.getSmartFilterId());
  7. var customFilter;
  8. if (oSmartFilterBar instanceof sap.ui.comp.smartfilterbar.SmartFilterBar) {
  9. //Custom price filter
  10. customFilter = this.getView().byId("OrganizationInput").getSelectedKey();
  11. oBindingParams.filters.push(new sap.ui.model.Filter("POLE_Z_SEGW", sap.ui.model.FilterOperator.EQ, customFilter));
  12. }
  13. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement