Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: How to run sql statement in xsjs and get the result as json?

$
0
0

Thank You @Florian Pfeffer

 

It worked....

 

One more thing, I ma trying to use this value on a BulletChart of Sapui5 App. Here is the code, can you tell me what's wrong here

 

var model = new sap.ui.model.json.JSONModel("../services/total.xsjs", false);  sap.ui.getCore().setModel(mode,"total");  var oConfBCData = {             thresholds: [         { value: 0, color: sap.suite.ui.commons.InfoTileValueColor.Good },      { value: 15000, color: sap.suite.ui.commons.InfoTileValueColor.Good },  { value: 30000, color: sap.suite.ui.commons.InfoTileValueColor.Good },  { value: 45000, color: sap.suite.ui.commons.InfoTileValueColor.Good },  { value: 60000, color: sap.suite.ui.commons.InfoTileValueColor.Error },  { value: 75000, color: sap.suite.ui.commons.InfoTileValueColor.Error }      ],      };  var oConfModel = new sap.ui.model.json.JSONModel();  oConfModel.setData(oConfBCData);  sap.ui.getCore().setModel(oConfModel);  var oBCDataTmpl = new sap.suite.ui.commons.BulletChartData({         value: "{value}",         color: "{color}"     });         var oBCTmpl = new sap.suite.ui.commons.BulletChart({         size: sap.suite.ui.commons.InfoTileSize.Auto,  scale: "INR",             actual: { value: "{total>/records/value}", color: sap.suite.ui.commons.InfoTileValueColor.Error},             //forecastValue: 110,             targetValue: 60000,  thresholds: {          template: oBCDataTmpl,          path: "/thresholds"         },  showActualValue: true,      showTargetValue: true,      showDeltaValue: true,      showValueMarker: false,      mode: sap.suite.ui.commons.BulletChartMode.Actual    });

Please Help


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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