<?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: Dynamics CRM Form Script and Useful JavaScript Snippets</title>
	<atom:link href="http://www.dynamicscrmtrickbag.com/2010/05/23/javascript-snippets-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dynamicscrmtrickbag.com/2010/05/23/javascript-snippets-1/</link>
	<description>Building business value on Dynamics CRM</description>
	<lastBuildDate>Fri, 27 Jan 2012 13:09:05 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Top 20 Dynamics CRM Industry Solutions - Richard Knudson’s Microsoft Dynamics CRM Trick Bag</title>
		<link>http://www.dynamicscrmtrickbag.com/2010/05/23/javascript-snippets-1/comment-page-1/#comment-2419</link>
		<dc:creator>Top 20 Dynamics CRM Industry Solutions - Richard Knudson’s Microsoft Dynamics CRM Trick Bag</dc:creator>
		<pubDate>Sun, 22 Aug 2010 22:34:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.dynamicscrmtrickbag.com/?p=2322#comment-2419</guid>
		<description>[...] list of the Beatles Top 100 songs, baseball statistics like the Top 100 Hitting Charts, Bridget&#8217;s list of things to know, biggest cities, top 10 towns named after elements, lists of lists (those would be meta-lists, I [...]</description>
		<content:encoded><![CDATA[<p>[...] list of the Beatles Top 100 songs, baseball statistics like the Top 100 Hitting Charts, Bridget&#8217;s list of things to know, biggest cities, top 10 towns named after elements, lists of lists (those would be meta-lists, I [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Top 20 Dynamics CRM Industry Solutions</title>
		<link>http://www.dynamicscrmtrickbag.com/2010/05/23/javascript-snippets-1/comment-page-1/#comment-2417</link>
		<dc:creator>Top 20 Dynamics CRM Industry Solutions</dc:creator>
		<pubDate>Sun, 22 Aug 2010 21:43:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.dynamicscrmtrickbag.com/?p=2322#comment-2417</guid>
		<description>[...] list of the Beatles Top 100 songs, baseball statistics like the Top 100 Hitting Charts, Bridget&#8217;s list of things to know, biggest cities, top 10 towns named after elements, lists of lists (those would be meta-lists, I [...]</description>
		<content:encoded><![CDATA[<p>[...] list of the Beatles Top 100 songs, baseball statistics like the Top 100 Hitting Charts, Bridget&#8217;s list of things to know, biggest cities, top 10 towns named after elements, lists of lists (those would be meta-lists, I [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Knudson</title>
		<link>http://www.dynamicscrmtrickbag.com/2010/05/23/javascript-snippets-1/comment-page-1/#comment-2028</link>
		<dc:creator>Richard Knudson</dc:creator>
		<pubDate>Thu, 17 Jun 2010 15:30:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.dynamicscrmtrickbag.com/?p=2322#comment-2028</guid>
		<description>Louay, I missed your question about lead conversions for a few days -- sorry about the slow response. Here&#039;s the thing about customizing the lead conversion dialog: it&#039;s not supported in the current version of the product. What does &quot;supported&quot; mean? Another good question. Mainly:

- not supported in case you need technical support from MS
- not supported for upgrades
- possibly can break your CRM

That being said...&quot;not supported&quot; doesn&#039;t mean it can&#039;t be done. Here&#039;s a link to an article by Nishant Rana that shows how to do some customization to the dialog using the  document object model (DOM) in JavaScript. http://nishantrana.wordpress.com/2010/04/22/customizing-convert-lead-dialog-box-in-crm-4/

Cheers - Richard</description>
		<content:encoded><![CDATA[<p>Louay, I missed your question about lead conversions for a few days &#8212; sorry about the slow response. Here&#8217;s the thing about customizing the lead conversion dialog: it&#8217;s not supported in the current version of the product. What does &#8220;supported&#8221; mean? Another good question. Mainly:</p>
<p>- not supported in case you need technical support from MS<br />
- not supported for upgrades<br />
- possibly can break your CRM</p>
<p>That being said&#8230;&#8221;not supported&#8221; doesn&#8217;t mean it can&#8217;t be done. Here&#8217;s a link to an article by Nishant Rana that shows how to do some customization to the dialog using the  document object model (DOM) in JavaScript. <a href="http://nishantrana.wordpress.com/2010/04/22/customizing-convert-lead-dialog-box-in-crm-4/" rel="nofollow">http://nishantrana.wordpress.com/2010/04/22/customizing-convert-lead-dialog-box-in-crm-4/</a></p>
<p>Cheers &#8211; Richard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Useful Form Scripts #4</title>
		<link>http://www.dynamicscrmtrickbag.com/2010/05/23/javascript-snippets-1/comment-page-1/#comment-2007</link>
		<dc:creator>Useful Form Scripts #4</dc:creator>
		<pubDate>Tue, 15 Jun 2010 13:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.dynamicscrmtrickbag.com/?p=2322#comment-2007</guid>
		<description>[...] field only gets updated when the form is loaded. I pointed this out in a general way in the Form Script #1 article, but the current example really drives the point home: there&#8217;s no true calculated field type [...]</description>
		<content:encoded><![CDATA[<p>[...] field only gets updated when the form is loaded. I pointed this out in a general way in the Form Script #1 article, but the current example really drives the point home: there&#8217;s no true calculated field type [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Knudson</title>
		<link>http://www.dynamicscrmtrickbag.com/2010/05/23/javascript-snippets-1/comment-page-1/#comment-1978</link>
		<dc:creator>Richard Knudson</dc:creator>
		<pubDate>Sun, 13 Jun 2010 12:16:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.dynamicscrmtrickbag.com/?p=2322#comment-1978</guid>
		<description>Hi Jason -- thanks for the note.

Money and Integer attributes work together OK, so I don&#039;t think that&#039;s the problem. I just did an example that I think is the same as yours at least conceptually. Here&#039;s a self-documenting JavaScript snippet that I put in the onChange of Estimated Revenue (schema name estimatedvalue) and called from the onChange events of the custom fields with the crmForm.all.estimatedvalue.FireOnChange(); trick, but it works just as well if you put this code in the onChange event of each contributing field:

//estimatedvalue is the built-in attribute with display name &#039;Estimated Revenue&#039;
//new_upfront is a custom attribute of type money
//new_duration is a custom attribute of type integer
//new_rate is a custom attribute of type money

crmForm.all.estimatedvalue.DataValue = 
crmForm.all.new_upfront.DataValue + 
(crmForm.all.new_duration.DataValue * crmForm.all.new_rate.DataValue);

I bet it&#039;s a syntax problem or something along those lines. Give it a shot and let me know how it works out!</description>
		<content:encoded><![CDATA[<p>Hi Jason &#8212; thanks for the note.</p>
<p>Money and Integer attributes work together OK, so I don&#8217;t think that&#8217;s the problem. I just did an example that I think is the same as yours at least conceptually. Here&#8217;s a self-documenting JavaScript snippet that I put in the onChange of Estimated Revenue (schema name estimatedvalue) and called from the onChange events of the custom fields with the crmForm.all.estimatedvalue.FireOnChange(); trick, but it works just as well if you put this code in the onChange event of each contributing field:</p>
<p>//estimatedvalue is the built-in attribute with display name &#8216;Estimated Revenue&#8217;<br />
//new_upfront is a custom attribute of type money<br />
//new_duration is a custom attribute of type integer<br />
//new_rate is a custom attribute of type money</p>
<p>crmForm.all.estimatedvalue.DataValue =<br />
crmForm.all.new_upfront.DataValue +<br />
(crmForm.all.new_duration.DataValue * crmForm.all.new_rate.DataValue);</p>
<p>I bet it&#8217;s a syntax problem or something along those lines. Give it a shot and let me know how it works out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Taormina</title>
		<link>http://www.dynamicscrmtrickbag.com/2010/05/23/javascript-snippets-1/comment-page-1/#comment-1958</link>
		<dc:creator>Jason Taormina</dc:creator>
		<pubDate>Fri, 11 Jun 2010 15:39:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.dynamicscrmtrickbag.com/?p=2322#comment-1958</guid>
		<description>Hi,

In our company, we have a lot of reoccurring revenue, so I added Length of Contract and Revenue/Term attributes to the opportunity entity.  In addition, most projects have an upfront amount as well. I used created scripts in the onChange event for these fields to compute the Total Revenue, as follows:

total revenue = one time + (length x monthly rate)

This isn&#039;t working, though.  When I fill in the fields, nothing happens.  When I save, nothing happens.  Is there some incompatability between the integer type and the money type?

-Jason</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>In our company, we have a lot of reoccurring revenue, so I added Length of Contract and Revenue/Term attributes to the opportunity entity.  In addition, most projects have an upfront amount as well. I used created scripts in the onChange event for these fields to compute the Total Revenue, as follows:</p>
<p>total revenue = one time + (length x monthly rate)</p>
<p>This isn&#8217;t working, though.  When I fill in the fields, nothing happens.  When I save, nothing happens.  Is there some incompatability between the integer type and the money type?</p>
<p>-Jason</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Louay</title>
		<link>http://www.dynamicscrmtrickbag.com/2010/05/23/javascript-snippets-1/comment-page-1/#comment-1936</link>
		<dc:creator>Louay</dc:creator>
		<pubDate>Wed, 09 Jun 2010 12:31:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.dynamicscrmtrickbag.com/?p=2322#comment-1936</guid>
		<description>Hi Richard, 
Thank you for the useful post above, I am sure it benifited everyone in here. 
I have a quick question if possible, I need to customize the pop-up form used when you click &quot;Convert Lead&quot; in the Lead Entity. I need to modify a bit the drop down menu for disqualified lead and maybe add my own attributes there. 
Can you please guide me how to accomplish this? 
Thanking you.</description>
		<content:encoded><![CDATA[<p>Hi Richard,<br />
Thank you for the useful post above, I am sure it benifited everyone in here.<br />
I have a quick question if possible, I need to customize the pop-up form used when you click &#8220;Convert Lead&#8221; in the Lead Entity. I need to modify a bit the drop down menu for disqualified lead and maybe add my own attributes there.<br />
Can you please guide me how to accomplish this?<br />
Thanking you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Knudson</title>
		<link>http://www.dynamicscrmtrickbag.com/2010/05/23/javascript-snippets-1/comment-page-1/#comment-1857</link>
		<dc:creator>Richard Knudson</dc:creator>
		<pubDate>Thu, 27 May 2010 15:07:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.dynamicscrmtrickbag.com/?p=2322#comment-1857</guid>
		<description>Hi Frank,

Thanks for the note, and by all means use it/refer to it on your blog and extend with examples. I&#039;ll do the same here if you share the examples with me. What&#039;s your blog, btw?

Richard</description>
		<content:encoded><![CDATA[<p>Hi Frank,</p>
<p>Thanks for the note, and by all means use it/refer to it on your blog and extend with examples. I&#8217;ll do the same here if you share the examples with me. What&#8217;s your blog, btw?</p>
<p>Richard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank van Delden</title>
		<link>http://www.dynamicscrmtrickbag.com/2010/05/23/javascript-snippets-1/comment-page-1/#comment-1856</link>
		<dc:creator>Frank van Delden</dc:creator>
		<pubDate>Thu, 27 May 2010 14:06:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.dynamicscrmtrickbag.com/?p=2322#comment-1856</guid>
		<description>Can I use this post (in referal) on my blog and extend it with more examples?

It is a great and usefull post!</description>
		<content:encoded><![CDATA[<p>Can I use this post (in referal) on my blog and extend it with more examples?</p>
<p>It is a great and usefull post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Form-Scripting - TIDBITS on Microsoft Dynamics CRM</title>
		<link>http://www.dynamicscrmtrickbag.com/2010/05/23/javascript-snippets-1/comment-page-1/#comment-1853</link>
		<dc:creator>Form-Scripting - TIDBITS on Microsoft Dynamics CRM</dc:creator>
		<pubDate>Thu, 27 May 2010 12:12:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.dynamicscrmtrickbag.com/?p=2322#comment-1853</guid>
		<description>[...] his continued awesome way, Richard Knudson writes up and shares a nice post on Form-Scripting in Microsoft Dynamics CRM. What is he referring to with regards to Form [...]</description>
		<content:encoded><![CDATA[<p>[...] his continued awesome way, Richard Knudson writes up and shares a nice post on Form-Scripting in Microsoft Dynamics CRM. What is he referring to with regards to Form [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

