We're Moving to a New Support Platform – Starting June 1st!
We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.
You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.
While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.
We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.
Thanks for your continued support and trust – we’re excited to bring you an even better support experience!
I created a view which has a column that calculates AGE based on date of birth (DOB).
create view test_view1 as select *, FLOOR(DATEDIFF(CURDATE(), DOB)/365.25) as AGE from wpdatatable_12;
Then, in WPDataTables I created a table from the view (method learned from one of your YouTube tutorials) using select * from test_view1.
The behavior I expected was if I added a new record or changed the DOB of an existing record, AGE would be calculated or recalculated. However, I get an error message that the AGE field is not updatable.
Any idea what I'm doing wrong?
Thanks.
Also, I believe what I'm trying to do could be accomplished by adding a Formula Column to my table. Unfortunately, I am limited to rudimentary math only on Number columns, whereas my calculation is on a Date field and external functions, DATEDIFF and CURDATE.
Is there a workaround for this? Could I calculate AGE in a shortcode and set it in the Formula Column?
Thanks.
Hi again Perla
Unfortunately, you won't be able to use date columns in Formulas, as only integer and float values will work there.
Now, the issue here is that you are trying to modify a view, and unfortunately MySQL Views cannot be edited properly – only one of the underlying tables can be edited if you pass the proper ID.
Since you're pulling the data from wpdatatable_12, you would be able to modify that table, and the table created from the view will respond.
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