You could either do that in the server-side script, using events to update the second table directly.
Or, you could do something similar on the client if both tables are present on the page. You would use submitSuccess to trigger the event, then use rows().every() to scan the rows in the second table, using row().data() to get the data to make sure they match, and if so, call remove() to delete from the server.
Hope that helps, shout if you need a working example of the latter,
Replies
There are two way you can go.
You could either do that in the server-side script, using events to update the second table directly.
Or, you could do something similar on the client if both tables are present on the page. You would use
submitSuccess
to trigger the event, then userows().every()
to scan the rows in the second table, usingrow().data()
to get the data to make sure they match, and if so, callremove()
to delete from the server.Hope that helps, shout if you need a working example of the latter,
Colin
Thanks alot colin