Skip to Content
0
Dec 20, 2017 at 07:59 AM

How to propely bind data to VizFrame when it changes dynamically?

4714 Views

I have one JSON which I get by calling server. Then I have tried set oData model but it causes error in sap-ui-core.js:335 :

Uncaught(in promise)TypeError:Cannot read property'indexOf' of undefined

I tried to do it dynamically. When I hard code this json it works well. But issue occurs during changing data. I get a response with data from the server but binding is not working.

Should I try with any kind of refreshing VizFrame? (oVizFrame.vizUpdate() with data inside doesn't work).

I am using UI5 1.38 version.

Some help will be very appreciated. Thanks in advance.