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!
Hello
I have a table based on an SQL query. Although, data are presented fine, there is no option of filtering, which does not produce any results.
Here follows the SQL query:
SELECT
hospital as 'Hospital_name',
COUNT(*)
as 'Aortic Aneurysm Disease',
(
SELECT COUNT(*)
FROM registry_aortic_aneurysm_disease
WHERE hospital = Hospital_name AND date_of_treatment >= '2020-01-01 00:00:00'
AND date_of_treatment < '2021-01-01 00:00:00'
AND (location='Infrarenal' OR location='Iliac')
) as 'Infrarenal',
(
SELECT COUNT(*)
FROM registry_aortic_aneurysm_disease
WHERE hospital = Hospital_name AND date_of_treatment >= '2020-01-01 00:00:00'
AND date_of_treatment < '2021-01-01 00:00:00'
AND (location='Infrarenal' OR location='Iliac')
AND clinical_condition='Asymptomatic'
) as 'Infrarenal Asymptomatic',
(
SELECT COUNT(*)
FROM registry_aortic_aneurysm_disease
WHERE hospital = Hospital_name AND date_of_treatment >= '2020-01-01 00:00:00'
AND date_of_treatment < '2021-01-01 00:00:00'
AND (location='Infrarenal' OR location='Iliac')
AND clinical_condition!='Asymptomatic'
) as 'Infrarenal Symptomatic (incl Ruptured)',
(
SELECT COUNT(*)
FROM registry_aortic_aneurysm_disease
WHERE hospital = Hospital_name AND date_of_treatment >= '2020-01-01 00:00:00'
AND date_of_treatment < '2021-01-01 00:00:00'
AND location!='Infrarenal'
) as 'Not infrarenal'
FROM registry_aortic_aneurysm_disease WHERE date_of_treatment >= '2020-01-01 00:00:00' AND date_of_treatment < '2021-01-01 00:00:00'
GROUP BY Hospital_name
Any help would be much appreciated.
Kind regards, and a Happy New Year
Andreas
Hello Andreas
Thank you for your purchase.
The issue here is with the PHP SQL parser we use. While the query is showing data correctly, it won't allow tables with JOINs, UNIONs, CONCATs, subqueries, etc. to be filtered or sorted.
To avoid this please prepare a MySQL view (a stored query), which will return the data that you need, call it e.g. “view1” and then build a wpDataTabled based on a simple query like “SELECT * FROM view1″.
Please note some this when working with the server-side processing feature:
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