Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: addContent of view is asynchronous with DOM change?

$
0
0

Hi,

 

Our situation is: We need render several charts into a view. The chart library is not using UI5 tech and it just need a dom node so that it can render the charts into it. Before that we need some Ajax call to get the charts' type.

 

So we tried some code like: (highly simplified)

 

getChartsType().done(function(){
view.addContent(new sap.ui.core.HTML({content: '<div id="chartContainer"></div>'}));
myChartLib.renderInto('chartContainer'); // error was thown up, no such element
});

Viewing all articles
Browse latest Browse all 8944

Trending Articles



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