Forum Post: Looping through records to sum field

  • Thread starter Thread starter philperrin
  • Start date Start date
Status
Not open for further replies.
P

philperrin

Guest
Hello, I'm looking for assistance to sum the values within a field on an object, and output that sum in a new field on that object. In particular I'm trying to only sum the values inclusive of the current record and those 'below' the current record. For example, I have a view that sequences the records 1-n, and would like the values of the field 'order' summed, such that in record one my sum field contains a sum of orders 1-n, record 2 has a sum of 2-n, record 3 has a sum of 3-n, etc. I've looked through the Rollbase In Action document and have been trying to loop an array via javascript, but no such luck. Any advice? Thanks, Philip

Continue reading...
 
Status
Not open for further replies.
Back
Top