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

Hi Amr,

 

I tried your example with JSON model (sap.ui.model.json.JSONModel() )

 

var jsonObj = [{

    "Applications": "BOD ETW 3304",

    "PercentComplete": "85",

    "Date_Due": "2014-06-16T11:25:00",  

    "Testing_Due": "" }, {

    "Applications": "BOD ETW 3304",

    "PercentComplete": "85",

    "Date_Due": "2014-06-16T11:25:00",  

    "Testing_Due": "" }, {

    "Applications": "BOD WLV9212",

    "PercentComplete": "85",

    "Date_Due": "2014-06-16T11:25:00",  

    "Testing_Due": "" }, {

    "Applications": "BOD WLV9212",

    "PercentComplete": "85",

    "Date_Due": "2014-06-16T11:25:00",  

    "Testing_Due": "" }, {

    "Applications": "BOD ETW 3303",

    "PercentComplete": "85",

    "Date_Due": "2014-06-16T11:25:00",  

    "Testing_Due": "" }];

 

var obj = new Object();

obj.rows = jsonObj;    //Adding root attribute "rows" for the json object to be used as parameter to bindRows()

 

var oModel = new sap.ui.model.json.JSONModel();

oModel.setData(obj);

 

oTable.setModel(oModel);

 

oTable.bindRows("/rows");

 

json_table.PNG

 

Please check if the above code works for you (and hope I have understood your query).

 

Regards,

Ria


Viewing all articles
Browse latest Browse all 4841

Trending Articles



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