Skip to Content
0
Sep 12, 2014 at 05:50 AM

SAPUI5 Layout which accepts MII I5charts/Grids

89 Views

Hello,

I am trying to create a page with several I5Charts and normal UI5 tables and use them in a matrix layout to align them.

I get below JS error when I try to place I5charts to a matrix/virtical/horizontal layout.

Which layout container in UI5 that MII charts can be placed in?

Regards

Suneel

Error: "[object Object]" is not valid for aggregation "rows" of Element sap.ui.commons.layout.MatrixLayout#__layout0 @ https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js:134

Below is the code snippet

var a = new sap.ui.commons.layout.MatrixLayout ( { widths : "100%" } );

var graph = new com.sap.xmii.chart.hchart.i5Chart("Mii/Common/Avail", "Mii/PM/Query/Avail");

graph.setChartWidth("640px");

graph.setChartHeight("400px");

a. addRow(graph);