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?

klermannklermann 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?

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    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.

  • klermannklermann Posts: 277Questions: 67Answers: 1

    Oops, sorry! Do I need to know the name of the list of objects or arrays to access in the backend?

  • allanallan Posts: 63,480Questions: 1Answers: 10,467 Site admin

    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

  • klermannklermann Posts: 277Questions: 67Answers: 1

    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!

  • allanallan Posts: 63,480Questions: 1Answers: 10,467 Site admin

    The preSubmit event will give you access to the data Editor is submitting.

    Allan

  • klermannklermann Posts: 277Questions: 67Answers: 1

    Do you have an example of this pre Submit working?

  • klermannklermann Posts: 277Questions: 67Answers: 1

    editor.on( 'preSubmit', function ( e, data, action ) {

                       console.log(e);
                       console.log(data);
                       console.log(action);
                } );  
    
  • allanallan Posts: 63,480Questions: 1Answers: 10,467 Site admin

    Yes - that should show the arguments that are being given to the event handler.

    Allan

This discussion has been closed.