Comments on: JQuery for Everyone: Total of Time Differences http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-of-time-differences/ No GeekSpeak on SharePoint 2007 WSS and MOSS Mon, 27 Dec 2010 14:28:49 -0500 http://wordpress.org/?v=2.8.6 hourly 1 By: sb http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-of-time-differences/comment-page-1/#comment-78484 sb Wed, 30 Jun 2010 10:02:56 +0000 http://www.endusersharepoint.com/?p=1134#comment-78484 How to get this work with DVWP?? How to get this work with DVWP??

]]>
By: Eoin http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-of-time-differences/comment-page-1/#comment-15775 Eoin Fri, 07 Aug 2009 14:59:47 +0000 http://www.endusersharepoint.com/?p=1134#comment-15775 Hi, Just stumbled across this excelent post, I would like to return the average time difference as opposed to the total as demonstrated in http://www.endusersharepoint.com/?p=1106 is this easy to do? Thanks Eoin Hi,

Just stumbled across this excelent post, I would like to return the average time difference as opposed to the total as demonstrated in http://www.endusersharepoint.com/?p=1106 is this easy to do?
Thanks
Eoin

]]>
By: Ken http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-of-time-differences/comment-page-1/#comment-15392 Ken Tue, 28 Jul 2009 14:28:50 +0000 http://www.endusersharepoint.com/?p=1134#comment-15392 Also I notice that if you set the "Group By" option: By default, show groupings: Expanded You will no longer have the total, you must use "Collapsed" I think because the total comes from the rendering of "expanding" the group, correct? Also I notice that if you set the “Group By” option:

By default, show groupings: Expanded

You will no longer have the total, you must use “Collapsed” I think because the total comes from the rendering of “expanding” the group, correct?

]]>
By: Ken http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-of-time-differences/comment-page-1/#comment-15391 Ken Tue, 28 Jul 2009 13:55:40 +0000 http://www.endusersharepoint.com/?p=1134#comment-15391 For a start and end difference, I used the following formula: =TEXT([Outage End]-[Outage Start],"h:mm") Seems to be working just fine if difference is under 24 hours. For a start and end difference, I used the following formula:

=TEXT([Outage End]-[Outage Start],”h:mm”)

Seems to be working just fine if difference is under 24 hours.

]]>
By: Martin Edelius http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-of-time-differences/comment-page-1/#comment-13142 Martin Edelius Tue, 26 May 2009 19:16:36 +0000 http://www.endusersharepoint.com/?p=1134#comment-13142 I have no problems using the OWS API. I'll take a look at it asap. Thanks for the help and all the great scripts. :) I have no problems using the OWS API. I’ll take a look at it asap.

Thanks for the help and all the great scripts. :)

]]>
By: AutoSponge http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-of-time-differences/comment-page-1/#comment-13140 AutoSponge Tue, 26 May 2009 18:42:32 +0000 http://www.endusersharepoint.com/?p=1134#comment-13140 The more complicated this gets, the more likely you're not going to be satisfied until you use something like my owsapi (http://owsapi.codeplex.com/) or a web service to fetch the data (or a custom web part). Remember, this script only sees what was rendered to the page. Stuff in initially collapsed groups has not been rendered yet. The more complicated this gets, the more likely you’re not going to be satisfied until you use something like my owsapi (http://owsapi.codeplex.com/) or a web service to fetch the data (or a custom web part).

Remember, this script only sees what was rendered to the page. Stuff in initially collapsed groups has not been rendered yet.

]]>
By: Martin Edelius http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-of-time-differences/comment-page-1/#comment-13135 Martin Edelius Tue, 26 May 2009 16:24:21 +0000 http://www.endusersharepoint.com/?p=1134#comment-13135 I forgot one thing. If we just use the "count" row as an placeholder for our calculation, shouldn't we be able to hide the "count" text and just keep the "totals" text? I took a quick look at your code but I'm not familiar with neither jQuery nor SharePoint code in order to figure out how to do it. I forgot one thing.

If we just use the “count” row as an placeholder for our calculation, shouldn’t we be able to hide the “count” text and just keep the “totals” text?

I took a quick look at your code but I’m not familiar with neither jQuery nor SharePoint code in order to figure out how to do it.

]]>
By: Martin Edelius http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-of-time-differences/comment-page-1/#comment-13133 Martin Edelius Tue, 26 May 2009 16:10:26 +0000 http://www.endusersharepoint.com/?p=1134#comment-13133 @Paul. Thanks a lot, it works as intended now. Would it be possible to: a. Add the totals for a two level nested grouping, for each grouping? b. Add the totals for the entire view? The reason I want to calculate for two levels is that I first group on the month of the start time for the list object and I then group on the actual project. We need to present both the total amount of hours for each project and also for the entire month. I would also like to calculate all the hours spent for this customer no matter month or project(the entire view). @Paul.

Thanks a lot, it works as intended now.

Would it be possible to:

a. Add the totals for a two level nested grouping, for each grouping?
b. Add the totals for the entire view?

The reason I want to calculate for two levels is that I first group on the month of the start time for the list object and I then group on the actual project.

We need to present both the total amount of hours for each project and also for the entire month.

I would also like to calculate all the hours spent for this customer no matter month or project(the entire view).

]]>
By: AutoSponge http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-of-time-differences/comment-page-1/#comment-13119 AutoSponge Tue, 26 May 2009 12:20:51 +0000 http://www.endusersharepoint.com/?p=1134#comment-13119 @Martin, groupName comes from the JavaScript. SP passes a parameter called groupName, I use the same parameter in my script. If your column did not calculate, chances are you have the col variable set to the wrong column or the column is not a time or time/date field. You also need to have something else in the list counted or summed (using standard oob view features) to provide the aggregation row where we place the time sum. @Martin,

groupName comes from the JavaScript. SP passes a parameter called groupName, I use the same parameter in my script.

If your column did not calculate, chances are you have the col variable set to the wrong column or the column is not a time or time/date field.

You also need to have something else in the list counted or summed (using standard oob view features) to provide the aggregation row where we place the time sum.

]]>
By: Martin Edeliusd http://www.endusersharepoint.com/2009/01/06/jquery-for-everyone-total-of-time-differences/comment-page-1/#comment-13116 Martin Edeliusd Tue, 26 May 2009 10:33:08 +0000 http://www.endusersharepoint.com/?p=1134#comment-13116 Paul, there is no such thing as "groupName" in my HTML when looking at the source code of a grouped list. When adding your script the groups expand so i guess it does something but the column does not get calculated properly (no result at all) and I assume that this is due to the missing property. Any ideas? Paul,

there is no such thing as “groupName” in my HTML when looking at the source code of a grouped list.

When adding your script the groups expand so i guess it does something but the column does not get calculated properly (no result at all) and I assume that this is due to the missing property.

Any ideas?

]]>