Refresh row or table after input in a cell
| Project: | Ajax Table |
| Version: | 5.x-1.2 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Is there a way to trigger a refresh of the table (ore preferably of a row) after updating a cell.
The scenario is as follows:
- our table lsits users h=who have signed up for an event (using the event and signup modules).
- one cell displays the user signup status
- another cell displays a check box; when clicked, the user signup is cancelled. The database is correctly updated, and the relevant record is deleted (this is neither a node nor a user; in this case, it is a record in the signup_log table from the signup module)
- however, the cell showing the user's signup status is not updated.
It looks like the callback will update the cell that triggered the ajax request, but not others.
It also looks like there is no way to customize the js function called upon the success of the ajax request.
I can make 2 suggestions:
1. add a 'refresh' parameter: if true, then the table is refreshed
2. add an extra 'success' parameter; this could contain js code that would be invoked upon ajax success after the original cell is updated.

#1
Here's a basic, tentative patch that works for checkboxes:
define yourinput as:
<?php>
$input = array(
'type' => 'checkbox',
'refresh' => true,
...
);
<?php>
Then a call to ajaxtable_refresh_ will be made after the ajax request has returned.
Note that this call currently does not take into account any search criteria or page number.