Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

Query template returning "object object " with ajax call.

$
0
0

Hi Experts,

 

 

 

I called the xacute query in ajax and tried to bind with sap ui table.

 

But I could not get json data from query template,Instead it ruturning result as [object,object],[object,object],[object,object]

 

With static data Ui5 table is working fine but if bind it  following way is  working .

 

Pls help me to resolve it.

 

 

 

 

 

 

var oModel = new sap.ui.model.json.JSONModel();

$.ajax({

   type: "POST",

url:'http://172.25.7.21:50000/XMII/Illuminator?QueryTemplate=Test/UI5/GetMaterialXacute&Content-Type=text/json',  

success: function (data) {

alert("ok"+data);

var rows = data.Rowsets.Rowset[0].Row;

 

alert("rows"+rows);// returning object...... instead of actual results...

 

oModel.setData({modelData: rows});

  oTable.setModel(oModel);

  oTable.bindRows("/modelData");

},

error: function (err) {

    alert("Local error callback.");

  }     

     });//ajax close  

 

 

 

 

Regards,

Raj.


Viewing all articles
Browse latest Browse all 4841

Trending Articles



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