Skip to Content
0

Filter not showing up in the ODATA read request when using Filters with Expand

Oct 11, 2017 at 05:28 PM

31

avatar image
Former Member

Hi,

When calling the odata service from the SAP Ui5, the filter parameter comes as blank; not sure what's wrong any help or suggestion would be great. Below is the code and call details.

code:

var filterme = [];

filterme.push(new sap.ui.model.Filter("Order_Num", sap.ui.model.FilterOperator.eq, entrydate));
filterme.push(new sap.ui.model.Filter("Entry_Dt", sap.ui.model.FilterOperator.eq, ord));

var mParameters = {
filters : filterme,
urlParameters:{"$expand" : "qDataNav" },
success : function (oData, oResponse) {
var data = oData.results;
}.bind(this),
error: function (oError) { }
};

this.oModel.read("/qDataHSet",mParameters);

Call Details in Network:

GET qDataHSet?$expand=qDataNav&$filter=true%20and%20true HTTP/1.1

Regards,

Narayan

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers