cancel
Showing results for 
Search instead for 
Did you mean: 

[50053] - Incomplete dimensions binding. error

Former Member
0 Kudos
1,556

Hi ,

     Please help me out to correct this error. I am getting  [50053] - Incomplete dimensions binding .

here is my code to fetch data from mysql. (it is fetching correctly) recived json data =

{"Details":[{"skill":"ABAP","count":"3"},{"skill":"BW","count":"2"},{"skill":"HANA","count":"1"},{"skill":"MEANSTACK","count":"1"},{"skill":"SAPUI5","count":"1"}]}


chart generating vizframe code  =



updateChart : function(){

  $.ajax({

       type:"post",

       dataType:"json",

       async:false,

       url:"http://localhost:8080/U-Plan/GetCompanyOverview",

       success:function(data)

       {

            alert('success data');

            var oModel = new sap.ui.model.json.JSONModel(data);

            var oDataset = new sap.viz.ui5.data.FlattenedDataset({

            'dimensions' : [ {

                      'name' : 'skill',

                      'value' : "{skill}"

            } ],

            'measures' : [

            {

                      'name' : 'count',

                      'value' : '{count}'

            } ],

            'data' : {

                      'path' : "/Details"

            }

       });

       var oVizFrame = sap.ui.getCore().byId("idoVizFrame1");

       oVizFrame.setDataset(oDataset);

       oVizFrame.setModel(oModel);

        // set feeds

        var feedPrimaryValues = new sap.viz.ui5.controls.common.feeds.FeedItem(

        {

                 'uid' : "primaryValues",

                 'type' : "Measure",

                 'values' : [ "Value" ]

         }), feedAxisLabels = new sap.viz.ui5.controls.common.feeds.FeedItem(

            {

                 'uid' : "axisLabels",

                 'type' : "Dimension",

                 'values' : [ "Category" ]

            });

            oVizFrame.addFeed(feedPrimaryValues);

            oVizFrame.addFeed(feedAxisLabels);

            oVizFrame.setVizType('column');    

            oVizFrame.setVizProperties({

            title : {

                 visible : true,

                 text : "Employee vs Technology",

            }

        });

        var chartPopover = new sap.viz.ui5.controls.Popover({});

        chartPopover.connect(oVizFrame.getVizUid());

       return;

       },

       error: function(data)

       { 

            alert('fail.');

       }

     });

  },

please find the attached error message...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I have seen this error before,

I solved the problem by keep the feeditem 'value' and dimensions 'value' the same.

so the dataset will bind to the chart. otherwise it will cause error

Hope it helps

Former Member
0 Kudos

thanks Zeyan it's worked for me too.

Answers (0)