Skip to Content
0
Dec 29, 2015 at 11:20 AM

Adding Blank rows to the table in add new row button

1672 Views

Dear Experts,

I am trying to achieve the add new blank row by pressing a ann new row button.

I have done it with the help of add item method of the table.

I need suggestion on this , can we call the table and colummn list template in my controller and do the additem and passing the template

reference to it?I have tried this but iits not working for me.

as for example :

oTable.addItem("Columnlist template") - this is not working

where as oTable .addItem(new sap.m.input etc etc) - this code works perfectly.

Since i already have a template in my view so i want to reuse it by calling in controller but however am not able to achieve this.

Kindly suggest.

regards,

Vikash