Skip to Content
avatar image
Former Member

Passing Filter parameter in bindElement of view

Hello Folks,

I am trying to pass filters in bindElement method of a view as shown in blow code. This does not work. And also, in the parameters, it accepts only expand and select. Could you please let me know how to pass the filters.

this.getView().bindElement({

path: sObjectPath,

parameters: {

expand: sExpand

},

filters: [new sap.ui.model.Filter(sFieldName, "EQ", sValue)],

events: {

change: this._onBindingChange.bind(this),

dataRequested: function() { },

dataReceived: function(oData) { }

} });

Best Regards

Srini

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 21, 2017 at 06:20 AM

    By Looking into the documentation, it looks like $filter is supported only with OData V4 model.

    For V2, I would suggest trying to put it in the URL itself. (path)

    Add comment
    10|10000 characters needed characters exceeded