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

Re: Error when using MII with SAPUI5

$
0
0

So is the following correct?

 

/* =================================== */

    /* Obtain XML object filled with Data*

    /* =================================== */

            var xmlHttp = new XMLHttpRequest();

 

            var xmlDom;

 

           xmlHttp.open( "GET", "/XMII/Runner?Transaction=ProjectsStatus/Transactions/ProjectsStatus&OutputParameter=JSONData&Content-Type=text/xml", false );

 

 

 

            xmlHttp.send();

 

           xmlDom = xmlHttp.responseText;

 

 

 

        // create a JSONModel, fill in the data and bind the Table to this model

 

 

 

        var oModel = new sap.ui.model.xml.XMLModel();

 

        oModel.setData({modelData: xmlDom});

 

        oModel.setXML(xmlDom);

 

        oTable.setModel(oModel);

 

        oTable.bindRows("/element"); //where element is the node that represents that data which forms each row of the table

 

    

 

        // finally place the Table into the UI

 

        oTable.placeAt("content1");


Viewing all articles
Browse latest Browse all 4841

Trending Articles