Calculation field: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 55: Line 55:
<source lang="java">#{field_name@sum.child_field_name}</source>  
<source lang="java">#{field_name@sum.child_field_name}</source>  
This expression returns the sum of values of field child_field_name for all entries included into field_name. In addition, the following functions are supported: avg, min, max.<br />
This expression returns the sum of values of field child_field_name for all entries included into field_name. In addition, the following functions are supported: avg, min, max.<br />
Returns the number of entries in field field_name:
Use the following syntax to get the number of entries in field field_name:
<syntaxhighlight inline lang="java">#{field_name@size}</syntaxhighlight>
<source lang="java">#{field_name@size}</source>