I have a table with some calculated values in a column. It a simple math equation:
I’m displaying the results of {{Unit Price * Units)}} in a cell in every row.
I saw the video where you can sum dynamic values in a table and that works great
But is there a way I can sum all of my calculated fields in that table? Unlike the video, the values I want to sum are calculated in each row So like this:
Row1 cell {{UnitpriceUnits}}
Row2 cell {{UnitpriceUnits}}
Row3 cell {{Unitprice*units}}
I do not know of a real Wappler way of doing this, so I will suggest what I would do which is to keep track of the grand total using a session or cookie variable. See https://www.dmxzone.com/go/32875/working-with-sessions/
Thank you for explanation. But I follow you until point 3.
I make the variable
I make calculation for each row
How can I sum all the results? That s I don t understand
Thanks @s.alpaslan and @updates. I will try these out this morning! @ben I don’t know if the session variable will work in this case, but you just gave me some ideas about using it. I forgot all about it.
@s.alpaslan The second example you showed works perfectly. I don’t know how you thought of doing it that way, but thank you for the help. Coming from classic asp client side development is my weakness, but I’m learning more and more everyday.