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

Re: How to set odata to Generic Tile

$
0
0

Thanks Vijay Kalluri.

 

Already i have code for this in java script. I need to convert this to XML

 

My code is :

 

var oTemplate = new sap.suite.ui.commons.ComparisonData({

       title: "{ComparisonModel1>STATUS}",

       value: {

            path: "ComparisonModel1>CNT",

            formatter: function(val) {

                 return Number(val);

            }

       }

  });

  var oChart = new sap.suite.ui.commons.ComparisonChart({

       colorPalette: ["#1bb7a0", "#ffdc7a", "#f17979"],

       view: "Wide",

       width: "22rem"

  });

  oChart.bindAggregation("data", {

       path: "ComparisonModel1>/d/results",

       template: oTemplate

  });

  var oBulletChart = new sap.suite.ui.commons.DynamicContainer({

       tiles: [

            new sap.suite.ui.commons.GenericTile({

                 header: 'Close Status',

                 subheader: "TOTAL : " + "{ComparisonModel1>/d/results/0/TOT_COUNT}",

                 size: sap.suite.ui.commons.InfoTileSize.L,

                 frameType: sap.suite.ui.commons.FrameType.TwoByOne,

                 tileContent: [

 

 

                      new sap.suite.ui.commons.TileContent({

                           content: [oChart]

                      })

                 ]

            })

       ]

  });

 

  return (oBulletChart);

 

I want XML version of this.

 

Thanks,

Sandeep


Viewing all articles
Browse latest Browse all 2067

Trending Articles



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