Hi there, I just purchased wpDataTables and I have custom tables I built in MySQL that I am able to display as a front end table and edit. However, the tables are all continuous. Is there a way I can create a table that will show only one record at a time and allow the user to add new or edit. Also I have a table that pulls data from multiple MySQL tables, how can I make that front end data editable? My attachment explains it better.
Unfortunately, only one SQL table can be edited at a time. Queries from multiple tables with joins cannot be used as an editable feature, since SQL UPDATE and INSERT statements are generated automatically, and there currently is no way to update multiple tables – but this problem is being investigated and pursued.
That looks like a pretty simple join, so maybe you can try removing the semi-colon ( ; ) from the end of the query. It sometimes kicks it off, and you may be able to edit the table after that.
Thanks Aleksandar. What about displaying a single record at a time in a form type of front end as described in the attachement? Is there a way to do that in WPDataTables? I looked into the Gravity and Formidable add ons but they don't seem to be able to map a form field to a database table field.
I need a way for a user to be able to input data into a form to populate the database tables.
Well, perhaps Gravity Forms in combination with our add-on Graviry Forms Integration for wpDataTables would be the best option, since you can edit tables with that, while editing tables created from Formidable Forms is not possible.
Displaying a single record can be done by simply limiting the amount of rows displayed on the front end, or if you stick with SQL query - by adding a WHERE condition, so you pull only one row using the query.
You wouldn't be able to change the behavior of the edit modal. If you use Gravity, when you edit or add a new row, the Form's edit modal will come up.
Hi there, I just purchased wpDataTables and I have custom tables I built in MySQL that I am able to display as a front end table and edit. However, the tables are all continuous. Is there a way I can create a table that will show only one record at a time and allow the user to add new or edit. Also I have a table that pulls data from multiple MySQL tables, how can I make that front end data editable? My attachment explains it better.
Hello Jason
Thank you for your purchase.
Unfortunately, only one SQL table can be edited at a time. Queries from multiple tables with joins cannot be used as an editable feature, since SQL UPDATE and INSERT statements are generated automatically, and there currently is no way to update multiple tables – but this problem is being investigated and pursued.
That looks like a pretty simple join, so maybe you can try removing the semi-colon ( ; ) from the end of the query. It sometimes kicks it off, and you may be able to edit the table after that.
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 Aleksandar. What about displaying a single record at a time in a form type of front end as described in the attachement? Is there a way to do that in WPDataTables? I looked into the Gravity and Formidable add ons but they don't seem to be able to map a form field to a database table field.
I need a way for a user to be able to input data into a form to populate the database tables.
Hi again Jason
Well, perhaps Gravity Forms in combination with our add-on Graviry Forms Integration for wpDataTables would be the best option, since you can edit tables with that, while editing tables created from Formidable Forms is not possible.
Displaying a single record can be done by simply limiting the amount of rows displayed on the front end, or if you stick with SQL query - by adding a WHERE condition, so you pull only one row using the query.
You wouldn't be able to change the behavior of the edit modal. If you use Gravity, when you edit or add a new row, the Form's edit modal will come up.
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