Hi all,
Suppose my table has 100 rows of data and I need to insert a new row or delete a row somewhere in the middle of the table - can I do that without having to copy and paste the existing data into new rows?
Thanks...
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | tablefield-add_tabledrag-2578261-8.patch | 7.77 KB | jenlampton |
| #6 | tablefield-add_tabledrag-2578261-6.patch | 6.58 KB | jenlampton |
| #4 | tablefield-add_tabledrag-2578261-4.patch | 4.1 KB | jenlampton |
Comments
Comment #2
patrickroma commentedIs this feature planned for future releases?
Comment #3
jenlamptonThis would be a fantastic new feature. As a work-around you might export the current table field data as a CSV, and open that file in MS Excel or similar. Add the row where you like it, and then save the file as a new CSV. Then, import the new CSV with all that data back into the table field, and voila!
Changing to feature request.
Comment #4
jenlamptonI was thinking about this... The "insert a row in the middle" problem could also be solved by allowing the user to add a row at the end, and then use tabledrag to drag it up into the middle much like we do with fields (not that Field UI should be used as an example of a good UI.) I spent some time adding tabledrag to the data-input form. Maybe give this a try and see if you think it's a good compromise?
Comment #5
jenlamptonComment #6
jenlamptonI really liked this feature so have added it to the port of this module I have been working on for Backdrop CMS. This patch includes cleaned-up css for the tabledrag display.
Comment #7
jenlamptonComment #8
jenlamptonThis patch saves the rows in the correct order after sorting.
Comment #10
jenlamptonTabledrag will be included in the next release of this module.