Sum a column from a related-item list - Change event
Posted: 25 Apr 2018
I have a related-item grid view on a form and I'm using populateFieldsInGrid. This works well. I'm using the $('.related-items').change(function(){} to parse through the rows and sum a field (KM's).
The Problem is that the comments (text) field seems to kick off the change before I can fill in the numeric (KM) field I'm trying to sum. The order I place the numeric field seems to make no difference. Thus, the sum is always off as it doesn't include the last entry.
What are your thoughts? Thanks in advance.
The Problem is that the comments (text) field seems to kick off the change before I can fill in the numeric (KM) field I'm trying to sum. The order I place the numeric field seems to make no difference. Thus, the sum is always off as it doesn't include the last entry.
What are your thoughts? Thanks in advance.