sum in the outro

Status
Not open for further replies.

susannanam

Member
hi all,

i am having a list like:

blablabla 5
blablable 13
asdfasdf 4


i would like to have a total line at the end like:

blablabla 5
blablable 13
asdfasdf 4

total 22

how could i achieve that easily? i was hoping i can somehow build a sum in the outro but did not yet succeed... any hints are appreciated :) thanks.

susanne
 
Edit your element you want to sum.
In List view settings/Calulations enable "Sum", set label and access level.
 
Emm..., group?
So this is not a list but a form/details view? And you want to sum different elements inside one record?
Add a calculation element (label "total") to your form, with code e.g.
Code:
$sum = (int)'{your-element-blablabla}' + (int)'{your-element-blablable}' + (int)'{your-element-asdfasdf}';
return $sum;
 
Emm..., group?
So this is not a list but a form/details view? And you want to sum different elements inside one record?
Add a calculation element (label "total") to your form, with code e.g.
Code:
$sum = (int)'{your-element-blablabla}' + (int)'{your-element-blablable}' + (int)'{your-element-asdfasdf}';
return $sum;

thank you troester, i have it working now :)
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top