1) creating a table updated from google sheet could be a solution , but the updated time is at least 3 minutes (from my assessment) and this does not meet my needs.
2) Using a formila column is not a solution as my calculation is not based on single row values but on multiple rows values distributed in one colum.
I am sorry to disappoint you, but unfortunately something like this is not possible with the plugin's built-in features.
If I'm not mistaken, this is what you want to achieve, correct?
So, B1 would be "=A1+A2"
That's not something wpDataTables can do.
You can add calculation functions for column A, and have the SUM displayed in the footer, but that's about it. Using Formula Columns would allow you to combine row values of columns A and B, but not what you wish to accomplish.
As the Google Spreadsheet file gets bigger, the loading times can increase to 10 - 15 minutes, since there's cache on Google's side.
Do you know if there is any plan from TMS Plugins to provide a more "excel -like" behaviour for the cells (i.e. possibility to use some Formula Cells) ?
Do you have any examples of code which could help me ? (i.e. reading cells, calculating and inserting in a cell)
I don't believe we'll ever achieve the complexity of Excel formulas, but the plugin is constantly under development, so it may evolve in that direction at some time in the future.
Unfortunately, there are is no code that would help you out here, but you can only use the Formula Columns.
Hi
Suppose I have a simple table created with WPDataTables with 2 lines (1 and 2) , 2 colums (A and B)
Column A is filled with the following data
(A,1) = 5 (A,2) = 7
For Column B , line 1: I want to add dynamically the sum : (A,1) + (B,1)
In my example it will be 12
How do I do that with a simple code in PHP ? Or Jquery ?
Thanks for your help
Hi again
Further to my previous post I'd like to precise :
1) creating a table updated from google sheet could be a solution , but the updated time is at least 3 minutes (from my assessment) and this does not meet my needs.
2) Using a formila column is not a solution as my calculation is not based on single row values but on multiple rows values distributed in one colum.
Best regards
Yves
Hello Yves
Thank you for your purchase.
I am sorry to disappoint you, but unfortunately something like this is not possible with the plugin's built-in features.
If I'm not mistaken, this is what you want to achieve, correct?
So, B1 would be "=A1+A2"
That's not something wpDataTables can do.
You can add calculation functions for column A, and have the SUM displayed in the footer, but that's about it. Using Formula Columns would allow you to combine row values of columns A and B, but not what you wish to accomplish.
As the Google Spreadsheet file gets bigger, the loading times can increase to 10 - 15 minutes, since there's cache on Google's side.
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
Hi Aleksandar
Thank you for your clear and detailed answer.
Do you know if there is any plan from TMS Plugins to provide a more "excel -like" behaviour for the cells (i.e. possibility to use some Formula Cells) ?
Do you have any examples of code which could help me ? (i.e. reading cells, calculating and inserting in a cell)
Best regards
Yves
Hello Yves
I don't believe we'll ever achieve the complexity of Excel formulas, but the plugin is constantly under development, so it may evolve in that direction at some time in the future.
Unfortunately, there are is no code that would help you out here, but you can only use the Formula Columns.
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