Good morning! I imported multiple tables (CSV) which each already contained a unique primary ID. It looks like a separate primary ID column was automatically created for each imported table (wdt_ID). I'm not able to remove this column. I'd like to use my existing ID column instead of wdt_ID, meaning I would need the existing ID column be auto increment etc.
I was able to link the tables using the foreign key feature. This works well, however, if I add a new row, I have to manually enter the ID since it doesn't auto increment.
Is there a way to handle importing tables which already contain unique ID fields? Or do I need to manually edit each wdt_ID to match the existing ID fields?
Sorry to disappoint you but unfortunately removing wdt_ID column is not possible. wdt_ID column is automatically created when you create editable tables.
So in your case the workaround is, like you suggested, to manual edit each wdt_ID column to match the existing ID fields.
Thanks for the reply! I actually tried manually editing the wdt_ID column using the in-line edit function. It allowed me to change it, but the changes automatically reversed when I tried to save. Am I doing something wrong?
I tried editing wdt_ID by clicking the column and choosing edit as well, but it does not appear in the edit form.
I believe I have figured it out. I had to change the 'ID column for editing' setting to my existing ID field (instead of default of wdt_ID). I am now able to edit wdt_ID field. Once I have modified all 700+ entries to match my ID field, I will then change the setting back to wdt_ID and then delete my ID column. I think this will get things working as expected.
Good morning! I imported multiple tables (CSV) which each already contained a unique primary ID. It looks like a separate primary ID column was automatically created for each imported table (wdt_ID). I'm not able to remove this column. I'd like to use my existing ID column instead of wdt_ID, meaning I would need the existing ID column be auto increment etc.
I was able to link the tables using the foreign key feature. This works well, however, if I add a new row, I have to manually enter the ID since it doesn't auto increment.
Is there a way to handle importing tables which already contain unique ID fields? Or do I need to manually edit each wdt_ID to match the existing ID fields?
Thanks!!
HI Charlie Smith,
Thank you for your purchase.
Sorry to disappoint you but unfortunately removing wdt_ID column is not possible.
wdt_ID column is automatically created when you create editable tables.
So in your case the workaround is, like you suggested, to manual edit each wdt_ID column to match the existing ID fields.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thanks for the reply! I actually tried manually editing the wdt_ID column using the in-line edit function. It allowed me to change it, but the changes automatically reversed when I tried to save. Am I doing something wrong?
I tried editing wdt_ID by clicking the column and choosing edit as well, but it does not appear in the edit form.
Maybe I'm missing something?
Thanks again for your help!
I believe I have figured it out. I had to change the 'ID column for editing' setting to my existing ID field (instead of default of wdt_ID). I am now able to edit wdt_ID field. Once I have modified all 700+ entries to match my ID field, I will then change the setting back to wdt_ID and then delete my ID column. I think this will get things working as expected.
Charlie
HI Charlie,
Glad to hear that you found a solution, good job.
Hope that everything is working fine now.
Let me know If you have any more questions.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables