cancel
Showing results for 
Search instead for 
Did you mean: 

Viz Container - oData Problems when updating

0 Kudos

Hello Community,

http://jsbin.com/mawupolodi/1/watch?js,output

This is my current JS Project. I am working with some Viz Container, which are consuming oData data. The data stream works fine until I start to change some measures and therefore force the Viz Container to build a new chart.

Can anybody help me with updating my charts?

Regards,

Domenik

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member770115
Discoverer
0 Kudos

Hi Fox

In the following code you have set data as rawData which is not defined

ut.du.onFeedsChange = function(b, d) {

  ut.du.resetFeeding(b);

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

  dimensions: ut.du.cd.dimensions,

  measures: ut.du.cd.measures,

  data: {

  path: "/RFS"

  }

  });

  d.vizUpdate({

  data: c,

  feeds: b

  });

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

  a.setData({

rawData: ut.du.rebuildDataset()

  });

  d.setModel(a);

  };

Replace with your original data, which is RFS

Regards,

Karthy

kai2015
Contributor
0 Kudos

double post ... don't like

Could you please migrate your text into only one question?

0 Kudos

Sorry! I thought the first post was not uploaded. Please only refer to the second post, this one!

agentry_src
Active Contributor
0 Kudos

Duplicate posting removed.

Regards, Mike (Moderator)