Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Bind Read Results to Table

$
0
0

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!


Viewing all articles
Browse latest Browse all 6178

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>