i've a requirement where i've to select (checkboxes) rows from table1 (in view1) to and paste them in table 2 (in view 2). is this possible without call any odata service in table2? please let me know the approach on how to do it. JavaScript way or does ui5 api allows doing this in a better way?
Short answer is No, it isn't possible.
SAPUI5 doesn't provide any out-of-box solution/APIs for the kind of 'copy paste' mechanism on a table that you are looking for.
However, if you are really looking for 'dragging and dropping' UI controls, have a look at jQuery UI especially the Draggable and Droppable sections. But beware that as you are integrating it with SAPUI5 controls, you would find unexpected results. ( You MAY not be able to do it at all )
But, if all that you are looking for is to move the data of one table to another, you can try the following,
You can then fine-tune it accordingly.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments