Hi al,
I need to create a dynamic table in which I want to group the data based on the value of a field and in a cell I want to insert the sum of the grouped values like the example below which is grouped based on the product code
Product code
Description
Color
Price
123
abc
red
100
123
abc
blue
150
Total
250
456
qwert
green
410
456
qwewet
red
120
Total
530
Can I create it with the tools available or do I have to create the table using JavaScript?
You could achieve that by grouping the data using nested details as shown below.
The following HTML takes care of the repeats the nested level first (details.lines) and subsequently shows a row for the group (details level). The data-sum attribute is used to summarize the price of the details.lines.price field for that group.