AnsweredAssumed Answered

create total in bottom of list field with custom field

Question asked by Agas Maha Astra on Mar 8, 2015
Latest reply on Mar 8, 2015 by Agas Maha Astra
i have a problem, i have create the calculated total in bottom of list view, but why the result is zero? if i use the non-custom field such as amount_usdollar , the result is appear.
this is the code of my total 
public function sumTotalFromEachRow($bean, $event, $arguments)
        self::$sum += $bean->biaya_bulanan_c;

any wrong with my code?

and i want to create a total field, same as the total on bottom of lisr view, but i want if i use the search module, the result is same as the search result, not all data in database.

how i can modify that? thankyou