Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

VizFrame: Obscure error message 50053

Hi,

creating a VizFrame, I encounter the following error message:

Anlegen des Diagramms fehlgeschlagen:[50053] - Unvollständige Dimensionsbindung

In english:

Failed to create diagram - Incomplete dimension binding

This happens due to my VizFrame definition which looks like this:

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

var vizFrame = this.getView().byId("idVizFrameLine");

var popOver = this.getView().byId("idPopOver");

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

   dimensions: [{

        name: 'Last x months',

        value: "{Erdat}"

      }],

      measures: [{

        name: 'Posting Rate',

        value: '{RateMmPosted}'

      }],

      data: {

        path: "/results"

      }

});

vizFrame.setVizProperties({

  valueAxis: {

        label: {

          formatString: 'u'

        }

  },

  dataPointStyle: {

        "rules": [{

          "dataContext": [{

            "Erdat": ""

          }],

          "properties": {

            "dataLabel": true

          },

          "displayName": ""

        }],

        "others": {

          "properties": {

            "dataLabel": false

          },

          "displayName": "Others"

        }

      },

     

      lineStyle: {

          rules: [{

            dataContext: [{

              Erdat: ""

            }],

            properties: {

              width: 4

            }

          }]

        },

      title: {

        visible: true,

        text: 'Posting Rate for the last three months'

      }

});

vizFrame.setModel(dataModel);

vizFrame.setDataset(dataset);

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

   'uid': "valueAxis",

   'type': "Measure",

   'values': ["RateMmPosted"]

}),

feedCategoryAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({

   'uid': "categoryAxis",

   'type': "Dimension",

   'values': ["Erdat"]

}),

feedColor = new sap.viz.ui5.controls.common.feeds.FeedItem({

   'uid': "color",

   'type': "Dimension",

   'values': ["Erdat"]

});

vizFrame.addFeed(feedValueAxis);

vizFrame.addFeed(feedCategoryAxis);

vizFrame.addFeed(feedColor);

popOver.connect(vizFrame.getVizUid());

Erdat is an ISO formatted date, RateMmPosted is a double value. The graph is painted when I use the mock data and code from the Sample: Line with Conditional Data Label from the Explored section.

What's the best way to get the graph running.

Is it possible to do something like when dates are not supported?

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

   dimensions: [{

        name: 'Last x months',

        value: "{Erdat.getMonth()}"

      }],

      measures: [{

        name: 'Posting Rate',

        value: '{RateMmPosted}'

      }],

Kind regards,

Michael

Tags:
Former Member
Former Member replied

I'm trying to wrap this topic up with what I think is the correct solution to the problem at the time.

In the dataset, the name attribute has to be same as in the values arrays of the feeds.

2 View this answer in context
Not what you were looking for? View more on this topic or Ask a question