I have a read operation. I want to populate a table with the results, but it always produces the entire entity set. How do I just get the results into the table?
var sUrl = "/sap/opu/odata/sap/Z_RG7_SRV/"; var oSearchModel = new sap.ui.model.odata.ODataModel(sUrl, true); oSearchTable.setModel(oSearchModel); oSearchModel.read("/SearchLotSet('" + query + "')", null, null, true, function(oData,response){ oSearchTable.bindRows("/SearchLotSet"); }, function(error){ alert(error.message); });
If I bindRows using the query, I get an error:
oSearchTable.bindRows("/SearchLotSet('" + query + "')");
What am I doing wrong?
Thanks!