server Processing

server Processing

Andreas S.Andreas S. Posts: 208Questions: 74Answers: 4

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

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    The documentation for what Editor expects back is available here.

    Allan

  • Andreas S.Andreas S. Posts: 208Questions: 74Answers: 4

    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

  • Andreas S.Andreas S. Posts: 208Questions: 74Answers: 4

    I put the reload in the editor.on() api with postCreate. Now my table are reloaded, after submit a create. is that correct?

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @Andreas S. ,

    Yep, that sounds reasonable. You could also add postEdit and postRemove if you're concerned values may change or be removed.

    Cheers,

    Colin

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    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

This discussion has been closed.