cancel
Showing results for 
Search instead for 
Did you mean: 

How to Copy a row from SAP UI5 Table and Paste it in to the same Table?

nagishetty
Explorer
0 Kudos

Hello Everyone,

Is it possible to copy one or more rows from a table and insert or paste those into the same table ?

Kindly suggest.

Thanks,

Nagishetty

Accepted Solutions (0)

Answers (2)

Answers (2)

AkhilDas
Explorer
0 Kudos

Hi Nagish,

If you are using the sap.m.Table control. You can get the particular row/item by method oTable.getItems()[index].

You can add that row/item to the table if you have already removed that row/item by using the method oTable.addRow(oRow) or oTable.insertRow(oRow)

Regards,

Akhil Das

Former Member
0 Kudos

Hi,

when you are using a model holding the displayed data, the table should be automatically updated when you push data to your model. If not, you could try model.refresh();