I have a table (Leave_Hours_Table) where employees can specify all leave taken (vacation, sick leave...). I would like to take all of the rows in that table where Leave_Type = Vacation and put the sum of the Hours for those rows in a single line field (Total_Vacation_Hours) outside of the table.
Can I do this using a field calculation or do I have to use JavaScript?