How to calculate the listed numbers from the child datastore?

*爱你&永不变心* 提交于 2020-03-06 10:58:46

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!