Calc Use Cases
Count the Items in a Collection List
Preparation;
Setup your Collection List
Create the element where you want the Collection List count to appear
Attributes;
Choose a unique name for the items you're counting, we'll use test1
for this example.
On the element that will display the count;
Add the
wfu-calc
=count
attributeAdd
wfu-calc-source
=test1
attribute
On the collection list;
Place
wfu-calc-field
=test1
directly on the Collection List Item element.
If you have more than 100 items to count, you can use multiple collection lists each ranged to show 100 items from your collection. Assign the same wfu-calc-field
= test1
to each and they will all be counted together.
Sum the Values within a Collection List
Preparation;
Setup your Collection List
Within the Collection List, place your element which contains the value you are wanting to sum
Create the element where you want the Collection List sum to appear
Attributes;
Choose a unique name for the items you're counting, we'll use test2
for this example.
On the element that will display the count;
Add the
wfu-calc
=sum
attributeAdd
wfu-calc-source
=test2
attribute
On the element within your collection list that contains the value to be summed;
Place
wfu-calc-field
=test2
directly on the Collection List Item element.
If you have more than 100 items to count, you can use multiple collection lists each ranged to show 100 items from your collection. Assign the same wfu-calc-field
= test2
to your data within each and they will all be counted together.
Last updated
Was this helpful?