If your MySQL-query based wpDataTable doesn’t work correctly with server-side processing, probably this is happening because wpDataTables server has problems with parsing of the query and building new queries dynamically (happens rarely, but does sometimes). 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″.
Thanks. The view approach worked. However, now I can't get the report builder to read the resultant file. I keep getting an "illegal name character" error when Microsoft Word 2010 tries to open the document files. I have changed the column name several times and still receive the error. I named the column "benefactor" and used ${benefactor} in the report. When I remove that column from the template the letters will open.
We are located in Serbia and our working time is from 10:00 to 17:00 CET. business days.
Can you please tell me do you have "&" sign in your table which can breaks .doc file. We recommend to use HTML Character Entities "&" instead of "&" in tables. We will fix this in future updates.
Why does following query run on MySQL 5.5 but will not run in WPdatatable?
SELECT SUBSTRING_INDEX(SUBSTRING_INDEX(w.address,';',1),':',-1) AS fieldname1,
SUBSTRING_INDEX(SUBSTRING_INDEX(w.address,';',2),':',-1) AS fieldvalue1,
SUBSTRING_INDEX(SUBSTRING_INDEX(w.address,';',3),':',-1) AS fieldname2,
SUBSTRING_INDEX(SUBSTRING_INDEX(w.address,';',4),':',-1) AS fieldvalue2,
SUBSTRING_INDEX(SUBSTRING_INDEX(w.address,';',5),':',-1) AS fieldname3,
SUBSTRING_INDEX(SUBSTRING_INDEX(w.address,';',6),':',-1) AS fieldvalue3,
SUBSTRING_INDEX(SUBSTRING_INDEX(w.address,';',7),':',-1) AS fieldname4,
SUBSTRING_INDEX(SUBSTRING_INDEX(w.address,';',8),':',-1) AS fieldvalue4,
SUBSTRING_INDEX(SUBSTRING_INDEX(w.address,';',9),':',-1) AS fieldname5,
SUBSTRING_INDEX(SUBSTRING_INDEX(w.address,';',10),':',-1) AS fieldvalue5
FROM KUEPbFoTcbaccounting_vc_manager w
I get your "white screen of death"
Hi coltding,
Thank you for your purchase.
If your MySQL-query based wpDataTable doesn’t work correctly with server-side processing, probably this is happening because wpDataTables server has problems with parsing of the query and building new queries dynamically (happens rarely, but does sometimes). 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″.
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
Thanks. The view approach worked. However, now I can't get the report builder to read the resultant file. I keep getting an "illegal name character" error when Microsoft Word 2010 tries to open the document files. I have changed the column name several times and still receive the error. I named the column "benefactor" and used ${benefactor} in the report. When I remove that column from the template the letters will open.
Hi coltding,
Sorry for late response.
We are located in Serbia and our working time is from 10:00 to 17:00 CET. business days.
Can you please tell me do you have "&" sign in your table which can breaks .doc file. We recommend to use HTML Character Entities "&" instead of "&" in tables. We will fix this in future updates.
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
Thanks. You are correct - there was an & character. Looking forward to the correction.
Hi coltding,
You are welcome.
Sorry for any inconvenience.
Best regards
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