ui5: move selected rows from table1 to table2 in another view

sapsm

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?

Breakpoint

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,

  • Assuming that you have bound an OData model to Table1, upon completion of checkbox selection, get all the selected data from the OData model
  • Use this data to then bind it to Table2 in another view. At this point I can say Yes, it is possible to bind the same data to Table2 without calling another OData service

You can then fine-tune it accordingly.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

select all rows from table1, and rows from table2 that are not in table 1

From Dev

SQL Server matching all rows from Table1 with all rows from Table2

From Dev

Find value from Table1 where value from Table2 is between rows in Table1

From Dev

Find all rows from table1 that have zero rows in table2 linked to it by foreign key

From Dev

SQL Server: Find rows rows in Table1 not in Table2 but need data from tables

From Dev

Insert into Table2 the primary key ID that belongs to a selected value from a table1

From Dev

mysql - move rows from one table to another

From Dev

Inserting into table1 for all rows in table2

From Dev

Select records from table1 depending on table2

From Dev

Select column from table1 which is not in table2

From Dev

MySQL select * from table1,table2 as 'test'

From Dev

SQL - Update table1 values from table2

From Dev

SQL replace data in table1 from table2

From Dev

Bulk move rows from one table to another with SQLAlchemy

From Dev

Select all rows in table1 and all matched rows in table2 in same row based on ID

From Dev

How to properly count rows in table2 related to items in table1 with clause non related to table1

From Dev

How to get all columns of table1 and all rows of table2 which belong to table1?

From Dev

Reading column index of selected table row in UI5 application

From Dev

MySQL Select all rows from table 1 and all rows from table2 where

From Dev

Joining 2 tables where table2 contains multiple rows for each table1 row

From Dev

How to delete rows in Table1 where COUNT of WHERE in Table2 is greater than 0?

From Dev

MYSQL - Select column from table2 equal to table1 column if table1 column not null

From Dev

display data from table1 where its id (Table1 Id)is not contained in table2

From Dev

Selecting distinct value from table1 and table2 and then inserting those in table3

From Dev

MySQL SELECT * FROM table1,table2,table3

From Dev

SQL -Update Table2 with data from Table1, but do not update exact duplicates in Table2

From Dev

IF record DOES NOT EXIST in Table1, UPDATE Table2, ELSE IF record EXISTS UPDATE Table2 with column from Table1

From Dev

Check if combination of fields in Table1 exists in another Table2 (SQL)

From Dev

How to copy records from table1 in db1 to table2 in db2

Related Related

  1. 1

    select all rows from table1, and rows from table2 that are not in table 1

  2. 2

    SQL Server matching all rows from Table1 with all rows from Table2

  3. 3

    Find value from Table1 where value from Table2 is between rows in Table1

  4. 4

    Find all rows from table1 that have zero rows in table2 linked to it by foreign key

  5. 5

    SQL Server: Find rows rows in Table1 not in Table2 but need data from tables

  6. 6

    Insert into Table2 the primary key ID that belongs to a selected value from a table1

  7. 7

    mysql - move rows from one table to another

  8. 8

    Inserting into table1 for all rows in table2

  9. 9

    Select records from table1 depending on table2

  10. 10

    Select column from table1 which is not in table2

  11. 11

    MySQL select * from table1,table2 as 'test'

  12. 12

    SQL - Update table1 values from table2

  13. 13

    SQL replace data in table1 from table2

  14. 14

    Bulk move rows from one table to another with SQLAlchemy

  15. 15

    Select all rows in table1 and all matched rows in table2 in same row based on ID

  16. 16

    How to properly count rows in table2 related to items in table1 with clause non related to table1

  17. 17

    How to get all columns of table1 and all rows of table2 which belong to table1?

  18. 18

    Reading column index of selected table row in UI5 application

  19. 19

    MySQL Select all rows from table 1 and all rows from table2 where

  20. 20

    Joining 2 tables where table2 contains multiple rows for each table1 row

  21. 21

    How to delete rows in Table1 where COUNT of WHERE in Table2 is greater than 0?

  22. 22

    MYSQL - Select column from table2 equal to table1 column if table1 column not null

  23. 23

    display data from table1 where its id (Table1 Id)is not contained in table2

  24. 24

    Selecting distinct value from table1 and table2 and then inserting those in table3

  25. 25

    MySQL SELECT * FROM table1,table2,table3

  26. 26

    SQL -Update Table2 with data from Table1, but do not update exact duplicates in Table2

  27. 27

    IF record DOES NOT EXIST in Table1, UPDATE Table2, ELSE IF record EXISTS UPDATE Table2 with column from Table1

  28. 28

    Check if combination of fields in Table1 exists in another Table2 (SQL)

  29. 29

    How to copy records from table1 in db1 to table2 in db2

HotTag

Archive