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

Re: SAPUI5 table binding is showing no content

$
0
0

I found a solution.

 

    var xmlHttp = new XMLHttpRequest();
     var xmlDom;
/* xmlHttp.open( "GET", "/XMII/Runner?Transaction=ProjectsStatus/Transactions/ProjectsStatus&OutputParameter=JSONData&Content-Type=text/xml", false ); */
xmlHttp.open( "GET", "/XMII/Runner?Transaction=ProjectsStatus/Transactions/ProjectsStatus_Applications&OutputParameter=JSONData&Content-Type=text/xml", false );
      xmlHttp.send();
         xmlDom = xmlHttp.responseText;
    var xmlDOMJSON = xmlHttp.responseXML;
    var opElement = xmlDOMJSON.getElementsByTagName("Row")[0].firstChild; 
    var jsonData = eval(opElement.firstChild.data);
    var oModel = new sap.ui.model.json.JSONModel();
    oModel.setData({modelData: jsonData});
    oTable.setModel(oModel);
    oTable.bindRows("/modelData");
    // finally place the Table into the UI
    oTable.placeAt("content1");
      

 

Now do you know how to edit the table - say you want to change a value in one of the rows- how can you save it?


Viewing all articles
Browse latest Browse all 9269

Trending Articles



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