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!
In MySQL we have the ability to create a column that calculates the running total of another column. This is done by setting a variable before SELECT, usually:
SET @Variable := 0;
SELECT
Table. Total........
@Variable := (@Variable + Total)
FROM
-----
It works fine using MySQL Workbench, but not within wpDataTable, which does not allow the SET command
I have tried to use the %VAR1% to set the initial value
PLACEHOLDER TAB: %VAR1% = 0
MySQL Query under SELECT %VAR1% = (%VAR1% + Total) AS CUMT
Surely there must be a way to generate a running total
Appreciate your assistance
Hello Rocky
As per our documentation, using variables ( @ ), stored procedures, and nested queries are not supported, but you can prepare a MySQL view (which will return the data you need); call it “view1” for example, and then build a wpDataTable based on a simple query like “SELECT * FROM view1”.
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