Is there any way of declaring a variable inside a Template?
For example, if I wanted to increment a running counter for records, it would be quite nice if I could do something like:
{{#var counter}}
...
{{counter++}}
Likewise, if I wanted to sum up a number of fields (i.e. a weight field) and then display the total in the Template footer.
Can this be done in the Template (rather than in the Entity as a formula)?
For example, if I wanted to increment a running counter for records, it would be quite nice if I could do something like:
{{#var counter}}
...
{{counter++}}
Likewise, if I wanted to sum up a number of fields (i.e. a weight field) and then display the total in the Template footer.
Can this be done in the Template (rather than in the Entity as a formula)?
Comment