Edit response format
Edit response format
tiebreaktech
Posts: 20Questions: 3Answers: 1
in Editor
hello,
i'm using select inputs in my table. one in particular is in the format
{ data: "player.label", editField: "player.value" }.
the editor entry for that parameter is
{ label: 'Giocatore', name: "player.value", type: "select", options: people }.
After i update the row i get this warnin :
Requested unknown parameter 'player.label' for row 1
is it something wrong with the format? i return an array of the exact format of the one that i use to populate the table
This discussion has been closed.
Answers
Hi,
The error suggests that the Ajax response from the server doesn't contain the full information for the row (specifically the
player
object with alabel
property).What is the JSON that is being returned from the edit request?
Allan
(sorry, i don't know how to format it)
Interesting - that looks completely correct.
Could you give me a link to your page so I can debug what is going wrong please?
Thanks,
Allan
sadly it requires authentication.
any hint about what should i search for in the debugger?
After the warning comes up try running the DataTables debugger and let me know:
The error you are seeing means some data is missing from the return - but from what you've posted above it does appear to be present.
Allan
by updating the library the warning disappeared but the row now does not update.
anyway the main problem is solve. i can reload the table.