Hey everyone!
With the holiday season upon us, we want to share our upcoming working hours:
- New Year: Our team will be off on January 1st and 2nd. We’ll be back on Friday, January 3rd, to respond to any messages received during this time.
- Weekend: As usual, we don’t work on weekends, so January 4th and 5th will also be non-working days.
- Orthodox Christmas: Our office will be closed on Monday and Tuesday, January 6th and 7th for the holiday.
After that, we’ll return to our regular schedule and assist you as quickly as possible.
In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find tons of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel), which might just have the answers you need while we’re away.
Thanks a bunch for your understanding and support!
Warm regards and happy holidays!
TMS
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