Problem with Datatable CSV import
Problem with Datatable CSV import
Good night
I have a problem using the Datatable CSV import example:
https://editor.datatables.net/examples/extensions/import.html
To select the data to be imported, the Papa Prase library is used.
The problem is that to confirm the import, this library requires that the name of the fields only contain the name of the field without the name of the table to which they belong.
Example:
name: "description",
The problem is that I am using table joins leftJoin related, so I have to forcefully use the table name:
Example:
name: "table.description",
Is there an alternative for this case?
Thanks
Replies
Hi,
Could you prefix the table name here:
field.multiSet( j, csv[j][mapped] );
- e.g.:?
Allan
Thank you very much Allan for answering,
I am replacing:
field.multiSet( j, csv[j][mapped] );
to
field.multiSet( j, csv['sml_markers.' + j][mapped] );
and it still does not work, I do not know if I am doing something wrong although in debugging I do not appreciate errors.
datatable_marker.php
datos_marker.php
Can you give me a link to your page so I can trace it through with a debugger please?
Allan
Yes, the page is:
https://javierlasen.es/mapas/Admin/Marker/
Thanks! Apologies for having not looking into this today - it is on my list .
Allan
Thanks Allan for answering,
It seems that it is more difficult than he thought, hopefully it will be possible in future versions of Datatable Editor.