Calculation field: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 65: Line 65:
#{link field name.child field name}
#{link field name.child field name}
</source>
</source>
where '''''link field name''''' is the name of a Link to Entry or similar field, ''child field name'' is the name of a field of a related entry.
where '''''link field name''''' is the name of a Link to Entry or similar field, '''''child field name''''' is the name of a field of a related entry.


If a link field contains several links, then use an index (starting from zero) to get access to them:
If a link field contains several links, then use an index (starting from zero) to get access to them:
Line 79: Line 79:
</source>
</source>


This expression returns the sum of values of field '''child field name''' for all entries included into '''link field name'''. In addition, the following functions are supported: '''avg''', '''min''', '''max'''.
This expression returns the sum of values of field '''child field name''' for all entries included into '''link field name'''. The functions supported are: '''sum''', '''avg''', '''min''', and '''max'''.


Use the following syntax to get the number of entries in the library referenced by '''link field name''':
Use the following syntax to get the number of entries in the library referenced by '''link field name''':

Navigation menu