Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Skipping one row in calculating row-sum and sum concatenation #873
I'm making a table dynamically with JSON.
I am making two sums in this table:
The strange thing happening can be seen in the screenshot attached.
What happens is that the row sum is skipping the 3rd column (with header <0 days), as you can see in the row for SAP and IBM. I did not do anything special with this column (I didn't put an ignore on it for example).
Then the second issue is that the col-sum is concatenating the values instead of mathematically adding them together. If I search in the table, it will update to the right value (32000) though.
Thanks in advance for your help.
The first issue looks like it's with the
math_mask : '0'
The second issue looks like a bug in the code. When it encounters the IBM row, second column and there isn't a defined
Here is a working demo (using the updated widget-math.js file from the master branch of this repo; rawgit might take a while to update).
added a commit
Apr 16, 2015
As a workaroud, I calculated the row totals in the back end in Java. It's working fine now.
I am not familiar with issues in github, as this is the first one I ever reported.
Thanks very much for your feedback. Next time I will provide my code in jsFiddle and try to be more clear :)