问题
I'm using the Synesty SpreadsheetMapper tool, I want to get the total of the children column from the field "PackageWeight" and show it in the parent column field.
This code only shows the listed numbers from the children datastore.
<#if (row.children()?? && row.children()?size > 0)>
<#list row.children() as c>
${c.get('PackageWeight')!},
</#list>
</#if>
How can I sum the listed numbers? Here is the example https://prnt.sc/r3y223
来源:https://stackoverflow.com/questions/60277275/how-to-calculate-the-listed-numbers-from-the-child-datastore