Skip to Content
Jun 18, 2013 at 10:58 AM

How to append or insert rows into the UI table in UI5


Hi experts,

How do i insert/append rows into a UI table.

Ex : I have one Table, Text field and one button.

My requirement is that like , if i enter something in the Textfield and press Button the value in the field should be inserted into the table as a row.

I tried by adding the below code :

var table = new sap.ui.table.Table("table1");

var row = new sap.ui.table.Row({ });


getting error like insertRow or addRow cannot be used programatically .

Could any one help me in this ?

Thanks in advance.