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

Re: to set json data on Comparison Micro

$
0
0

Shahid,

 

There you go, you have to bind the model name to your property values as well.

sap.suite.ui.commons.ComparisonData({      title: "{ComparisonModel>AmountType}",      value: "{ComparisonModel>AmountSum}",      color: {        path: 'ComparisonModel>AmountSum',        formatter: function(v) {          if (v > 2000) {            return "Critical";          } else{            return "Good";          }          return parseInt(v);        }      }    })

Regards,

Sai Vellanki.


Viewing all articles
Browse latest Browse all 2067

Trending Articles



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