cancel
Showing results for 
Search instead for 
Did you mean: 

Creating editable Rows dynamically in sap.ui.table

0 Kudos

Hello Experts,

I have a sap.ui.table with text fields defined inside the table template. Now my requirement is to create rows dynamically upon clicking on a button. I am able to create the row but i am not able to enter any data. I want the newly created row to be editable that means i should be able to enter the data and perfom any of the CRUD operation.

Any idea would be appreciated.

Regards

Ritesh

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

if you have json model behind the thing, it will be easy, just append a record to the array that is currently bond to the table, the row will be created automatically.

0 Kudos

Hello Jun Wu,

Thanks for the reply. However i am able to create the row dynamically but the newly created row should be editable. I should be able to enter the data and save it

Regards

RItesh

junwu
Active Contributor
0 Kudos

how you create the row? if you are not using the way I described, you are in wrong direction.