As previously announced via banners and our newsletters, support is no longer available through this platform.
For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.
You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.
Paid customers: Please log in to your store account for support.
Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com
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