I'd like to have a multi-select dropdown field (Say in Table A) that is sourced from another table (Table B). This option does not seem possible, but it is possible with a predefined list.
I'd like my users to be able to update/add to update Table B so that the option for the associated column in Table A get the new values - how can this be done?
I do use the foreign keys option to collect data from table B to insert into table A, however I can only ever select 1 value at a time, I'd like to have a multiselect dropdown of table B items available to update to a string column in table A. E.g. I need a list of countries where a process X takes place - so process X could have several countries such as France, Germany, Italy etc. At the moment the only option I have it to ad in one value from table B.
Here's how I set up the column in Table A
But when I try to change the option to multiselect it is greyed out:
From my point of view, this doesn't work with my multiselect box. I need to work with the Value List in each table. This always requires maintenance when a new value is added.
But I'm curious, maybe exist already a better solution.
Alan, unfortunately, foreign keys can only pull a single value, and that's why the single-value selectbox is the only editing option for foreign-key columns.
Maybe you could try a workaround Jens suggested, but in that case Foreign Keys would be taken out of the picture.
Jens - this is something I've had a look at, but the problem is that I'd like my users to be able to update the list as well. This would then provide a much richer picture, without admin help, for other users to make use of. Having a predefined list is ok in a few cases but not when that list needs to be dynamically updated, or at least added to.
If you know of a way to dynamically update the 'Possible values for column' list I would be very interested.
At the moment, there's no built-in feature that would allow you to do this. Maybe with some custom workaround, but we've never done anything similar, nor have we run into anyone who did this before.
Hi
I'd like to have a multi-select dropdown field (Say in Table A) that is sourced from another table (Table B). This option does not seem possible, but it is possible with a predefined list.
I'd like my users to be able to update/add to update Table B so that the option for the associated column in Table A get the new values - how can this be done?
Many thanks
Alan
Hello Alan
Thank you for your purchase.
It sounds like you could use the foreign keys to fetch the data from table B in table A.
Please check it out and let me know if you have any questions regarding this.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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 Aleksander
I do use the foreign keys option to collect data from table B to insert into table A, however I can only ever select 1 value at a time, I'd like to have a multiselect dropdown of table B items available to update to a string column in table A. E.g. I need a list of countries where a process X takes place - so process X could have several countries such as France, Germany, Italy etc. At the moment the only option I have it to ad in one value from table B.
Here's how I set up the column in Table A
But when I try to change the option to multiselect it is greyed out:
Any help would be much appreciated.
Thanks
Alan
Hello Alan,
this sounds a bit similar to my old problem.
https://tmsplugins.ticksy.com/ticket/2944273/
From my point of view, this doesn't work with my multiselect box. I need to work with the Value List in each table.
This always requires maintenance when a new value is added.
But I'm curious, maybe exist already a better solution.
Best regards
Jens
Thanks for your assistance, Jens!
Alan, unfortunately, foreign keys can only pull a single value, and that's why the single-value selectbox is the only editing option for foreign-key columns.
Maybe you could try a workaround Jens suggested, but in that case Foreign Keys would be taken out of the picture.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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
Hi Aleksander, Jens
Thanks for your replies.
Jens - this is something I've had a look at, but the problem is that I'd like my users to be able to update the list as well. This would then provide a much richer picture, without admin help, for other users to make use of. Having a predefined list is ok in a few cases but not when that list needs to be dynamically updated, or at least added to.
If you know of a way to dynamically update the 'Possible values for column' list I would be very interested.
Many thanks
Alan
Hi Alan.
At the moment, there's no built-in feature that would allow you to do this. Maybe with some custom workaround, but we've never done anything similar, nor have we run into anyone who did this before.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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