Skip to Content
avatar image
Former Member

Filter error in oData model read from service


I have defined a filter for a oData model. It checks whether the value of an input field (name) is contained within the filterable field of the model (Name2).

filnam = new sap.ui.model.Filter("Name2", sap.ui.model.FilterOperator.Contains, name.getValue(),"");

The read is executed afterwards storing the resulting records in a table"/ClientCollectionSet", {
					filters: filnam,
					method: "GET",
					success: function(oData) {
						var data = {
							"Row": oData.results
						var tbl = oView.byId("table2");
						tbl.bindRows("/Row", tbl.getRows()[0].clone());
					error: function() {}

The model is declared this way

var oModel = new sap.ui.model.odata.ODataModel(odataUrl, false, false, false, {});

If I execute the read without filters it works OK, but with the filter it gives me this error.

Thank you in advance for any suggestion.

error-odata2.png (67.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers