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

Re: Query template  returning "object object " with ajax call.

$
0
0

HI Christian/Swarrop,

 

I could see the data if I display by converting with function decodeURIComponent($.param(data));

 

But I can bind it. Can you pls guid me..

 

$.ajax({

   type: "POST",

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

success: function (data) {

alert("success");

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

var Mat = data.Rowsets[Rowset][0][Row][0][MatNo];

//alert("rows"+data.Rowsets.Rowset[0]);

//var result = Y.QueryString.stringify(data);

 

var result =decodeURIComponent($.param(data));    // it is giving results in Rowsets[Rowset][0][Row][0][MatNo]  format

alert("result" +result);

 

 

 

oModel.setData({modelData: rows});         // binding in this way

  oTable.setModel(oModel);

  oTable.bindRows("/modelData");

},

 

Regards,

Bikshapathi.


Viewing all articles
Browse latest Browse all 4841

Trending Articles



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