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

Re: microchart data binding NaN

$
0
0

looks like the model path is needed..

 

var oModelZ = new sap.ui.model.odata.ODataModel(sUrl,true); // true - json

this.setModel(oModelZ, "path1");

 

 

what is the structure of your json response.. you need to have the path... seems like from your binding you have properties of an end point such as:

 

{

path1:[  { Title: 'T1', Color: 'C1', Value: 'v1' },          

               { Title: 'T2', Color: 'C2', Value: 'v2' } ],

path2: {} // diff object

}

 

you need to have your path: path1 specified somewhere then your properties Title, Color, Value would display correctly


Viewing all articles
Browse latest Browse all 3022

Trending Articles



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