Debugging
Debugging
nskwortsow
Posts: 120Questions: 0Answers: 0
Hi,
What is the best way for me to see the JSON data that is loaded by data tables (to debug server side code)?
Is there a function which I can use to output the data to the dom?
If I go straight to the server side URL, I don't see any data, but only a JSON string like:
{"id":-1,"error":"","fieldErrors":[],"data":[],"aaData":[{"DT_RowId":"row_0","LName":"English"},{"DT_RowId":"row_1","LName":"Dutch"}]}
###
Moreover, in the above example I assume that DT_RowId is used internally by DT. I don't see any of my primary key names here.
What is the best way for me to see the JSON data that is loaded by data tables (to debug server side code)?
Is there a function which I can use to output the data to the dom?
If I go straight to the server side URL, I don't see any data, but only a JSON string like:
{"id":-1,"error":"","fieldErrors":[],"data":[],"aaData":[{"DT_RowId":"row_0","LName":"English"},{"DT_RowId":"row_1","LName":"Dutch"}]}
###
Moreover, in the above example I assume that DT_RowId is used internally by DT. I don't see any of my primary key names here.
This discussion has been closed.
Replies
DataTables uses DT_RowId to assign an ID to the TR elements it creates. This allows Editor to uniquely identify each row - needed for submission to the server.
Allan