Skip to Content

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 20, 2016 at 12:17 PM

    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();

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 20, 2016 at 06:46 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.