Comments on: JQuery for Everyone: Total Calculated Columns http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-calculated-columns/ Follow me on Twitter: @eusp Tue, 22 Sep 2009 05:06:31 -0700 http://wordpress.org/?v=2.8.4 hourly 1 By: EndUserSharePoint.com: Top 10 Commented Posts | End User SharePoint http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-calculated-columns/comment-page-1/#comment-16173 EndUserSharePoint.com: Top 10 Commented Posts | End User SharePoint Wed, 19 Aug 2009 09:00:57 +0000 http://www.endusersharepoint.com/?p=1106#comment-16173 [...] JQuery for Everyone: Total Calculated Columns (49) [...] [...] JQuery for Everyone: Total Calculated Columns (49) [...]

]]>
By: Ken http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-calculated-columns/comment-page-1/#comment-15747 Ken Thu, 06 Aug 2009 22:53:49 +0000 http://www.endusersharepoint.com/?p=1106#comment-15747 Works perfectly, thanks so much Works perfectly, thanks so much

]]>
By: Chris http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-calculated-columns/comment-page-1/#comment-15730 Chris Thu, 06 Aug 2009 17:46:59 +0000 http://www.endusersharepoint.com/?p=1106#comment-15730 This worked great! Thank You This worked great!
Thank You

]]>
By: AutoSponge http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-calculated-columns/comment-page-1/#comment-15388 AutoSponge Tue, 28 Jul 2009 12:20:21 +0000 http://www.endusersharepoint.com/?p=1106#comment-15388 @Ken, Check out the next article in the series: http://www.endusersharepoint.com/?p=1134 @Ken,

Check out the next article in the series: http://www.endusersharepoint.com/?p=1134

]]>
By: Ken http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-calculated-columns/comment-page-1/#comment-15356 Ken Mon, 27 Jul 2009 16:36:19 +0000 http://www.endusersharepoint.com/?p=1106#comment-15356 Any way to perform a similar action but add up a total of hours and minutes? Any way to perform a similar action but add up a total of hours and minutes?

]]>
By: AutoSponge http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-calculated-columns/comment-page-1/#comment-15323 AutoSponge Sun, 26 Jul 2009 22:13:55 +0000 http://www.endusersharepoint.com/?p=1106#comment-15323 @Simon, The JavaScript method for controlling precision is toFixed. Google that and you should be on your way. Check your arrays (use console.log or send them to global variables you can check from the console). If you're getting the wrong column's values, I have some new techniques for this using cellIndex I can share. @Simon,

The JavaScript method for controlling precision is toFixed. Google that and you should be on your way.

Check your arrays (use console.log or send them to global variables you can check from the console). If you’re getting the wrong column’s values, I have some new techniques for this using cellIndex I can share.

]]>
By: Simon Hudson http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-calculated-columns/comment-page-1/#comment-15309 Simon Hudson Sun, 26 Jul 2009 09:53:19 +0000 http://www.endusersharepoint.com/?p=1106#comment-15309 Addendum to the above, you should also replace the second and thirds $ symbols in this line (replaced to £ here): if ($(e).text().indexOf("£") >= 0) { m = "£" }; Now, if someone can advsie how to set the number of decimal places (I want none)... Addendum to the above, you should also replace the second and thirds $ symbols in this line (replaced to £ here):
if ($(e).text().indexOf(”£”) >= 0) { m = “£” };

Now, if someone can advsie how to set the number of decimal places (I want none)…

]]>
By: Simon Hudson http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-calculated-columns/comment-page-1/#comment-15308 Simon Hudson Sun, 26 Jul 2009 09:44:40 +0000 http://www.endusersharepoint.com/?p=1106#comment-15308 I also got the NaN error at first. I figured that all the examples use US dollars and reviewing teh code I spotted that the currency symbol is coded into the expression parser (and don't even get me started on the prevalent US assumption that it is the only country on the planet that uses computers). Changing the line to replace the second $ with the currency symbol you use should get the right total to show up, though I haven't quite worked ouut how to put a suitable currency symbol back in: x += Number($(e).text().replace(/$|,|\)/g, "").replace(/\(/g,"-")); It would be even better if the code looked at the number format, extracted the symbol and replaced it automatically rathher than havinng to alter the code according to the currency, but that's beyond my skill level. I also got the NaN error at first. I figured that all the examples use US dollars and reviewing teh code I spotted that the currency symbol is coded into the expression parser (and don’t even get me started on the prevalent US assumption that it is the only country on the planet that uses computers).

Changing the line to replace the second $ with the currency symbol you use should get the right total to show up, though I haven’t quite worked ouut how to put a suitable currency symbol back in:

x += Number($(e).text().replace(/$|,|\)/g, “”).replace(/\(/g,”-”));

It would be even better if the code looked at the number format, extracted the symbol and replaced it automatically rathher than havinng to alter the code according to the currency, but that’s beyond my skill level.

]]>
By: Arlo http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-calculated-columns/comment-page-1/#comment-15064 Arlo Tue, 21 Jul 2009 14:48:10 +0000 http://www.endusersharepoint.com/?p=1106#comment-15064 Thanks for this great post. I'm trying to calculate an Average like Amanda and Richard were; however, when I use the "x = x/arrayList.length;" line in the grouping script, the value returned is not accurate. The value of the calculated average it displays is smaller than the value of any of the individual items, so it appears that the value of arrayList.length is too large by several items (i.e. dividing the sum by 12 when there are only 5 items in the array. Thanks for this great post. I’m trying to calculate an Average like Amanda and Richard were; however, when I use the “x = x/arrayList.length;” line in the grouping script, the value returned is not accurate. The value of the calculated average it displays is smaller than the value of any of the individual items, so it appears that the value of arrayList.length is too large by several items (i.e. dividing the sum by 12 when there are only 5 items in the array.

]]>
By: Chuka Arinze http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-calculated-columns/comment-page-1/#comment-14858 Chuka Arinze Fri, 17 Jul 2009 15:23:53 +0000 http://www.endusersharepoint.com/?p=1106#comment-14858 DO you have the script to get the Average of Calculated Columns? Thanks and best regards DO you have the script to get the Average of Calculated Columns?

Thanks and best regards

]]>