I have a manually created table but need to set the contents of a column using data from another table relevant to a user ID.
Example: Table 2 = User1 has default column 3 value of 'Buns' User2 has default column 3 value of 'Cakes'
Table 1: User1 = Buns, User2 = Cakes
How do I set dynamic 'default values' in Table 2? I have looked at Placeholders but cannot see how to pass a value to a placeholder, particularly when my table is manual.
Hi
I have a manually created table but need to set the contents of a column using data from another table relevant to a user ID.
Example: Table 2 = User1 has default column 3 value of 'Buns'
User2 has default column 3 value of 'Cakes'
Table 1: User1 = Buns, User2 = Cakes
How do I set dynamic 'default values' in Table 2? I have looked at Placeholders but cannot see how to pass a value to a placeholder, particularly when my table is manual.
Thanks
Hi Graham,
Thank you for your purchase.
My suggestion is to look up in our documentation about Foreign key: Creating table relations in WordPress tables.
Kind Regards,
Isidora Markovic
wpDataTables: FAQ | Facebook | Twitter | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Amelia demo sites | Docs
You can try our wpDataTables add-ons before purchase on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables
Hi Graham,
Unfortunately that is not possible with built in features of plugin. You can set the predefined value, but can't be change dynamically.
Kind Regards,
Isidora Markovic
wpDataTables: FAQ | Facebook | Twitter | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Amelia demo sites | Docs
You can try our wpDataTables add-ons before purchase on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables