Is there a "post save" callback after Editor creates an entry into the database

Is there a "post save" callback after Editor creates an entry into the database

chrisworrellchrisworrell Posts: 6Questions: 2Answers: 0
edited April 2015 in Editor

I am trying to see if there is some sort of after save callback where i can do some post save processing before the table reloads on the front end. (PHP)

This question has an accepted answers - jump to answer

Answers

  • Gerald.RagerGerald.Rager Posts: 19Questions: 3Answers: 0

    Hi,

    did you mean

    postSubmit Event => Ajax request has been completed, and data retrieved from the server (http://editor.datatables.net/reference/event/postSubmit)

    you find this under http://editor.datatables.net/reference/event/

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Answer ✓

    I think @chrisworrell might mean in the PHP, in which case, no at the moment there isn't.

    What you would need to do is check to see if the action parameter is submitted to the server and if it is edit. If so, then after you call the Editor->process() method, you can perform that check and execute any post edit code you require.

    Allan

  • chrisworrellchrisworrell Posts: 6Questions: 2Answers: 0

    Thats the ticket.

    A callback would be great though :)

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    Agreed - I think that is something that I will look at adding for 1.5.

    Regards,
    Allan

This discussion has been closed.