What is the name of the user that I can access to the backend for a list of arrays or objects?
What is the name of the user that I can access to the backend for a list of arrays or objects?
klermann
Posts: 277Questions: 67Answers: 1
What is the name of the user that I can access to the backend for a list of arrays or objects?
This discussion has been closed.
Answers
I have no idea what you mean.
I didn't understand your other thread either.
Please try to explain yourself clearly and with sufficient detail.
Oops, sorry! Do I need to know the name of the list of objects or arrays to access in the backend?
No. Your server-side processing should output JSON for DataTables. The name of that list or array should never leave the server.
Your client-side will need to know the name of the data properties in the objects though, so they can be shown in each of the columns in the DataTable.
Allan
Allan how can I give a console.log (), to see the form output from the datable editor when sending the file to the server, as I'm afraid the data is null or empty, since the server are coming in that format!
The
preSubmit
event will give you access to the data Editor is submitting.Allan
Do you have an example of this pre Submit working?
editor.on( 'preSubmit', function ( e, data, action ) {
Yes - that should show the arguments that are being given to the event handler.
Allan