Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is this a correct way to format totalls:
<frx:fields>
...
<frx:field id="=sum(*/total_weight_deliv)" format="number" format-string="9 999.99"/>
</frx:fields>
...
<tfoot>
<tr>
...
<td style="text-align: right;">{=sum(*/total_weight_deliv)}</td>
</tr>
</tfoot>
...
It is working for me.
Will it not cause some duplicate computing resource use?
Comments
Comment #2
metzlerd CreditAttribution: metzlerd commentedNo it will not do the calculation twice, and this is perfectly legal. The formatting is matching based on ID, which is the token Technically you could create a separate calc field if you wanted, but this will suffice.
Comment #3
janeks CreditAttribution: janeks as a volunteer commentedHm, how to create "separate calc" field?
Comment #4
metzlerd CreditAttribution: metzlerd commentedFor advanced users ---- The really amazing thing is that expressions can contain token replaced fields AND you and use context= attribute to make the xpath expression run against other data blocks.