<?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</title>
	<atom:link href="http://bradleymlaw.com/wp/feed/" rel="self" type="application/rss+xml" />
	<link>http://bradleymlaw.com/wp</link>
	<description>Technology, CRM and Stuff.</description>
	<lastBuildDate>Mon, 16 Aug 2010 13:59:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Setting the Default Date of a form to the current date with Record Creation</title>
		<link>http://bradleymlaw.com/wp/2010/08/16/392/</link>
		<comments>http://bradleymlaw.com/wp/2010/08/16/392/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 13:57:03 +0000</pubDate>
		<dc:creator>bradlaw</dc:creator>
				<category><![CDATA[CRM 4.0]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://bradleymlaw.com/wp/?p=392</guid>
		<description><![CDATA[THis script will set the default date of a form, this script is important because it sets the default date only for the Create form and not the update form. Otherwise the onload event will always set the date to the current date, even if its been updated. Credit to Sonomoa Partners. var CRM_FORM_TYPE_CREATE = [...]]]></description>
			<content:encoded><![CDATA[<p>THis script will set the default date of a form, this script is important because it sets the default date only for the Create form and not the update form. Otherwise the onload event will always set the date to the current date, even if its been updated. Credit to <a href="http://www.sonomapartners.com/Services/CRM/microsoftcrm4-formonload-example.aspx">Sonomoa Partners</a>.</p>
<pre class="brush: php;">
var CRM_FORM_TYPE_CREATE = 1;
var CRM_FORM_TYPE_UPDATE = 2;
switch (crmForm.FormType)
	{
	case CRM_FORM_TYPE_CREATE:
	crmForm.all.new_openddate.DataValue = new Date();
	break;

	case CRM_FORM_TYPE_UPDATE:
	// do nothing
	break;
	}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://bradleymlaw.com/wp/2010/08/16/392/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CRM &#8211; Making field required based on Lookup Value, NOT picklist&#8230;</title>
		<link>http://bradleymlaw.com/wp/2010/07/30/crm-making-field-required-based-on-lookup-value-not-picklist/</link>
		<comments>http://bradleymlaw.com/wp/2010/07/30/crm-making-field-required-based-on-lookup-value-not-picklist/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 15:30:02 +0000</pubDate>
		<dc:creator>bradlaw</dc:creator>
				<category><![CDATA[CRM 4.0]]></category>
		<category><![CDATA[Configuration]]></category>

		<guid isPermaLink="false">http://bradleymlaw.com/wp/?p=383</guid>
		<description><![CDATA[I posted this question to the CRM Forums here and got some good feedback from Rhett Clinton. if(crmForm.all.new_salesstageid.DataValue != null &#38;&#38; crmForm.all.new_salesstageid.DataValue[0].name != &#34;1&#34;) crmForm.SetFieldReqLevel(&#34;new_projectmanagerid&#34;, 1); else crmForm.SetFieldReqLevel(&#34;new_projectmanagerid&#34;, 0); And here is an example that works with multipe options if(crmForm.all.new_salesstageid.DataValue != null) { switch(crmForm.all.new_salesstageid.DataValue[0].name) { case &#34;1&#34;: case &#34;2&#34;: crmForm.SetFieldReqLevel(&#34;new_projectmanagerid&#34;, 1); break; default: crmForm.SetFieldReqLevel(&#34;new_projectmanagerid&#34;, 0); [...]]]></description>
			<content:encoded><![CDATA[<p>I posted this question to the CRM Forums <a href="http://social.microsoft.com/Forums/en-US/crmdevelopment/thread/26bc01b5-b170-41b1-a6eb-7e630a745002">here </a>and got some good feedback from Rhett Clinton.</p>
<pre class="brush: php;">
if(crmForm.all.new_salesstageid.DataValue != null &amp;&amp; crmForm.all.new_salesstageid.DataValue[0].name != &quot;1&quot;)
crmForm.SetFieldReqLevel(&quot;new_projectmanagerid&quot;, 1);

else

crmForm.SetFieldReqLevel(&quot;new_projectmanagerid&quot;, 0);
</pre>
<p>And here is an example that works with multipe options</p>
<pre class="brush: php;">
if(crmForm.all.new_salesstageid.DataValue != null) {

    switch(crmForm.all.new_salesstageid.DataValue[0].name) {
        case &quot;1&quot;:
        case &quot;2&quot;:
            crmForm.SetFieldReqLevel(&quot;new_projectmanagerid&quot;, 1);
            break;
        default:
             crmForm.SetFieldReqLevel(&quot;new_projectmanagerid&quot;, 0);
      break;
    }

}
else
{
    crmForm.SetFieldReqLevel(&quot;new_projectmanagerid&quot;, 0);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://bradleymlaw.com/wp/2010/07/30/crm-making-field-required-based-on-lookup-value-not-picklist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CRM Picklist Values for Report Paramaters</title>
		<link>http://bradleymlaw.com/wp/2010/07/24/crm-picklist-values-for-report-paramaters/</link>
		<comments>http://bradleymlaw.com/wp/2010/07/24/crm-picklist-values-for-report-paramaters/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 01:30:33 +0000</pubDate>
		<dc:creator>bradlaw</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bradleymlaw.com/wp/?p=376</guid>
		<description><![CDATA[Great way to pull report parameters by Customer Effective here.]]></description>
			<content:encoded><![CDATA[<p>Great way to pull report parameters by Customer Effective <a href="http://blog.customereffective.com/blog/2010/06/crm-picklist-values-for-your-report-parameter.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://bradleymlaw.com/wp/2010/07/24/crm-picklist-values-for-report-paramaters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting attribute description as a tooltip for a field in entities forms in Microsoft Dynamics CRM 4.0</title>
		<link>http://bradleymlaw.com/wp/2010/07/24/setting-attribute-description-as-a-tooltip-for-a-field-in-entities-forms-in-microsoft-dynamics-crm-4-0/</link>
		<comments>http://bradleymlaw.com/wp/2010/07/24/setting-attribute-description-as-a-tooltip-for-a-field-in-entities-forms-in-microsoft-dynamics-crm-4-0/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 01:09:50 +0000</pubDate>
		<dc:creator>bradlaw</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bradleymlaw.com/wp/?p=374</guid>
		<description><![CDATA[Great code I have not tried yet but I am certain I will need it by ANDRIY A33IK BUTENKO]]></description>
			<content:encoded><![CDATA[<p><a href="http://a33ik.blogspot.com/2010/01/setting-attribute-description-as.html">Great code</a> I have not tried yet but I am certain I will need it by ANDRIY A33IK BUTENKO</p>
]]></content:encoded>
			<wfw:commentRss>http://bradleymlaw.com/wp/2010/07/24/setting-attribute-description-as-a-tooltip-for-a-field-in-entities-forms-in-microsoft-dynamics-crm-4-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add IFRAME to a form, system and custom entities plus format IFRAME</title>
		<link>http://bradleymlaw.com/wp/2010/06/28/add-iframe-to-a-form-system-and-custom-entities-plus-format-iframe/</link>
		<comments>http://bradleymlaw.com/wp/2010/06/28/add-iframe-to-a-form-system-and-custom-entities-plus-format-iframe/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 02:33:16 +0000</pubDate>
		<dc:creator>bradlaw</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bradleymlaw.com/wp/?p=358</guid>
		<description><![CDATA[This is a great piece of code I put together by merging two sets of code. Basically the following creates an IFRAME and formats the IFRAME in a professional manner. // Builds a string for the source attribute of an IFrame // Credit is given to Michael Hohne and Andrew Zimmer for the following code. [...]]]></description>
			<content:encoded><![CDATA[<p>This is a great piece of code I put together by merging two sets of code. Basically the following creates an IFRAME and formats the IFRAME in a professional manner.</p>
<pre class="brush: php;">
// Builds a string for the source attribute of an IFrame
// Credit is given to Michael Hohne and Andrew Zimmer for the following code.  For additional information, please
// refer to his stunnware site: http://www.stunnware.com/crm2/topic.aspx?id=JS27
//for formatting the IFRAME: http://blogs.inetium.com/blogs/azimmer/archive/2010/01/14/crm-displaying-related-entity-in-iframe-slightly-improved.aspx

function GetFrameSource(tabSet, roleOrd) {

    if (crmForm.ObjectId != null) {

        var roleOrdParamMissing = (typeof(roleOrd) == &quot;undefined&quot;) || (roleOrd == null);

        var oId = crmForm.ObjectId;
        var oType = crmForm.ObjectTypeCode;
        var security = crmFormSubmit.crmFormSubmitSecurity.value;

        var url = &quot;areas.aspx?oId=&quot; + oId + &quot;&amp;oType=&quot; + oType + &quot;&amp;security=&quot; + security + &quot;&amp;tabSet=&quot; + tabSet;

        if (!roleOrdParamMissing) {
            url += &quot;&amp;roleOrd=&quot; + roleOrd;
        }

        return url;
    }

    else {
        return &quot;about:blank&quot;;
    }
}

 // Waits for the content window of the IFrame to be ready
  function FixStylingInFrameSource(iframeID) {
      // Check the content window's ready state
      if (document.getElementById(iframeID).contentWindow.document.readyState
!= &quot;complete&quot;) {
          // Re-run this function in 10 ticks
          window.setTimeout(function() { FixStylingInFrameSource(iframeID) }, 10);
      }
      // Content window is ready
      else {
          // Change the background color
          document.getElementById(iframeID).contentWindow.document.body.style.backgroundColor = &quot;#eef0f6&quot;;
          // Remove the left border
          document.getElementById(iframeID).contentWindow.document.body.all(0).style.borderLeftStyle = &quot;none&quot;;
          // Remove padding
          document.getElementById(iframeID).contentWindow.document.body.all(0).all(0).all(0).all(0).style.padding = &quot;0px&quot;;

          // Make the cell the full width of the IFRAME
         document.getElementById(iframeID).contentWindow.document.body.all(0).style.width = &quot;102%&quot;

          // Show the IFrame
          document.getElementById(iframeID).style.display = &quot;block&quot;;
      }
  }

crmForm.all.IFRAME_organizaton_programs.src = GetFrameSource(&quot;new_account_organizationswithprograms&quot;);

if(crmForm.FormType != 1)
{
FixStylingInFrameSource('IFRAME_organizaton_programs');
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://bradleymlaw.com/wp/2010/06/28/add-iframe-to-a-form-system-and-custom-entities-plus-format-iframe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CRM 4.0 Concatenate Lookup Fields or regular fields on Form</title>
		<link>http://bradleymlaw.com/wp/2010/06/28/crm-4-0-concatenate-lookup-fields-on-form/</link>
		<comments>http://bradleymlaw.com/wp/2010/06/28/crm-4-0-concatenate-lookup-fields-on-form/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 02:14:47 +0000</pubDate>
		<dc:creator>bradlaw</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bradleymlaw.com/wp/?p=353</guid>
		<description><![CDATA[Found a couple of solutions posted in the MS forums on this post, I had the best luck with the following: To start update new_OpportunityID and new_ContactID with your fields, this example concatenates the Opportunity ID and Contact ID lookup fields. var lookupItemOppID = new Array; lookupItemOppID = crmForm.all.new_OpportunityID.DataValue; var vOpportunityID= (lookupItemOppID[0] != null) ? [...]]]></description>
			<content:encoded><![CDATA[<p>Found a couple of solutions posted in the MS forums on <a href="http://social.microsoft.com/Forums/en/crm/thread/6f573b29-1a91-4c23-9af7-7f116f6c79c5?prof=required">this </a>post, I had the best luck with the following:</p>
<p>To start update new_OpportunityID and new_ContactID with your fields, this example concatenates the Opportunity ID and Contact ID lookup fields.</p>
<pre class="brush: php;">
var lookupItemOppID = new Array;
lookupItemOppID = crmForm.all.new_OpportunityID.DataValue;

var vOpportunityID= (lookupItemOppID[0] != null) ? lookupItemOppID[0].name : &quot;&quot;;

var lookupItemConID = new Array;
lookupItemConID = crmForm.all.new_ContactID.DataValue;

var vContactID= (lookupItemConID[0] != null) ? lookupItemConID[0].name : &quot;&quot;;

CrmForm.all.new_name.DataValue = vOpportunityID + &quot; - &quot; + vContactID;
</pre>
<p>This will concatenate two normal fields</p>
<pre class="brush: php;">crmForm.new_fullname.DataValue = crmForm.new_firstname.DataValue + &quot; &quot; + crmForm.new_lastname.DataValue;</pre>
<p>This will concatenate a lookup field and a normal text field</p>
<pre class="brush: php;">
if(crmForm.all.new_abreviationid.DataValue!=null)

var nameval=crmForm.all.new_abreviationid.DataValue[0].name;

crmForm.all.new_uasi.DataValue=nameval+&quot;,&quot;+crmForm.all.new_name.DataValue;
</pre>
<p>Then once you have the field completed you will want to <a href="http://bradleymlaw.com/wp/?p=10">force the change to the database</a>. This will be necessary when a user changes one of the values that creates the concatentated field. It will show the change on the form, however it will not force the change to the database. </p>
<pre class="brush: php;">
//force the result to the database
crmForm.all.DesiredField.ForceSubmit = true
</pre>
]]></content:encoded>
			<wfw:commentRss>http://bradleymlaw.com/wp/2010/06/28/crm-4-0-concatenate-lookup-fields-on-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a CRM 4.0 test/training organization from your production organization</title>
		<link>http://bradleymlaw.com/wp/2010/04/23/creating-a-crm-4-0-testtraining-organization-from-your-production-organization/</link>
		<comments>http://bradleymlaw.com/wp/2010/04/23/creating-a-crm-4-0-testtraining-organization-from-your-production-organization/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 12:49:29 +0000</pubDate>
		<dc:creator>bradlaw</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bradleymlaw.com/wp/2010/04/23/creating-a-crm-4-0-testtraining-organization-from-your-production-organization/</guid>
		<description><![CDATA[Great article on creating a CRM 4.0 test/training organization from your production organizationhttp://www.wipfli.com/BlogPost_MCRM_Blog_8_12_09.aspx]]></description>
			<content:encoded><![CDATA[<p>Great article on creating a CRM 4.0 test/training organization from your production organizationhttp://www.wipfli.com/BlogPost_MCRM_Blog_8_12_09.aspx</p>
]]></content:encoded>
			<wfw:commentRss>http://bradleymlaw.com/wp/2010/04/23/creating-a-crm-4-0-testtraining-organization-from-your-production-organization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft White Paper on Security and Authentication in Microsoft Dynamics CRM</title>
		<link>http://bradleymlaw.com/wp/2010/03/24/microsoft-white-paper-on-security-and-authentication-in-microsoft-dynamics-crm/</link>
		<comments>http://bradleymlaw.com/wp/2010/03/24/microsoft-white-paper-on-security-and-authentication-in-microsoft-dynamics-crm/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 14:38:29 +0000</pubDate>
		<dc:creator>bradlaw</dc:creator>
				<category><![CDATA[CRM 4.0]]></category>
		<category><![CDATA[Infrastructure]]></category>

		<guid isPermaLink="false">http://bradleymlaw.com/wp/?p=347</guid>
		<description><![CDATA[Security and Authentication in Microsoft Dynamics CRM: Connectivity and Firewall Port Requirements in On-Premise Deployments This is a great white paper that has come into use for an enterprise solution I am working with on a client site. This document covers Connectivity and Firewall Port Requirements in On-Premise Deployments for Dynamics CRM 4.0. Overview Many [...]]]></description>
			<content:encoded><![CDATA[<p>Security and Authentication in Microsoft Dynamics CRM: Connectivity and Firewall Port Requirements in On-Premise Deployments</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&#038;FamilyID=d06e9b99-2f10-43fd-94b4-8014a8dca9ea">This </a>is a great white paper that has come into use for an enterprise solution I am working with on a client site. This document covers Connectivity and Firewall Port Requirements in On-Premise Deployments for Dynamics CRM 4.0.</p>
<blockquote><p><strong>Overview</strong><br />
Many data centers include firewalls between the end-users and the servers and other integrated systems that support an implementation of Microsoft Dynamics CRM 4.0. This document provides guidance on the connectivity requirements between Microsoft Dynamics CRM 4.0 and other systems to assist readers with proper firewall configuration in customer environments.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://bradleymlaw.com/wp/2010/03/24/microsoft-white-paper-on-security-and-authentication-in-microsoft-dynamics-crm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing the CRM For Outlook button appears in Microsoft Dynamics CRM</title>
		<link>http://bradleymlaw.com/wp/2010/03/22/removing-the-crm-for-outlook-button-appears-in-microsoft-dynamics-crm/</link>
		<comments>http://bradleymlaw.com/wp/2010/03/22/removing-the-crm-for-outlook-button-appears-in-microsoft-dynamics-crm/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 18:27:09 +0000</pubDate>
		<dc:creator>bradlaw</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bradleymlaw.com/wp/?p=343</guid>
		<description><![CDATA[Made the mistake of leaving the &#8220;CRM for Outlook&#8221; button my web form before turning users loose into a UAT preparation enviornment. Here is an article on removing the link from the Microsoft Support Site @ http://support.microsoft.com/kb/2004601 This is interesting. Looks like others have been searcing perhaps? Note This is a &#8220;FAST PUBLISH&#8221; article created [...]]]></description>
			<content:encoded><![CDATA[<p>Made the mistake of leaving the &#8220;CRM for Outlook&#8221; button my web form before turning users loose into a UAT preparation enviornment. Here is an article on removing the link from the Microsoft Support Site @ <a href="http://support.microsoft.com/kb/2004601">http://support.microsoft.com/kb/2004601</a></p>
<p>This is interesting. Looks like others have been searcing perhaps?</p>
<blockquote><p><strong>Note </strong>This is a &#8220;FAST PUBLISH&#8221; article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use (http://go.microsoft.com/fwlink/?LinkId=151500) for other considerations.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://bradleymlaw.com/wp/2010/03/22/removing-the-crm-for-outlook-button-appears-in-microsoft-dynamics-crm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CRM Concatenate two fields (or more than two)</title>
		<link>http://bradleymlaw.com/wp/2010/03/18/crm-concatenate-two-fields-or-more-than-two/</link>
		<comments>http://bradleymlaw.com/wp/2010/03/18/crm-concatenate-two-fields-or-more-than-two/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 19:42:33 +0000</pubDate>
		<dc:creator>bradlaw</dc:creator>
				<category><![CDATA[Customizations]]></category>

		<guid isPermaLink="false">http://bradleymlaw.com/wp/?p=338</guid>
		<description><![CDATA[Always a good one to remember. crmForm.new_fullname.DataValue = crmForm.new_firstname.DataValue + &#34; &#34; + crmForm.new_lastname.DataValue]]></description>
			<content:encoded><![CDATA[<p>Always a good one to remember.</p>
<pre class="brush: php;">crmForm.new_fullname.DataValue = crmForm.new_firstname.DataValue + &quot; &quot; + crmForm.new_lastname.DataValue</pre>
]]></content:encoded>
			<wfw:commentRss>http://bradleymlaw.com/wp/2010/03/18/crm-concatenate-two-fields-or-more-than-two/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
