<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bradley M. Law &#187; Tasks</title>
	<atom:link href="http://bradleymlaw.com/wp/tag/tasks/feed/" rel="self" type="application/rss+xml" />
	<link>http://bradleymlaw.com/wp</link>
	<description>Technology, CRM and Stuff. Thoughts within thoughts...within thoughts.</description>
	<lastBuildDate>Wed, 07 Sep 2011 11:40:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Default Task Values Using the OnLoad Event</title>
		<link>http://bradleymlaw.com/wp/2009/02/02/default-task-values-using-the-onload-event/</link>
		<comments>http://bradleymlaw.com/wp/2009/02/02/default-task-values-using-the-onload-event/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 15:26:48 +0000</pubDate>
		<dc:creator>bradlaw</dc:creator>
				<category><![CDATA[Default Values]]></category>
		<category><![CDATA[Dates]]></category>
		<category><![CDATA[Default]]></category>
		<category><![CDATA[Tasks]]></category>

		<guid isPermaLink="false">http://bradleymlaw.com/wp/?p=39</guid>
		<description><![CDATA[The default duration and due date are annoying in CRM, Sonoma Partners has provided some basic code to set the default duration to blank and the due to date to the current date and time stamp. This is opposed to the following image where the due date is blank and the duration is 30 minutes. [...]]]></description>
			<content:encoded><![CDATA[<p>The default duration and due date are annoying in CRM, <a href="http://www.sonomapartners.com/articles/microsoft-crm-version3-example-formonload.aspx">Sonoma Partners</a> has provided some basic code to set the default duration to blank and the due to date to the current date and time stamp. This is opposed to the following image where the due date is blank and the duration is 30 minutes.</p>
<p><img alt="" src="http://www.sonomapartners.com/images/screenshots/3/051023-formonloadexample-1.gif" title="Sonoma Partners Image 1" class="left" width="714" height="497" /></p>
<p><code>var CRM_FORM_TYPE_CREATE = 1;<br />
var CRM_FORM_TYPE_UPDATE = 2;</p>
<p>switch (crmForm.FormType)<br />
	{<br />
		case CRM_FORM_TYPE_CREATE:<br />
			crmForm.all.actualdurationminutes.DataValue = null;<br />
			crmForm.all.scheduledend.DataValue = new Date();<br />
			break;</p>
<p>		case CRM_FORM_TYPE_UPDATE:<br />
			// do nothing<br />
			break;<br />
	}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://bradleymlaw.com/wp/2009/02/02/default-task-values-using-the-onload-event/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

