Quantcast
Viewing all articles
Browse latest Browse all 2794

Re: VizFrame: Obscure error message 50053

Yes, I did. Model itself is created in the Component.js, as seen in the examples.

 

In my onBeforeRendering method, in the controller of my view, I set the bundle like this

 

  this.bundle = this.getView().getModel("i18n").getResourceBundle();

and I use it like this during graph creation:

 

_getDataset: function(/*parameters here*/) {  var dataset = new sap.viz.ui5.data.FlattenedDataset({  dimensions: [     {          name: this.bundle.getText("Date"),         value: {          path: 'Date',          type: new sap.ui.model.type.Date({pattern: this.bundle.getText("DateFormat")})         }     }  ],     measures: [         {          name: this.bundle.getText("Documents"),          value: "{Stuff}"         },         {         name: this.bundle.getText("Rate"),         value: {          path: 'Rate'          /*          ,formatter: function (rate) {          return Math.floor(Math.random() * (1000 - 1)) + 1;          }          */         }         }            ],     data: {         path: "/Statistic",         filters: [               // a couple filters         ],         templateShareable: false     }  });  return dataset;  }

or here

 

vizFrame.setVizProperties({  title: {         visible: true,         text: title     },     legend: {                visible: true,                title: {                visible: false                }            },            legendGroup: {            layout: {            position: "bottom"            }            },  valueAxis: {  title: {  text: this.bundle.getText("yAxisLabel"),  }  },  categoryAxis: {  title: {  text: this.bundle.getText("Date")  }  }  });

or

 

var feedCategoryAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({     'uid': "categoryAxis",  'type': "Dimension",  'values': [this.bundle.getText("Date")]  });  var feedValueAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({     'uid': "valueAxis",     'type': "Measure",     'values': [this.bundle.getText("Stuff"), this.bundle.getText("OtherStuff")]  });

Viewing all articles
Browse latest Browse all 2794

Trending Articles



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