Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8652

Re: Dynamic loading of data in Model

$
0
0

Hi Dennis,

 

It is not oData service.

 

Currently m using following code to load data .I using query which is XML based and need to convert that in json to pass to model.

 

var xmlHttp = new XMLHttpRequest();
var xmlDOM;
xmlHttp.open("GET","/XMII/Runner?Transaction=SAPUI5/TRX/XMLToJSONData&OutputParameter=JSONOUTPUT&Content-Type=text/xml", false);
xmlHttp.send();
xmlDOM = xmlHttp.responseXML.documentElement;
var opElement = xmlDOM.getElementsByTagName("Row")[0].firstChild;

var bData = eval(opElement.firstChild.data);

 

In above business logic,i need to create document everytime with fixed column names.I need to remove this dependency.

 

Please guide.

 

Thank you for your help.

 

Regards,

Neha


Viewing all articles
Browse latest Browse all 8652

Trending Articles



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