Datatables error on editor error from server.

Datatables error on editor error from server.

james_kafenejames_kafene Posts: 7Questions: 1Answers: 0

I am using Editor with inline edit with the help of KeyTable. It is working well in case of success from the server, but in case of error, I get error in js, picture is attached.

and Everything stop working after this.

My code for the keyTable is: keys: { columns: notEditableColumns, keys: [9], editor: editor, editOnFocus: true }, select: { style: 'os', selector: 'td:first-child' },

Answers

  • allanallan Posts: 61,635Questions: 1Answers: 10,092 Site admin

    Hi,

    Are you able to give me a link to a page showing the issue please? This is the line of code that I think is throwing the error, but I'm not sure what would cause it to enter into that error state!

    Thanks,
    Allan

  • james_kafenejames_kafene Posts: 7Questions: 1Answers: 0

    Hi @allan
    You are right, this is the line throwing error,
    project is private, I can't make it accessible without the login credentials,
    and I debugged this code and it happens after getting server error,
    normally this function runs smoothly, but as soon as I make a change and receive server error then function trigger and its parameters become null.

  • allanallan Posts: 61,635Questions: 1Answers: 10,092 Site admin

    What is the error you are getting from the server? And can that error be prevented?

    Allan

  • james_kafenejames_kafene Posts: 7Questions: 1Answers: 0

    Error is about the validation and cell show error as well,
    after that not able to interact with the table at all,

  • james_kafenejames_kafene Posts: 7Questions: 1Answers: 0

    Like this. after this, not able to edit anything.

  • allanallan Posts: 61,635Questions: 1Answers: 10,092 Site admin

    Are you able to give me a link to the page showing the issue please? And also the server-side code for it?

    Is that error correct - is the FFE id already taken? If you correct the field’s value so it is unique, can you then interact with the rest of the form?

    Allan

  • james_kafenejames_kafene Posts: 7Questions: 1Answers: 0

    Hi @allan
    I sent you the link of the page and credentials in personal message.

    yes that is the error from the server, with http code 422
    and if I use unique then I can interact.

  • james_kafenejames_kafene Posts: 7Questions: 1Answers: 0

    Hi @allan,
    Were you able to look into?

  • allanallan Posts: 61,635Questions: 1Answers: 10,092 Site admin

    Apologies! I've just replied back to your PM.

    Allan

  • james_kafenejames_kafene Posts: 7Questions: 1Answers: 0

    Hi @allan,
    I replied with details in PM

This discussion has been closed.