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

Binding oData service to Table

$
0
0

Hello experts,

 

I am having a service which gives me set of response along with the sales order number.

 

I am using the filter operation to get the sales order numbers based on the date and other parameters. Am getting the response based on filter criteria. The response shows only the last value present in the oData service in the table.

 

I have used

 

 


var aFilter= new  sap.ui.model.odata.Filter('data1', [{operator:"EQ",value1:"2013-08-01T00:00:00"}]);
         var bFilter= new  sap.ui.model.odata.Filter('date2', [{operator:"EQ",value1:"2013-09-10T23:59:59"}]);
         var cFilter= new  sap.ui.model.odata.Filter('data3', [{operator:"EQ",value1:"0000009000"}]);
         var dFilter= new  sap.ui.model.odata.Filter('data4', [{operator:"EQ",value1:"5000"}]);
         var eFilter= new  sap.ui.model.odata.Filter('data5', [{operator:"EQ",value1:"16"}]);
         var fFilter= new  sap.ui.model.odata.Filter('data6', [{operator:"EQ",value1:"11"}]);

oTable.bindRows({path: "/SONumber", filters:[aFilter, bFilter, cFilter, dFilter, eFilter, fFilter]});

 

The output of the table shows all rows with the same value. The value it shows is from last last value in the oData service. How can i get the rest of the data in the table.

 

 

I have tested the service in the gateway (SPRO). It gives the proper response.

 

Plz see the attached.

 

Kindly provide your valuable reponse.


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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