Sum a column from a related-item list - Change event
-
- Posts: 11
- Joined: Tue Jun 10, 2014
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.
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear bnunweiler,
If nothing works, you can always use a button for calculation, although it obviously is not as user-friendly, but very reliable. I am not sure as to why the change event doesn't fire after adding the sum. Can you send us a video of what goes on? Or maybe a few screenshots with explanation of what goes on and what you want to happen instead.
If nothing works, you can always use a button for calculation, although it obviously is not as user-friendly, but very reliable. I am not sure as to why the change event doesn't fire after adding the sum. Can you send us a video of what goes on? Or maybe a few screenshots with explanation of what goes on and what you want to happen instead.
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 10 guests