<!-- move these styles into a global definition -->

<style>
.hint {
	color: #ccc;
}

.sparkInput {
	font-size: 12px;
	padding: 5px;
	color: #222222;
	width: 500px;
	font-family: "Lucida Grande",verdana,arial,helvetica,sans-serif;
}

.sparkTextarea {
	width: 500px;
	height: 250px;
	font-size: 14px;
	padding: 3px;
	color: #222222;
	font-family: "Lucida Grande",verdana,arial,helvetica,sans-serif;
}

.sparkButton {
	font-size: 12px;
	padding: 5px;
	color: #222222;
	font-family: "Lucida Grande",verdana,arial,helvetica,sans-serif;
}

.required {
	color: red;
}

</style>

<script>
function toggleEndDate()
{
	if(	document.getElementById('endDateRow').style.display == 'none')
		document.getElementById('endDateRow').style.display = 'block';
	else
		document.getElementById('endDateRow').style.display = 'none';
}

function showNewVenue()
{
	document.getElementById('newVenue').style.display = 'block';
	document.getElementById('venueList').style.display = 'none';
	
}

function showNewLocation()
{
	document.getElementById('event_location_dropdown').style.display = 'none';
	document.getElementById('event_location_new').style.display = 'block';
	
}

</script>


<style>
	.sparkInput {
		width: 250px;
	}

</style>

<script>

function showNewLocation()
{
	document.getElementById('venue_location_dropdown').style.display = 'none';
	document.getElementById('venue_location_new').style.display = 'block';
	
}

</script>

<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Salesforce Rollup Summary Fields using Apex Code</title>
	<atom:link href="http://colinloretz.com/2008/10/salesforce-rollup-summary-fields-using-apex-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://colinloretz.com/2008/10/salesforce-rollup-summary-fields-using-apex-code/</link>
	<description>Technology &#38; Life Hacking</description>
	<lastBuildDate>Tue, 06 Jul 2010 22:12:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: onurK</title>
		<link>http://colinloretz.com/2008/10/salesforce-rollup-summary-fields-using-apex-code/comment-page-1/#comment-724</link>
		<dc:creator>onurK</dc:creator>
		<pubDate>Mon, 05 Apr 2010 16:28:39 +0000</pubDate>
		<guid isPermaLink="false">http://colinloretz.com/?p=76#comment-724</guid>
		<description>I guess this code is not working after salesforce update, does anyone can simply provide a sample trigger with test please?
Thank you in advance</description>
		<content:encoded><![CDATA[<p>I guess this code is not working after salesforce update, does anyone can simply provide a sample trigger with test please?<br />
Thank you in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean C.</title>
		<link>http://colinloretz.com/2008/10/salesforce-rollup-summary-fields-using-apex-code/comment-page-1/#comment-681</link>
		<dc:creator>Sean C.</dc:creator>
		<pubDate>Sun, 28 Feb 2010 01:56:42 +0000</pubDate>
		<guid isPermaLink="false">http://colinloretz.com/?p=76#comment-681</guid>
		<description>Thanks for posting your code! Being new to APEX this provided a great example.  Did you ever get around to writing the Test Unit code for this by chance?  I was able to take your example code and get it working for our objects, but unfortunately not skilled enough in APEX yet to write my own test units.</description>
		<content:encoded><![CDATA[<p>Thanks for posting your code! Being new to APEX this provided a great example.  Did you ever get around to writing the Test Unit code for this by chance?  I was able to take your example code and get it working for our objects, but unfortunately not skilled enough in APEX yet to write my own test units.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gfuller</title>
		<link>http://colinloretz.com/2008/10/salesforce-rollup-summary-fields-using-apex-code/comment-page-1/#comment-676</link>
		<dc:creator>gfuller</dc:creator>
		<pubDate>Sun, 21 Feb 2010 23:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://colinloretz.com/?p=76#comment-676</guid>
		<description>I&#039;ve been trying to implement this but have been having problems with the cleaner version.  I keep getting map errors : Unexpected token at line 2.  I am very new to triggers and I am sure that if I were more familar with them I could probably figure this out.  The first few lines of the clean code is this:
trigger rollupHoursToTimesheet on Time_Entry__c (after insert, after update, after delete) {
if(Trigger.isAfter){
Double sumTotalHours = 0;
Map TimeSheetsToUpdate = new Map();
Set TimeSheetsIDs = new Set();

//************************************************
//Code for updating existing records and new records
//************************************************</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying to implement this but have been having problems with the cleaner version.  I keep getting map errors : Unexpected token at line 2.  I am very new to triggers and I am sure that if I were more familar with them I could probably figure this out.  The first few lines of the clean code is this:<br />
trigger rollupHoursToTimesheet on Time_Entry__c (after insert, after update, after delete) {<br />
if(Trigger.isAfter){<br />
Double sumTotalHours = 0;<br />
Map TimeSheetsToUpdate = new Map();<br />
Set TimeSheetsIDs = new Set();</p>
<p>//************************************************<br />
//Code for updating existing records and new records<br />
//************************************************</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://colinloretz.com/2008/10/salesforce-rollup-summary-fields-using-apex-code/comment-page-1/#comment-496</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 16 Oct 2009 01:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://colinloretz.com/?p=76#comment-496</guid>
		<description>The 2 place decimal doesn&#039;t act as minutes though. This would be useful

if you entry 0.90 as one of the hours would be converted to 1.30</description>
		<content:encoded><![CDATA[<p>The 2 place decimal doesn&#8217;t act as minutes though. This would be useful</p>
<p>if you entry 0.90 as one of the hours would be converted to 1.30</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bcolmer</title>
		<link>http://colinloretz.com/2008/10/salesforce-rollup-summary-fields-using-apex-code/comment-page-1/#comment-455</link>
		<dc:creator>bcolmer</dc:creator>
		<pubDate>Thu, 23 Jul 2009 00:07:23 +0000</pubDate>
		<guid isPermaLink="false">http://colinloretz.com/?p=76#comment-455</guid>
		<description>Yes, please post soon!! I need this!</description>
		<content:encoded><![CDATA[<p>Yes, please post soon!! I need this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Loretz</title>
		<link>http://colinloretz.com/2008/10/salesforce-rollup-summary-fields-using-apex-code/comment-page-1/#comment-454</link>
		<dc:creator>Colin Loretz</dc:creator>
		<pubDate>Tue, 21 Jul 2009 18:48:08 +0000</pubDate>
		<guid isPermaLink="false">http://colinloretz.com/?p=76#comment-454</guid>
		<description>@CK - I plan to revisit this at some point very soon and incorporate some better bulk processing and hopefully that will include posting the test code. However, for now you will have to run it on a developer org :D</description>
		<content:encoded><![CDATA[<p>@CK &#8211; I plan to revisit this at some point very soon and incorporate some better bulk processing and hopefully that will include posting the test code. However, for now you will have to run it on a developer org :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CK</title>
		<link>http://colinloretz.com/2008/10/salesforce-rollup-summary-fields-using-apex-code/comment-page-1/#comment-453</link>
		<dc:creator>CK</dc:creator>
		<pubDate>Tue, 21 Jul 2009 18:18:31 +0000</pubDate>
		<guid isPermaLink="false">http://colinloretz.com/?p=76#comment-453</guid>
		<description>This looks very useful... I will test it....

When can we have the test code? :)

Thanks.</description>
		<content:encoded><![CDATA[<p>This looks very useful&#8230; I will test it&#8230;.</p>
<p>When can we have the test code? :)</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Isaac</title>
		<link>http://colinloretz.com/2008/10/salesforce-rollup-summary-fields-using-apex-code/comment-page-1/#comment-452</link>
		<dc:creator>Isaac</dc:creator>
		<pubDate>Tue, 21 Jul 2009 17:38:40 +0000</pubDate>
		<guid isPermaLink="false">http://colinloretz.com/?p=76#comment-452</guid>
		<description>Colin, you are a stud.  Thanks so much for publishing this!</description>
		<content:encoded><![CDATA[<p>Colin, you are a stud.  Thanks so much for publishing this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://colinloretz.com/2008/10/salesforce-rollup-summary-fields-using-apex-code/comment-page-1/#comment-426</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 11 Jun 2009 16:13:25 +0000</pubDate>
		<guid isPermaLink="false">http://colinloretz.com/?p=76#comment-426</guid>
		<description>To those that utilised this code....

I&#039;m completely new to Apex and this functionality is exactly what I&#039;m looking for.

I&#039;ve completed all the above steps, taking on board the comments and I have the trigger sat in Eclipse ready to deploy.

However, the Deploy wizard tells me the trigger needs to be tested.

I&#039;m wondering if anyone can provide me with a class they used to test this trigger?

Thanks,
James</description>
		<content:encoded><![CDATA[<p>To those that utilised this code&#8230;.</p>
<p>I&#8217;m completely new to Apex and this functionality is exactly what I&#8217;m looking for.</p>
<p>I&#8217;ve completed all the above steps, taking on board the comments and I have the trigger sat in Eclipse ready to deploy.</p>
<p>However, the Deploy wizard tells me the trigger needs to be tested.</p>
<p>I&#8217;m wondering if anyone can provide me with a class they used to test this trigger?</p>
<p>Thanks,<br />
James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ali the turk</title>
		<link>http://colinloretz.com/2008/10/salesforce-rollup-summary-fields-using-apex-code/comment-page-1/#comment-294</link>
		<dc:creator>ali the turk</dc:creator>
		<pubDate>Wed, 04 Mar 2009 16:15:34 +0000</pubDate>
		<guid isPermaLink="false">http://colinloretz.com/?p=76#comment-294</guid>
		<description>thanks for the clean and clear code.  Helpful to learn with and provides a solid solution to rollup summary not being available for certain object relationships.</description>
		<content:encoded><![CDATA[<p>thanks for the clean and clear code.  Helpful to learn with and provides a solid solution to rollup summary not being available for certain object relationships.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
