You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a fully operational Shiny app in which the user edits a DT object, after which some dependent summary statistics are displayed. When passing the client-side processing option to renderDT (server = F) in order to speed things up, a user edit of the DT is implemented correctly with the dependent summary stats updating, however the browser throws the following (dismissable) error;
DataTables warning: table id=DataTables_Table_5 - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1
Probably it's not documented clearly. It has nothing to do with the editing. It's because replaceData() calls reloadData(), which requires the server-side processing mode. See ?reloadData().
reloadData() only works for tables in the server-side processing mode, e.g. tables rendered with renderDataTable(server = TRUE). The data to be reloaded (i.e. the one you pass to dataTableAjax()) must have exactly the same number of columns as the previous data object in the table.
Probably it's not documented clearly. It has nothing to do with the editing. It's because replaceData() calls reloadData(), which requires the server-side processing mode. See ?reloadData().
reloadData() only works for tables in the server-side processing mode, e.g. tables rendered with renderDataTable(server = TRUE). The data to be reloaded (i.e. the one you pass to dataTableAjax()) must have exactly the same number of columns as the previous data object in the table.
Thank you for your answer. So I suppose at this stage it is not possible to implement an editable DT with client-side processing when replaceData has to be called in that process. Feel free to paste your reply into the SO thread as well and I'll approve it.
Dear DT community.
I have a fully operational Shiny app in which the user edits a DT object, after which some dependent summary statistics are displayed. When passing the client-side processing option to renderDT (server = F) in order to speed things up, a user edit of the DT is implemented correctly with the dependent summary stats updating, however the browser throws the following (dismissable) error;
DataTables warning: table id=DataTables_Table_5 - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1
I have browsed and posted a thorough query on SO which remains unresolved;
https://stackoverflow.com/questions/52519367/dt-editing-in-shiny-application-with-client-side-processing-server-f-throws
REPRODUCIBLE EXAMPLE (Only allowing edits in Col 1), Note that changing server = TRUE yields fully operational application
The text was updated successfully, but these errors were encountered: