Retrieving an entire row from a search.
Retrieving an entire row from a search.
16Labs
Posts: 3Questions: 2Answers: 0
I'm trying to retrieve the contents of an entire from a search. I'd like to find a row in one data table, and then take that row and move it to another data table. The contents of a search however, returns a filter that I can .draw() but I don't want the contents of the original table changed.
Is there a way to select multiple rows in a search, then move those rows?
This discussion has been closed.
Answers
You can select rows using the Select extension (either via the API or with a mouse), and then use
row().data()
get the data from the rows,row.add()
to add to the other table androw().remove()
to remove from the original host table.Allan