server Processing
server Processing
Andreas S.
Posts: 208Questions: 74Answers: 4
in Editor
What should send the server back to the client if the operation (create, edit, delete) is successfully or not.
I tried to send the complete list to the client, if the operation is successfully. But this works not correctly
The Editor Windows closed, but the List are not reloaded.
I need this Information because the server side scripts are written in Java.
Andreas
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The documentation for what Editor expects back is available here.
Allan
I have now the problem, the datatable did not reload after submit the new data. in other projects I use
table.ajax.reload();
, but im not sure where should I place the reload.Andreas
I put the reload in the editor.on() api with postCreate. Now my table are reloaded, after submit a create. is that correct?
Hi @Andreas S. ,
Yep, that sounds reasonable. You could also add
postEdit
andpostRemove
if you're concerned values may change or be removed.Cheers,
Colin
submitComplete
would catch all three of those CRUD actions.That said, if your server-side returns the JSON that Editor expects, it shouldn't be required at all as Editor would be able to update the table based on the action that was triggered.
Allan