Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

Problems in Get Data from Sap Netweaver Gateway

$
0
0

Hello..

 

I'm trying to  consume a XML from Sap Gateway.. I developed it in SEGW, and did tests in the browser. XML is OK and data is OK.

 

In my application using UI5 library, i did this code:

 

var sServiceUrl = "http://xxx:xxxx/sap/opu/odata/sap/ZSFLIGHT_PROJECT/Carriers?";
var oXMLModel = new sap.ui.model.xml.XMLModel(sServiceUrl);
sap.ui.getCore().setModel(oXMLModel);
var textview = new sap.ui.commons.TextView();
textview.setModel(oXMLModel);
textview = new sap.ui.commons.TextField({
value : "{/feed/entry/content/m:properties/d:Carrid}"
});
textview.placeAt("content");

 

When the site is loaded, the variable oXMLModel is blank...

After charging is complete, analyzing the variable for the debugging tool, it is filled with XML, the right way.

However, as the site is already loaded, my variables are not filled.

 

Any tip??

 

Thanks.


Viewing all articles
Browse latest Browse all 3523

Trending Articles