Hi,
I need to create a table dynamically.
I don't know the number of rows nor the number of columns i'll be displaying.
For the columns i could get it done with:
for(var i=0;i<columns.length;i++)
{
var oColumn = new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: columns[i]});
oTable.addColumn(oColumn);
}
But when i try to do the same for the rows i get an error that says "addRow" cannot be used programmatically!".
Any ideas of how can I make this work?
Thanks!
Julian