Datatables error on editor error from server.
Datatables error on editor error from server.
james_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'
},
This discussion has been closed.
Answers
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
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.
What is the error you are getting from the server? And can that error be prevented?
Allan
Error is about the validation and cell show error as well,
after that not able to interact with the table at all,
Like this. after this, not able to edit anything.
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
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.
Hi @allan,
Were you able to look into?
Apologies! I've just replied back to your PM.
Allan
Hi @allan,
I replied with details in PM