Can we make the column inline editable if we display name from the select option instead of id?

Can we make the column inline editable if we display name from the select option instead of id?

danvanwijkdanvanwijk Posts: 17Questions: 4Answers: 0

Link to test case: https://joomrp.urtestsite.com/portal/companies/sites.html
Debugger code (debug.datatables.net):
Error messages shown: No errors
Description of problem: I need to know if we display the name of selected option using the joins will we be able to make that column editable? Because inline editing doesn't seems to be working for column "Company" and "Country" in the above link. Can you please help with this?
Thanks!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    Answer ✓

    The server appears to be returning null for companies.name. Is that expected? It might just be that there isn't a value set for it yet? I don't want to try editing the data incase you are using it!

    Inline editing isn't working on those fields at the moment - when you click on them, the following is logged on the console:

    Uncaught Unable to automatically determine field from source. Please specify the field name. For more information, please refer to https://datatables.net/tn/11

    You need to use columns.editField to tell Editor what field to use to edit the data for that column. See this example which I think is basically doing what you are looking for.

    Allan

  • danvanwijkdanvanwijk Posts: 17Questions: 4Answers: 0

    Inline editing isn't enabled for Company field yet. Yes, it answered my question. Thanks!

Sign In or Register to comment.