<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9118937471541412696</id><updated>2012-01-31T05:21:52.513+02:00</updated><category term='install'/><category term='crm 2011'/><category term='expected'/><category term='tools'/><category term='technologies'/><category term='very important'/><category term='news'/><category term='IDs'/><category term='events'/><category term='all'/><category term='crm'/><category term='Tutorials'/><category term='windows 7'/><category term='c#'/><category term='nav'/><category term='sharepoint'/><category term='Daniel'/><category term='onchange'/><category term='video'/><category term='windows'/><category term='email'/><category term='wcf'/><category term='asp'/><category term='JavaScript Events'/><category term='business'/><category term='forward'/><category term='reviews'/><category term='office'/><category term='soap'/><category term='personal'/><category term='silverlight'/><category term='schema'/><category term='WebReference'/><category term='simple'/><category term='biz-forward.com'/><category term='Cornel'/><category term='font'/><category term='blog'/><category term='fire onchange'/><category term='button'/><category term='sql server'/><category term='Radu'/><category term='webservice'/><category term='Nikolay'/><category term='sql'/><category term='important'/><category term='namespace'/><category term='wpf'/><category term='visual studio 2010'/><category term='3.0'/><category term='Walter'/><category term='server'/><category term='biz-forward'/><category term='ax'/><category term='hot'/><category term='schemas.microsoft.com'/><category term='JavaScript'/><category term='error'/><category term='Mirel'/><category term='attachments'/><category term='item'/><category term='net framework'/><title type='text'>Biz-Forward.com</title><subtitle type='html'>Microsoft Dynamics CRM, NAV, AX, SharePoint, .NET, C#, WPF, WCF, Silverlight, ASP, JavaScript, HTML, SQL Server, Office, MBA etc.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>61</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-1477860578347202268</id><published>2011-09-16T14:48:00.003+03:00</published><updated>2011-09-16T14:51:20.204+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>Last post</title><content type='html'>This is the last post here. From now on you can reach us at &lt;b&gt;&lt;span class="Apple-style-span" &gt;www.biz-forward.com&lt;/span&gt;&lt;/b&gt; . Thanks for understanding.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-1477860578347202268?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/1477860578347202268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=1477860578347202268' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/1477860578347202268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/1477860578347202268'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/09/last-post.html' title='Last post'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-6359295262614461801</id><published>2011-05-31T02:28:00.001+03:00</published><updated>2011-05-31T02:28:58.404+03:00</updated><title type='text'></title><content type='html'>proud to present MCC Award: &lt;a href="http://ping.fm/vbyRY"&gt;http://ping.fm/vbyRY&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-6359295262614461801?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/6359295262614461801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=6359295262614461801' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6359295262614461801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6359295262614461801'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/05/proud-to-present-mcc-award-httpping.html' title=''/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-5283456825143582996</id><published>2011-03-10T23:57:00.001+02:00</published><updated>2011-03-10T23:57:21.830+02:00</updated><title type='text'></title><content type='html'>3D SoccerBall Model for WPF: &lt;a href="http://ping.fm/WlGDd"&gt;http://ping.fm/WlGDd&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-5283456825143582996?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/5283456825143582996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=5283456825143582996' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/5283456825143582996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/5283456825143582996'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/03/3d-soccerball-model-for-wpf-httpping.html' title=''/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-3026009302945509623</id><published>2011-03-10T23:56:00.001+02:00</published><updated>2011-03-10T23:56:15.852+02:00</updated><title type='text'></title><content type='html'>Media Player (Video &amp; Audio) Controls for WPF: _&lt;a href="http://ping.fm/jCBem"&gt;http://ping.fm/jCBem&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-3026009302945509623?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/3026009302945509623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=3026009302945509623' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3026009302945509623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3026009302945509623'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/03/media-player-video-audio-controls-for.html' title=''/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-7403998163995044290</id><published>2011-02-16T23:47:00.001+02:00</published><updated>2011-02-16T23:47:39.386+02:00</updated><title type='text'></title><content type='html'>Am proud to present www.Croitoriu.NET - up &amp; running!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-7403998163995044290?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/7403998163995044290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=7403998163995044290' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/7403998163995044290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/7403998163995044290'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/02/am-proud-to-present-www.html' title=''/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-1733577467732345384</id><published>2011-02-05T03:03:00.004+02:00</published><updated>2011-02-05T03:05:12.025+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='biz-forward'/><category scheme='http://www.blogger.com/atom/ns#' term='crm 2011'/><category scheme='http://www.blogger.com/atom/ns#' term='very important'/><category scheme='http://www.blogger.com/atom/ns#' term='important'/><category scheme='http://www.blogger.com/atom/ns#' term='biz-forward.com'/><title type='text'>BIZ-FORWARD.COM</title><content type='html'>&lt;b&gt;&lt;span class="Apple-style-span" &gt;IMPORTANT ANNOUNCEMENT:&lt;/span&gt;&lt;/b&gt; we moved to &lt;b&gt;&lt;a href="http://www.Biz-Forward.com"&gt;&lt;span class="Apple-style-span" &gt;www.Biz-Forward.com&lt;/span&gt;&lt;/a&gt;&lt;/b&gt; . Meet us there.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-1733577467732345384?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/1733577467732345384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=1733577467732345384' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/1733577467732345384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/1733577467732345384'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/02/biz-forwardcom.html' title='BIZ-FORWARD.COM'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-6971309756830993367</id><published>2011-01-31T18:50:00.001+02:00</published><updated>2011-01-31T18:50:17.463+02:00</updated><title type='text'></title><content type='html'>Dare to be GREAT! &lt;a href="http://www.bizforward.cws-international.com/2011/01/31/dare-to-be-great/"&gt;http://www.bizforward.cws-international.com/2011/01/31/dare-to-be-great/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-6971309756830993367?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/6971309756830993367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=6971309756830993367' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6971309756830993367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6971309756830993367'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/dare-to-be-great-httpwww.html' title=''/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-2541332501326544212</id><published>2011-01-30T02:30:00.001+02:00</published><updated>2011-01-30T02:30:42.370+02:00</updated><title type='text'></title><content type='html'>Contest: &lt;a href="http://www.bizforward.cws-international.com/contests/"&gt;http://www.bizforward.cws-international.com/contests/&lt;/a&gt; Good luck :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-2541332501326544212?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/2541332501326544212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=2541332501326544212' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/2541332501326544212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/2541332501326544212'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/contest-httpwww.html' title=''/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-621719904216832431</id><published>2011-01-30T02:27:00.001+02:00</published><updated>2011-01-30T02:27:49.030+02:00</updated><title type='text'></title><content type='html'>Important! you can be one of us! Join the best team... one click away! &lt;a href="http://www.bizforward.cws-international.com/we-recruit/"&gt;http://www.bizforward.cws-international.com/we-recruit/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-621719904216832431?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/621719904216832431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=621719904216832431' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/621719904216832431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/621719904216832431'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/important-you-can-be-one-of-us-join.html' title=''/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-7595151968349543463</id><published>2011-01-29T11:41:00.002+02:00</published><updated>2011-01-29T17:17:50.842+02:00</updated><title type='text'>Website launched</title><content type='html'>Our website just launched. Please check it out: &lt;a href="http://biz-forward.com/"&gt;http://biz-forward.com&lt;/a&gt; . Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-7595151968349543463?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/7595151968349543463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=7595151968349543463' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/7595151968349543463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/7595151968349543463'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/our-website-just-launched.html' title='Website launched'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-6310924179591353270</id><published>2011-01-29T10:50:00.002+02:00</published><updated>2011-01-29T10:53:28.274+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='crm 2011'/><title type='text'>Format date fields in CRM</title><content type='html'>Special thanks to &lt;a href="http://a33ik.blogspot.com/"&gt;&lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Andriy a33ik Butenko&lt;/span&gt;&lt;/a&gt; for this post.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Formats the date into a certain format&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Date.prototype.Format = function(format)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;var d = this;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;var f = "";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;f = f + format.replace( /dd|mm|yyyy|MM|hh|ss|ms|APM|\s|\/|\-|,|\./ig ,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;function match()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;switch(arguments[0])&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;case "dd":&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;var dd = d.getDate();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;return (dd &lt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;case "mm":&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;var mm = d.getMonth() + 1;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;return (mm &lt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;case "yyyy": return d.getFullYear();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;case "hh":&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;var hh = d.getHours();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;return (hh &lt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;case "MM":&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;var MM = d.getMinutes();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;return (MM &lt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;case "ss":&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;var ss = d.getSeconds();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;return (ss &lt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;case "ms": return d.getMilliseconds();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;case "APM":&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;var apm = d.getHours();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;return (apm &lt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;default: return arguments[0];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;});&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;return f;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Formats the date to CRM format&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Date.prototype.toCRMFormat = function()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;var d = this;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;var f = d.Format("yyyy-mm-ddThh:MM:ss+" + (-d.getTimezoneOffset()/60) + ":00");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;return f;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-6310924179591353270?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/6310924179591353270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=6310924179591353270' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6310924179591353270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6310924179591353270'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/format-date-fields-in-crm.html' title='Format date fields in CRM'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-6938688422924130582</id><published>2011-01-28T23:48:00.018+02:00</published><updated>2011-01-29T14:24:12.709+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><category scheme='http://www.blogger.com/atom/ns#' term='Walter'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='important'/><category scheme='http://www.blogger.com/atom/ns#' term='forward'/><category scheme='http://www.blogger.com/atom/ns#' term='Daniel'/><category scheme='http://www.blogger.com/atom/ns#' term='Mirel'/><category scheme='http://www.blogger.com/atom/ns#' term='Cornel'/><category scheme='http://www.blogger.com/atom/ns#' term='Nikolay'/><category scheme='http://www.blogger.com/atom/ns#' term='Radu'/><category scheme='http://www.blogger.com/atom/ns#' term='business'/><title type='text'>Authors</title><content type='html'>&lt;div style="text-align: justify;"&gt;Our &lt;span style="font-weight: bold;"&gt;crew &lt;/span&gt;just got bigger. Let's welcome our newest &lt;span style="font-weight: bold;"&gt;authors&lt;/span&gt;. Here's a brief description about each author.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://biz-forward.com/"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Mirel APOSTOL - Tech Mastermind&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;- he got his title for a good reason, he's the most skilled developer/architect I met so far. There's no technology he can't master or teach others. But his skills go beyong programming, Mirel being a good manager/leader. He proved himself in each and every project he was a part of. He has a good sense of humour, enthusiasm and he is the man you need on your side, if you want to get your &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;business forward&lt;/span&gt; :) Let's all welcome &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Mirel&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ro.linkedin.com/in/octaviancucuta"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Octavian CUCUTA - Software Developer&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;- and a very good friend of mine. &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Tavi &lt;/span&gt;is the developer that thinks in general terms and the code he writes can serve more than just the problem it was written for. Design is also one of his skills. Tavi puts passion in every single line of code he writes, he documents his job very well and, to be honest, am glad I can collaborate with him. Let's welcome &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Tavi&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ro.linkedin.com/pub/walter-hauptmann/12/10a/171"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Walter HAUPTMANN - Business Consultant&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;- my friend, my neighbour, my colleague, my managing partner @ CWS. &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Walter&lt;/span&gt; started as a developer and now he's a very skilled business analyst, consultant and project manager. He often has innovative ideas and likes to express himself via design, painting being one of his hobbies. Also, he's the funniest man I've met. In my opinion, he should consider a stand-up comedian career :) Let's welcome &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Walter&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.facebook.com/profile.php?id=831485826"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Alina ANDREESCU - Software Developer&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;- a lovely and funny presence, very smart and skilled .NET developer. She's the type of person that treats all the tasks seriously, making the final products work smooth. &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Alina &lt;/span&gt;is a bit shy, so let's encourage her writing skill :) Let's welcome &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Alina&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.facebook.com/profile.php?id=100000266382212"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Radu CHIRAN - Business Consultant&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;- he's the party-animal type. I can't imagine a good party, without him there. He's more of a dancer than human (to quote the famous &lt;a href="http://www.youtube.com/watch?v=RIZdjT1472Y"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;song&lt;/span&gt;&lt;/a&gt;). &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Radu &lt;/span&gt;also has the vision of a product manager. He can easily track business goals &amp;amp; needs and analyse them, so coders can make it happen. Also, his sense of humour is one thing you'll surely notice if you get the honor to meet him in person. All my respect for him, let's welcome &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Radu&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.facebook.com/dpinsler"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Daniel PINSLER - Software Developer&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;- and also a very good product support professional who likes to get the job done well. If you got a question with no answer, don't worry, he has all the answers (yes boys &amp;amp; girls, when you have a dilemma, contact &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Dani&lt;/span&gt;). He also loves house music and house events and. Let's welcome &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Daniel&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://bg.linkedin.com/pub/nikolay-eftimov/21/524/483"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Nikolay EFTIMOV - Solutions Architect&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;- I met &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Nikolay &lt;/span&gt;in a Microsoft vs. Oracle PoC competition. He made a real good impression. He easily masters more than just Microsoft Dynamics CRM platform. The final product he worked on for that competition was more than I personally expected. He's a skilled coder &amp;amp; architect and I'm sure there's no task he can't complete. Let's welcome &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Nikolay&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a style="color: rgb(153, 0, 0); font-weight: bold;" href="http://www.mbe.ro/"&gt;&lt;/a&gt;&lt;a style="color: rgb(51, 102, 255); font-weight: bold;" href="http://www.mbe.ro/"&gt;Ciprian MOCANU - Web Developer&lt;/a&gt;&lt;br /&gt;- he's the best friend one can have. He's a very skilled web developer, leading &lt;a style="color: rgb(153, 0, 0); font-weight: bold;" href="http://www.mbe.ro"&gt;MBE&lt;/a&gt; to success daily (he's &lt;a href="http://mbe.ro/about/"&gt;&lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;"the duck behind the operation"&lt;/span&gt;&lt;/a&gt;). Let's all welcome &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Ciprian&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ro.linkedin.com/in/cscorpion"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Cornel CROITORIU - Senior Software Developer &amp;amp; Founder&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;- My mission is simple. Here's why I did this: &lt;span style="font-style: italic;"&gt;"Because I strongly believe that a good business solution is a must for every  business, no matter the stage. This blog will help both developers  &amp;amp; consultants achieve their goals, making the final product exactly  what the customer wanted."&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;And a song I hope from all my heart that this blog will be one day, thanks to all of you - the community. Welcome to the new &lt;a href="http://biz-forward.com/"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Biz-Forward.com&lt;/span&gt;&lt;/a&gt;!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;div align="center"&gt;&lt;iframe title="YouTube video player" class="youtube-player" type="text/html" src="http://www.youtube.com/embed/ra12L1Bl0Z4" allowfullscreen="" width="480" frameborder="0" height="390"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Cornel&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-6938688422924130582?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/6938688422924130582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=6938688422924130582' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6938688422924130582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6938688422924130582'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/authors_28.html' title='Authors'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://img.youtube.com/vi/ra12L1Bl0Z4/default.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-8476116202415109318</id><published>2011-01-28T23:48:00.015+02:00</published><updated>2011-01-29T13:40:18.749+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows 7'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='sql server'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='net framework'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='nav'/><category scheme='http://www.blogger.com/atom/ns#' term='visual studio 2010'/><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='wpf'/><category scheme='http://www.blogger.com/atom/ns#' term='sharepoint'/><category scheme='http://www.blogger.com/atom/ns#' term='silverlight'/><category scheme='http://www.blogger.com/atom/ns#' term='office'/><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><category scheme='http://www.blogger.com/atom/ns#' term='ax'/><category scheme='http://www.blogger.com/atom/ns#' term='technologies'/><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>Areas of interest</title><content type='html'>These are the &lt;span style="font-weight: bold;"&gt;areas&lt;/span&gt; we will cover in our posts:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://crm.dynamics.com/en-us/"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Microsoft Dynamics CRM&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/en-us/dynamics/products/nav-overview.aspx"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Microsoft Dynamics NAV&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/dynamics/ax/default"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Microsoft Dynamics AX&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sharepoint.microsoft.com/en-us/Pages/default.aspx"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Microsoft SharePoint&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://office.microsoft.com/en-us/"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Microsoft Office&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/sqlserver/2008/en/us/default.aspx"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Microsoft SQL Server&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/vcsharp/aa336809"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;C#&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://windowsclient.net/default.aspx"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;WPF&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms731082.aspx"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;WCF&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.silverlight.net/"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Silverlight&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.asp.net/"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;ASP&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.w3schools.com/html/default.asp"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;HTML&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.w3schools.com/js/default.asp"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;JavaScript&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/net/"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;.NET Framework&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://windows.microsoft.com/windows-7?os=win7"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Windows 7&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/931937"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Windows Mobile&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/windowsphone/en-us/default.aspx"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Windows Phone 7&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/dd831853.aspx"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Visual Studio 2010&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/surface/"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Microsoft Surface&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Project_management"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Project Management&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Product_management"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Product Management&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Public_relations"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;PR&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Marketing"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Marketing&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-8476116202415109318?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/8476116202415109318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=8476116202415109318' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8476116202415109318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8476116202415109318'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/technologies.html' title='Areas of interest'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-8087141759400344155</id><published>2011-01-28T20:34:00.002+02:00</published><updated>2011-01-28T20:39:54.898+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='hot'/><category scheme='http://www.blogger.com/atom/ns#' term='important'/><title type='text'>Rebranding</title><content type='html'>Our blog will "suffer" some minor adjustments. It won't be just a CRM blog from now on, but a Microsoft Business Solutions blog, with topics about &lt;span style="font-weight: bold;"&gt;Dynamics CRM, NAV, AX, SharePoint, Office, .NET (C#, WPF, WCF, Silverlight, asp), HTML &amp;amp; JavaScript&lt;/span&gt; and much more. Stay tuned, we are gonna move your business process forward, for our new name/brand is &lt;a style="color: rgb(51, 102, 255); font-weight: bold;" href="http://biz-forward.com"&gt;Biz Forward&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-8087141759400344155?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/8087141759400344155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=8087141759400344155' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8087141759400344155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8087141759400344155'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/rebranding.html' title='Rebranding'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-7912394284752887321</id><published>2011-01-27T16:25:00.003+02:00</published><updated>2011-01-27T16:27:07.740+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='crm 2011'/><title type='text'>Change attachment file limit</title><content type='html'>More details about this issue can be found here: &lt;a style="color: rgb(51, 102, 255);" href="http://rahulsalunkhe.wordpress.com/2010/08/26/increasing-the-crm-4-0-attachment-size-limit/"&gt;http://rahulsalunkhe.wordpress.com/2010/08/26/increasing-the-crm-4-0-attachment-size-limit&lt;/a&gt; . This should work under CRM 2011 as well.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-7912394284752887321?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/7912394284752887321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=7912394284752887321' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/7912394284752887321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/7912394284752887321'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/change-attachment-file-limit.html' title='Change attachment file limit'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-3018323510700762362</id><published>2011-01-26T23:04:00.003+02:00</published><updated>2011-01-26T23:06:50.021+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='crm 2011'/><title type='text'>CRM Usage Report</title><content type='html'>A very nice thread about this issue, written by &lt;a style="color: rgb(153, 0, 0); font-weight: bold;" href="http://blogs.msdn.com/b/crm/archive/2007/10/02/bio-mvp-david-jennaway.aspx"&gt;David Jennaway - MVP&lt;/a&gt;, can be found &lt;a style="color: rgb(51, 102, 255);" href="http://blogs.msdn.com/b/crm/archive/2009/04/08/crm-usage-reporting-unleashed.aspx"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-3018323510700762362?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/3018323510700762362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=3018323510700762362' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3018323510700762362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3018323510700762362'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/crm-usage-report.html' title='CRM Usage Report'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-4413365603048959575</id><published>2011-01-26T16:28:00.001+02:00</published><updated>2011-01-26T16:29:40.659+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='crm 2011'/><title type='text'>Generate a new Guid in JavaScript</title><content type='html'>&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;As easy as that :)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;// Generate new Guid&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;function Hexa4()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    return (((1+Math.random())*0x10000)|0).toString(16).substring(1);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;function GenerateGuid() &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;   return (Hexa4()+Hexa4()+"-"+Hexa4()+"-"+Hexa4()+"-"+Hexa4()+"-"+Hexa4()+Hexa4()+Hexa4()).toUpperCase();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// USE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;var guid = GenerateGuid();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;alert(guid);&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-4413365603048959575?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/4413365603048959575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=4413365603048959575' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/4413365603048959575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/4413365603048959575'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/generate-new-guid-in-javascript.html' title='Generate a new Guid in JavaScript'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-7849975830195608289</id><published>2011-01-26T15:58:00.005+02:00</published><updated>2011-01-26T16:17:21.890+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='crm 2011'/><title type='text'>Create a custom filtered lookup view in runtime - CRM 2011</title><content type='html'>&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Starting&lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt; CRM 2011&lt;/span&gt; you can filter a certain &lt;span style="color: rgb(153, 0, 0); font-weight: bold;"&gt;lookup view&lt;/span&gt; based on related entities or other system/custom views. But sometimes this is not enough. For example, if you wanna make a &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;custom filtered view&lt;/span&gt;, that uses several filters, you can use the following approach.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Starting scenario (all of the completed lookup fields will be used as filters):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://img502.imageshack.us/img502/1893/oppproductcrm5.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 399px; height: 163px;" src="http://img502.imageshack.us/img502/1893/oppproductcrm5.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(0, 102, 0);" href="http://img502.imageshack.us/img502/1893/oppproductcrm5.png"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// *** ALL IN 1 CODE&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt; ***&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Structs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;var FilterBy = MakeStruct("SchemaName Operator Value");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;var ViewColumn = MakeStruct("SchemaName Width");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Advanced Filtered Lookup&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;function AdvancedFilteredLookup(lookupSchemaName, viewId, entityName, primaryKeyName, primaryFieldName, viewDisplayName, filterBy, orderBy, viewColumns) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    var fetchXml = "&amp;lt;fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'&amp;gt;" +&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    "&amp;lt;entity name='" + entityName + "'&amp;gt;" +&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    "&amp;lt;attribute name='" + primaryFieldName + "' /&amp;gt;" +&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    "&amp;lt;order attribute='" + orderBy + "' descending='false' /&amp;gt;" +&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    "&amp;lt;filter type='and'&amp;gt;" + &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    "&amp;lt;filter type='and'&amp;gt;";    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    for(var i=0; i&amp;lt; filterBy.length; i++)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;        fetchXml += "&amp;lt;condition attribute='" + filterBy[i].SchemaName + "' operator='" + filterBy[i].Operator + "' value='" + filterBy[i].Value + "' /&amp;gt;";    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    fetchXml += "&amp;lt;/filter&amp;gt;&amp;lt;/filter&amp;gt;&amp;lt;/entity&amp;gt;&amp;lt;/fetch&amp;gt;";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    var layoutXml = "&amp;lt;grid name='resultset' " +&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    "object='1' " +&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    "jump='name' " +&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    "select='1' " +&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    "icon='1' " +&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    "preview='1'&amp;gt;" +&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    "&amp;lt;row name='result' " +&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    "id='" + primaryKeyName + "'&amp;gt;";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    for(var i=0; i&amp;lt; viewColumns.length; i++)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;        layoutXml += "&amp;lt;cell name='" + viewColumns[i].SchemaName + "' width='" + viewColumns[i].Width.toString() + "' /&amp;gt;";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    layoutXml += "&amp;lt;/row&amp;gt;&amp;lt;/grid&amp;gt;";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    try {        &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;        var lookupControl = Xrm.Page.ui.controls.get(lookupSchemaName);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;        lookupControl.addCustomView(viewId, entityName, viewDisplayName, fetchXml, layoutXml, true);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    catch(err) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// USE&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt; &lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;- we gonna create a custom filtered lookup view for the new_productid lookup field&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Note: this function should be called on the OnChange() event of all the filter-fields (for example: new_type1id)&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&lt;br /&gt;function FilterProducts()&lt;br /&gt;{&lt;br /&gt;try {&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;        // Parameters&lt;/span&gt;&lt;br /&gt;var customViewId = "{FD140AAF-4DF4-11DD-BD17-0019B9312238}"; // new id&lt;br /&gt;var customViewName = "Type Filtered Products";&lt;br /&gt;var lookupFieldName = "new_productid";&lt;br /&gt;var entityName = "product";&lt;br /&gt;var primaryKeyName = "productid";&lt;br /&gt;var primaryFieldName = "name";&lt;br /&gt;var orderBy = "name";&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;    // Generate Filters&lt;/span&gt;&lt;br /&gt;var type1id = crmForm.all.item("nov_type1id").DataValue != null ? crmForm.all.item("nov_type1id").DataValue[0].id : null;&lt;br /&gt;var type2id = crmForm.all.item("nov_type2id").DataValue != null ? crmForm.all.item("nov_type2id").DataValue[0].id : null;&lt;br /&gt;var type3id = crmForm.all.item("nov_type3id").DataValue != null ? crmForm.all.item("nov_type3id").DataValue[0].id : null;&lt;br /&gt;var type4id = crmForm.all.item("nov_type4id").DataValue != null ? crmForm.all.item("nov_type4id").DataValue[0].id : null;&lt;br /&gt;var clientneedid = crmForm.all.item("nov_clientneedid").DataValue != null ? crmForm.all.item("nov_clientneedid").DataValue[0].id : null;&lt;br /&gt;var vendorid = crmForm.all.item("nov_vendorid").DataValue != null ? crmForm.all.item("nov_vendorid").DataValue[0].id : null;&lt;br /&gt;var filters = new Array();&lt;br /&gt;var index = 0;&lt;br /&gt;if(type1id != null)&lt;br /&gt;   filters[index++] = new FilterBy("new_type1id", LogicalOperator.Eq, type1id);&lt;br /&gt;if(type2id != null)&lt;br /&gt;   filters[index++] = new FilterBy("new_type2id", LogicalOperator.Eq, type2id);&lt;br /&gt;if(type3id != null)&lt;br /&gt;   filters[index++] = new FilterBy("new_type3id", LogicalOperator.Eq, type3id);&lt;br /&gt;if(type4id != null)&lt;br /&gt;   filters[index++] = new FilterBy("new_type4id", LogicalOperator.Eq, type4id);&lt;br /&gt;if(clientneedid != null)&lt;br /&gt;   filters[index++] = new FilterBy("new_clientneedid", LogicalOperator.Eq, clientneedid);&lt;br /&gt;if(vendorid != null)&lt;br /&gt;   filters[index++] = new FilterBy("nov_vendorid", LogicalOperator.Eq, vendorid);&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;        // View Columns&lt;/span&gt;&lt;br /&gt;var viewColumns = [new ViewColumn("name", 200), new ViewColumn("productnumber", 100), new ViewColumn("new_type1id", 100), new ViewColumn("new_type2id", 100), new ViewColumn("new_type3id", 100), new ViewColumn("new_type4id", 100), new ViewColumn("new_clientneedid", 100), new ViewColumn("nov_vendorid", 100)];&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  // Create Dynamics View&lt;/span&gt;&lt;br /&gt;AdvancedFilteredLookup(lookupFieldName, customViewId, entityName, primaryKeyName, primaryFieldName,  customViewName, filters, orderBy, viewColumns);&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  // Clear Previous Product Value&lt;/span&gt;&lt;br /&gt;crmForm.all.item(lookupFieldName).DataValue = null;&lt;br /&gt;}&lt;br /&gt;catch(err) {&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;And now, the custom filtered lookup view for the new_productid lookup field will look like this:&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://img831.imageshack.us/img831/142/filteredviewcrm5.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 399px; height: 283px;" src="http://img831.imageshack.us/img831/142/filteredviewcrm5.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Hope you'll find this article useful.&lt;br /&gt;&lt;br /&gt;P.S.: In my opinion, filtering a lookup this way is a lot more efficient than altering the lookupsingle.aspx file (the unsupported method used in CRM 4.0) ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-7849975830195608289?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/7849975830195608289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=7849975830195608289' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/7849975830195608289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/7849975830195608289'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/create-custom-filtered-lookup-view-in.html' title='Create a custom filtered lookup view in runtime - CRM 2011'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-6840834562956271667</id><published>2011-01-26T15:31:00.011+02:00</published><updated>2011-01-28T16:41:30.705+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='crm 2011'/><category scheme='http://www.blogger.com/atom/ns#' term='soap'/><title type='text'>Creating records in CRM 2011 using JavaScript</title><content type='html'>Using the&lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt; CRM Web Service&lt;/span&gt;, you can create new entity records, just using JavaScript. The following code demonstrates this:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Make Struct&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;function MakeStruct(names) {&lt;br /&gt;var names = names.split(' ');&lt;br /&gt;var count = names.length;&lt;br /&gt;function constructor() {&lt;br /&gt;  for (var i = 0; i &amp;lt; count; i++) {&lt;br /&gt;    this[names[i]] = arguments[i];&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;return constructor;&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// CRM Field Struct&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;var CRMField = MakeStruct("SchemaName Value");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Call Crm Service&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;function CallCrmService(soapBody, method)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;try {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;var xmlHttpRequest = new ActiveXObject("Msxml2.XMLHTTP");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;xmlHttpRequest.Open("POST", '/mscrmservices/2007/CrmService.asmx', false);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;xmlHttpRequest.setRequestHeader("SOAPAction", 'http://schemas.microsoft.com/crm/2007/WebServices/' + method);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;xmlHttpRequest.setRequestHeader("Content-Type", "text/xml; charset=utf-8");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;  var xml = "&amp;lt;?xml version=\"1.0\" encoding=\"utf-8\"?&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;" +&lt;br /&gt;  "&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;soap:Envelope xmlns:soap=\'http://schemas.xmlsoap.org/soap/envelope/\' xmlns:xsi=\'http://www.w3.org/2001/XMLSchema-instance\' xmlns:xsd=\'http://www.w3.org/2001/XMLSchema\'&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;" +&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;GenerateAuthenticationHeader() + "&amp;lt;soap:Body&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;" + soapBody + "&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;/soap:Body&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;/soap:Envelope&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;xmlHttpRequest.setRequestHeader("Content-Length", xml.length);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;xmlHttpRequest.send(xml);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;var resultXml = xmlHttpRequest.responseXML;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;var errorCount = resultXml.selectNodes('//error').length;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;if (errorCount != 0) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;var msg = resultXml.selectSingleNode('//description').nodeTypedValue;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;alert(msg);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;return null;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;return resultXml;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;catch(err) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;return null;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Create Record&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;function CreateRecord(entityName, fields)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;try {&lt;br /&gt;   var resultArray = new Array();&lt;br /&gt;   var attributesList = '';&lt;br /&gt;&lt;br /&gt;   for(var i = 0; i &lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;lt; fields.length; i++)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;attributesList += "&amp;lt;" + &lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;fields[i].SchemaName &lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;+ "&amp;gt;" + fields[i].Value + "&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;/"+fields[i].SchemaName+"&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;";&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   var xml = "&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;Create xmlns='http://schemas.microsoft.com/crm/2007/WebServices'&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;entity xsi:type='"+entityName+"'&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;" + attributesList + "&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;/entity&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;/Create&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;";&lt;br /&gt;   var resultXml = CallCrmService(xml, 'Create');&lt;br /&gt;&lt;br /&gt;   if (resultXml) {&lt;br /&gt;       var newid = resultXml.selectSingleNode('//CreateResult').nodeTypedValue;&lt;br /&gt;       return newid;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;catch(err) {&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;return null;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// USE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Create new Contact&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;function CreateContact()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;var fields = [new CRMField('firstname', 'Cornel'), new CRMField('lastname, 'Croitoriu')];&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;return CreateRecord('contact', fields); // return new contact id&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Create new Annotation&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;function CreateAnnotation(parentEntityName, parentEntityId, title, text)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;var fields = [new CRMField('objecttypecode', parentEntityName), new CRMField('objectid', parentEntityId), new CRMField('subject', title), new CRMField('notetext', text), new CRMField('isdocument', false), new CRMField("mimetype", "text/html")];&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;return CreateRecord('annotation', fields); // return new note id&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Example&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;CreateAnnotation('opportunity', 'FD140AAF-4DF4-11DD-BD17-0019B9312238', 'dynamic generated note', 'text goes here...');&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-6840834562956271667?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/6840834562956271667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=6840834562956271667' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6840834562956271667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6840834562956271667'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/call-crm-service-function.html' title='Creating records in CRM 2011 using JavaScript'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-3595973186748657776</id><published>2011-01-26T10:05:00.002+02:00</published><updated>2011-01-26T10:06:58.559+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='crm 2011'/><category scheme='http://www.blogger.com/atom/ns#' term='events'/><title type='text'>Microsoft Dynamics CRM 2011 Online Global Availability</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;Microsoft Dynamics CRM 2011&lt;/span&gt; goes international: 40 countries, 41 languages. Click &lt;a style="font-weight: bold; color: rgb(51, 102, 255);" href="http://www.switched-online.com/microsoft-dynamics-crm-2011-online-international-availability/"&gt;here&lt;/a&gt; for more details.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-3595973186748657776?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/3595973186748657776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=3595973186748657776' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3595973186748657776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3595973186748657776'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/microsoft-dynamics-crm-2011-online.html' title='Microsoft Dynamics CRM 2011 Online Global Availability'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-6623158345928816164</id><published>2011-01-26T09:38:00.001+02:00</published><updated>2011-01-26T09:40:13.340+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='crm 2011'/><title type='text'>Set a lookup value in CRM 2011</title><content type='html'>&lt;span style="color: rgb(0, 102, 0);"&gt;// Sets the lookup value for a certain field&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;function SetLookupValue(fieldName, id, name, entityType) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    if(fieldName != null) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;        var lookupValue = new Array();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;        lookupValue[0] = new Object();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;        lookupValue[0].id =  id;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;        lookupValue[0].name = name;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;        lookupValue[0].entityType = entityType;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;        Xrm.Page.getAttribute(fieldName).setValue(lookupValue);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// USE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;SetLookupValue("new_blogid", "{FD140AAF-4DF4-11DD-BD17-0019B9312238}", "CRM Stuff", "new_blog");&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-6623158345928816164?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/6623158345928816164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=6623158345928816164' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6623158345928816164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6623158345928816164'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/set-lookup-value-in-crm-2011.html' title='Set a lookup value in CRM 2011'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-8149752112992636100</id><published>2011-01-26T09:30:00.007+02:00</published><updated>2011-01-26T09:47:52.119+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='crm 2011'/><title type='text'>JavaScript structures</title><content type='html'>Here's a brief example of how to create structures in JavaScript. We'll use this function a lot from now on in our code.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Make Struct&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;function MakeStruct(names) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    var names = names.split(' ');&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;  var count = names.length;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;  function constructor() {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;      for (var i = 0; i &amp;lt; count; i++) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;            this[names[i]] = arguments[i];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;  }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;  return constructor;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;// Use&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Declaring the struct&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;var Person = MakeStruct("ID FirstName LastName Email");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Instance&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;var person1 = new Person(21, "Cornel", "Croitoriu", "cscmediadesign@yahoo.com");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hope you'll find this useful ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-8149752112992636100?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/8149752112992636100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=8149752112992636100' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8149752112992636100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8149752112992636100'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/javascript-structures.html' title='JavaScript structures'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-4965909284042618696</id><published>2011-01-25T19:07:00.004+02:00</published><updated>2011-01-25T23:26:09.268+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='crm 2011'/><title type='text'>CRM Stuff - 4 years together</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;CRM Stuff&lt;/span&gt; has reached its 4th anniversary. I'd like to thank the community for all the support, comments, ideas, suggestions and thoughts.&lt;br /&gt;&lt;br /&gt;Best of luck,&lt;br /&gt;Cornel&lt;br /&gt;CRM Stuff&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-4965909284042618696?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/4965909284042618696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=4965909284042618696' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/4965909284042618696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/4965909284042618696'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/crm-stuff-has-reached-its-4th.html' title='CRM Stuff - 4 years together'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-584369889241804501</id><published>2011-01-25T16:27:00.011+02:00</published><updated>2011-01-26T09:55:45.008+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='crm 2011'/><title type='text'>CRM 2011 Custom Form Button</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img94.imageshack.us/img94/1608/crm4button.png"&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Using some of the basic DOM vs JavaScript capabilities, you can use the following code to dynamically generate a &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;custom button&lt;/span&gt; for your&lt;span style="color: rgb(153, 0, 0); font-weight: bold;"&gt; CRM Form&lt;/span&gt;  in Microsoft Dynamics CRM 2011 (scroll to the end of this post to see  an example of how to use it). The button will look just like the ones in  the toolbar.&lt;br /&gt;All you need is a random CRM field (the type doesn't matter) to host the button (the original field content will be hidden). Also, you'll need a custom function to pass for the &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;onclick&lt;/span&gt; event.&lt;br /&gt;Note: the &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;image &lt;/span&gt;you use for the button must be placed inside the &lt;span style="font-weight: bold; color: rgb(0, 0, 0);"&gt;%programfiles%\Microsoft Dynamics CRM\CRMWeb\_imgs\ico&lt;/span&gt; folder.&lt;br /&gt;&lt;br /&gt;The final output looks like this:&lt;br /&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://img402.imageshack.us/img402/254/crm5button.png"&gt;&lt;img style="text-align: center; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 325px; height: 232px;" src="http://img402.imageshack.us/img402/254/crm5button.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;And... here's the code masterpiece :)...&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// CODE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Create Dynamic Button for CRM 5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;function CreateButtonCRM5(fieldName, buttonText, buttonWidth, iconName, clickEvent)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;functiontocall=clickEvent;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;crmForm.all.item(fieldName + "_c").style.display = "none";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;var li = document.createElement("LI");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;li.setAttribute('id', fieldName + 'LI');&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;li.setAttribute('className', 'ms-crm-Menu');&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;li.setAttribute('title', buttonText);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;li.setAttribute('onclick', functiontocall);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;li.setAttribute('onmousedown', push_custom_button);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;li.setAttribute('onmouseup', release_custom_button);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;li.style.width=buttonWidth;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;li.style.cursor="hand";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;li.style.textAlign="center";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;li.style.overflow="hidden";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;var span = document.createElement("span");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;span.setAttribute('className', 'ms-crm-Menu-Label');&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;span.setAttribute('id', fieldName + 'Span');&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;span.style.cursor = "hand";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;li.appendChild(span);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;li.onmouseover = function() { span.setAttribute('className', 'ms-crm-Menu-Label-Hovered'); }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;li.onmouseout = function() { span.setAttribute('className', 'ms-crm-Menu-Label'); }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;var a = document.createElement("a");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;a.setAttribute('id', fieldName + 'A');&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;a.setAttribute('className', 'ms-crm-Menu-Label');&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;a.onclick = function() { return false; }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;a.setAttribute('target', '_self');&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;a.setAttribute('href', 'javascript:onclick();');&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;a.style.cursor = "hand";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;span.appendChild(a);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;var img = document.createElement("img");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;img.setAttribute('id', fieldName + 'Img');&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;img.setAttribute('className', 'ms-crm-Menu-ButtonFirst');&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;img.setAttribute('src', '/_imgs/ico/' + iconName);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;img.style.cursor = "hand";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;var span2 = document.createElement("span");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;span2.setAttribute('id', fieldName + 'Span2');&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;span2.setAttribute('className', 'ms-crm-MenuItem-TextRTL');&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;span2.innerText = buttonText;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;span2.style.cursor = "hand";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;a.appendChild(img);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;a.appendChild(span2);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;removeChildNodes(crmForm.all.item(fieldName + "_d"));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;crmForm.all.item(fieldName + "_d").appendChild(li);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;function push_custom_button()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;window.event.srcElement.style.marginLeft="1px";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;window.event.srcElement.style.marginTop="1px";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;function release_custom_button()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;window.event.srcElement.style.marginLeft="0px";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;window.event.srcElement.style.marginTop="0px";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// USE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;function CustomClickFunction()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;alert("your code goes here...");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Create the button, using the new_custombutton field as a container&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;span style="font-style: italic;"&gt;CreateButtonCRM5('new_custombutton', 'Custom Button','100 px', '16_cancel.png', CustomClickFunction);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;BONUS:&lt;/span&gt;&lt;br /&gt;For the developers out there who are still using &lt;span style="font-weight: bold;"&gt;CRM 4.0&lt;/span&gt;, you can use the following &lt;span style="font-weight: bold;"&gt;function &lt;/span&gt;to generate a custom button, CRM styled, based on the same principles as previous article/function.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;// Create Dynamic Button for CRM 4&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;function CreateButtonCRM4(fieldName, buttonText, buttonWidth, clickEvent)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    functiontocall=clickEvent;   &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName + "_c").style.display = "none";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).DataValue = buttonText;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.borderRight="#3366cc 1px solid";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.paddingRight="5px";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.borderTop="#3366cc 1px solid";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.paddingLeft="5px";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.fontSize="11px";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.backgroundImage="url(/_imgs/btn_rest.gif)";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.borderLeft="#3366cc 1px solid";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.width=buttonWidth;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.cursor="hand";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.lineHeight="18px";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.borderBottom="#3366cc 1px solid";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.backgroundRepeat="repeat-x";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.fontFamily="Tahoma";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.height="20px";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.backgroundColor="#cee7ff";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.textAlign="center";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).style.overflow="hidden";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).attachEvent("onmousedown",push_custom_button);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).attachEvent("onmouseup",release_custom_button);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).attachEvent("onclick",functiontocall);   &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;    crmForm.all.item(fieldName).contentEditable= false;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-style: italic;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;and the output:&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://img94.imageshack.us/img94/1608/crm4button.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 275px; height: 181px;" src="http://img94.imageshack.us/img94/1608/crm4button.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-584369889241804501?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/584369889241804501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=584369889241804501' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/584369889241804501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/584369889241804501'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2011/01/crm-2011-custom-form-button.html' title='CRM 2011 Custom Form Button'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-3944902007257025581</id><published>2010-09-29T11:35:00.011+03:00</published><updated>2010-09-29T11:51:51.904+03:00</updated><title type='text'>Marketing List History</title><content type='html'>&lt;span style="font-family:arial;font-size:78%;"&gt;Greetings guys,&lt;br /&gt;&lt;br /&gt;Last week I worked on a very strange requirement to implement some kind of a marketing list auditing mechanism. The customer wants to be able to track which user added particular contact in a given marketing list. &lt;br /&gt;Since the list &lt;–&gt; contact relationship is many-to-many and therefore the relations are stored in a third table (called ListMemberBase in this case), there is no event available to trigger a workflow or do something out of the box. Technically nor the list is updated neither the contact. Since I didn’t have much time to do this I decided to use database trigger to achieve the goal. Yes it is unsupported but it works very fast and nice so I decided to share it.&lt;br /&gt;I first created a custom field of type ntext called Marketing List History (new_marketinglisthistory) on the Contact Entity. Added this to the contact form.&lt;br /&gt;Then created the following trigger:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-size:78%;color:#3366ff;"&gt;USE [XXX_MSCRM]&lt;br /&gt;GO&lt;br /&gt;/****** Object:  Trigger [dbo].[trg_ListHistory]    Script Date: 09/28/2010 17:09:44 ******/&lt;br /&gt;SET ANSI_NULLS ON&lt;br /&gt;GO&lt;br /&gt;SET QUOTED_IDENTIFIER ON&lt;br /&gt;GO&lt;br /&gt;CREATE TRIGGER [dbo].[trg_ListHistory]&lt;br /&gt;ON [dbo].[ListMemberBase]&lt;br /&gt;AFTER INSERT&lt;br /&gt;AS &lt;br /&gt;BEGIN&lt;br /&gt;SET NOCOUNT ON;&lt;br /&gt;if (select EntityType from inserted) = 2&lt;br /&gt;begin&lt;br /&gt;if (select New_MarketingListHistory from Contact, inserted where Contact.contactid=inserted.entityid) is null&lt;br /&gt;begin &lt;br /&gt;UPDATE Contact&lt;br /&gt;SET New_MarketingListHistory = (select l.createdbyname+' --&gt; '+listname from listmember l inner join list m on l.listid=m.listid where l.ListMemberId=inserted.ListMemberId)&lt;br /&gt;FROM inserted&lt;br /&gt;WHERE Contact.contactid = inserted.entityid&lt;br /&gt;end&lt;br /&gt;else&lt;br /&gt;begin&lt;br /&gt;UPDATE Contact&lt;br /&gt;SET New_MarketingListHistory = (select l.createdbyname+' --&gt; '+listname + char(13) from listmember l inner join list m on l.listid=m.listid where l.ListMemberId=inserted.ListMemberId) + (select New_MarketingListHistory from Contact where Contact.contactid=inserted.entityid) &lt;br /&gt;FROM inserted&lt;br /&gt;WHERE Contact.contactid = inserted.entityid&lt;br /&gt;end&lt;br /&gt;end&lt;br /&gt;END&lt;br /&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:78%;"&gt; Done! Here is the result:&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_hrncBziw2B4/TKL8-vEv5mI/AAAAAAAAABY/krltz_5kM58/s1600/1.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 224px;" src="http://2.bp.blogspot.com/_hrncBziw2B4/TKL8-vEv5mI/AAAAAAAAABY/krltz_5kM58/s400/1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5522254247828121186" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The last addition in a given marketing list goes on top of the history. &lt;br /&gt;You can also put this column in the marketing list view – all members to look like this:&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_hrncBziw2B4/TKL8kpzW-fI/AAAAAAAAABQ/EEAj0xeCktw/s1600/2.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 78px;" src="http://1.bp.blogspot.com/_hrncBziw2B4/TKL8kpzW-fI/AAAAAAAAABQ/EEAj0xeCktw/s400/2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5522253799736408562" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Regards!&lt;br /&gt;Rinshwind&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-3944902007257025581?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/3944902007257025581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=3944902007257025581' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3944902007257025581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3944902007257025581'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2010/09/marketing-list-history.html' title='Marketing List History'/><author><name>Rinshwind</name><uri>http://www.blogger.com/profile/02129736349299455418</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_hrncBziw2B4/TJhuaLWqBWI/AAAAAAAAAAM/8yCu73beJCA/S220/NEftimov.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_hrncBziw2B4/TKL8-vEv5mI/AAAAAAAAABY/krltz_5kM58/s72-c/1.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-4402298279596796150</id><published>2010-09-23T02:09:00.003+03:00</published><updated>2010-10-05T23:32:13.963+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='font'/><category scheme='http://www.blogger.com/atom/ns#' term='3.0'/><title type='text'>MS CRM 3.0: Set email default font</title><content type='html'>&amp;nbsp;Hello again,&lt;br /&gt;&lt;br /&gt;&amp;nbsp;I've been working recently on a way to set the default font within the CRM 3.0&amp;nbsp;email message edit field. The default font is Tahoma 10, however, a different font was needed (in this code, Arial). From the 3 specified font families, Internet Explorer will use the first one available on the system. As those 3 fonts are rather mundane, it's unlikely they will not be available. Nonetheless, should you decide to use a special font, make sure it's available on each system the code will run on.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;My method uses the "subject" field in order to determine if the form is used to view an email or to edit a new email / a reply email / a forwarded email. It was enough to achieve my goal on this task. The thing about IFrames is that you're not able to determine exactly when they've finished loading. I have attempted to use the onLoad event of the IFrame, however that lead to nothing viable.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Thus, it came down to the same old workaround of using a timer to make a check against the readyState of the IFrame object.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;The amount of time set on the timers is really up to you - it was enough for my objectives, you might need a quicker / slower time between checks. If the IFrame is not yet loaded, the method sets another timer to make another call attempt later. That, off course, only if the email is in edit mode (the "subject" field is editable).&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Please note that this is not tested on CRM 4.0. I am not aware if the IFrame structure is different than that used in 3.0, therefore I cannot claim it might work on 4.0 as well. ;-)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Cheers!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is the code (in my case, it was placed within the onLoad code of the Email entity):&lt;br /&gt;&lt;br /&gt;---------------------&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;function&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; forceFontFormat(parentNode, fontFamily, fontSizeInPoints, fontSizeInIndex)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;(parentNode)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;try&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; tagName = &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;''&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;(parentNode.tagName)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;tagName = parentNode.tagName.toLowerCase();&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;switch&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; (tagName)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;case&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;'div'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;case&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;'p'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;case&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;'span'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &amp;nbsp; &amp;nbsp;parentNode.style.fontFamily = fontFamily;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;parentNode.style.fontSize = fontSizeInPoints + &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;'pt'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;break&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;case&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;'font'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;parentNode.setAttribute(&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;'face'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;, fontFamily);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;parentNode.setAttribute(&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;'size'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;, fontSizeInIndex);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;break&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;catch&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; (err) { }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;((parentNode.childNodes) &amp;amp;&amp;amp; (parentNode.childNodes.length &amp;gt; 0))&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;for&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; i = 0; i &amp;lt; parentNode.childNodes.length; i++)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;forceFontFormat(parentNode.childNodes[i], fontFamily, fontSizeInPoints, fontSizeInIndex);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;function&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; forceDefaultCrm30EmailFontFamily()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;try&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; isEditable = &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;false&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;try&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; emailSubject = document.getElementById(&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;"subject"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;isEditable = emailSubject.isContentEditable;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;catch&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; (secondErr) {}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; ( isEditable == &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; iframe = document.getElementById(&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;"descriptionIFrame"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; forceFont = &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;false&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;try&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;(iframe.contentWindow.document.readyState == &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;"complete"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;forceFont = &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;catch&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; (thirdErr)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;forceFont = &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;false&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;(forceFont == &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;forceFontFormat(iframe.contentWindow.document.body, &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;'Arial'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;, &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;'10'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;, &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;'2'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setTimeout(forceDefaultCrm30EmailFontFamily, 1000);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;catch&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; (firstErr)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;/*alert("CRM Development\n\nThis warning does not affect your work, please ignore it.\nThank you!\n\n\nError message (see below):\n\n" + err.description);*/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;// Method call&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;setTimeout(forceDefaultCrm30EmailFontFamily, 1000);&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-4402298279596796150?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/4402298279596796150/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=4402298279596796150' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/4402298279596796150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/4402298279596796150'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2010/09/ms-crm-30-set-email-default-font.html' title='MS CRM 3.0: Set email default font'/><author><name>BlackDoom</name><uri>http://www.blogger.com/profile/08821084834233927325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_Coja2z-EXHM/SMDi5js9yZI/AAAAAAAAAAk/DIK0q5LwVfI/S220/BlackDoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-3176533770231787728</id><published>2010-09-15T15:36:00.004+03:00</published><updated>2010-09-15T19:31:03.609+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>Another way of loading certain CRM Views into an IFRAME on the main form</title><content type='html'>&lt;span style="font-size:85%;"&gt;Since every &lt;strong&gt;CRM View&lt;/strong&gt; has its own GUID and can be launched using the &lt;strong&gt;Advanced Find&lt;/strong&gt; out-of-the-box functionality, you can follow several easy steps to load what view you want (with whatever additional filters you want) in a certain &lt;strong&gt;IFRAME&lt;/strong&gt; available on the crmForm.&lt;br /&gt;Here's the scenario: you wanna display your active contacts (&lt;strong&gt;My Active Contacts&lt;/strong&gt; view) in a separate TAB on your account entity form.&lt;br /&gt;- find out the &lt;strong&gt;id&lt;/strong&gt; and &lt;strong&gt;objecttypecode&lt;/strong&gt; of your view;&lt;br /&gt;- create a new &lt;strong&gt;TAB&lt;/strong&gt; and &lt;strong&gt;IFRAME&lt;/strong&gt; on the form of the account entity;&lt;br /&gt;- dynamically set the IFRAME &lt;strong&gt;URL&lt;/strong&gt; as following: &lt;/span&gt;&lt;a href="http://[crm_server_name]/[ORGANIZATION_NAME]/AdvancedFind/AdvFind.aspx?EntityCode=[CRM_VIEW_ENTITY_CODE]&amp;amp;QueryId=[CRM_VIEW_ID]&amp;amp;ViewType=1039&amp;amp;AutoRun=True"&gt;&lt;strong&gt;&lt;span style="font-size:85%;color:#cc0000;"&gt;http://[crm_server_name]/[ORGANIZATION_NAME]/AdvancedFind/AdvFind.aspx?EntityCode=[CRM_VIEW_ENTITY_CODE]&amp;amp;QueryId=[CRM_VIEW_ID]&amp;amp;ViewType=1039&amp;amp;AutoRun=True&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt; (for our scenario, it would be something like &lt;/span&gt;&lt;a href="http://crmserver/MyOrganization/AdvancedFind/AdvFind.aspx?EntityCode=2&amp;amp;QueryId={FC3A5B78-1AA4-10C4-1234-12C45B78F01A}&amp;amp;AutoRun=True"&gt;&lt;strong&gt;&lt;span style="font-size:85%;color:#3333ff;"&gt;http://CRMSERVER/MyOrganization/AdvancedFind/AdvFind.aspx?EntityCode=2&amp;amp;QueryId={FC3A5B78-1AA4-10C4-1234-12C45B78F01A}&amp;amp;AutoRun=True&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt; )&lt;br /&gt;Warning: you must type "&lt;strong&gt;AutoRun=True&lt;/strong&gt;" using this casing. lower/upper case won't trigger the&lt;strong&gt; Advanced Find&lt;/strong&gt; to auto run (and that because the parsing of that parameter is as it is).&lt;br /&gt;&lt;br /&gt;There you go - your custom filtered view available anywhere you want on any form :)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-3176533770231787728?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/3176533770231787728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=3176533770231787728' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3176533770231787728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3176533770231787728'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2010/09/another-way-of-loading-certain-crm.html' title='Another way of loading certain CRM Views into an IFRAME on the main form'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-8146849216946082410</id><published>2010-04-25T19:53:00.000+03:00</published><updated>2010-04-25T19:53:09.221+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='3.0'/><category scheme='http://www.blogger.com/atom/ns#' term='simple'/><category scheme='http://www.blogger.com/atom/ns#' term='button'/><title type='text'>CRM 3.0: Simple button next to a given field</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_Coja2z-EXHM/S9Rwcy7WKeI/AAAAAAAAABQ/VQQrJM1xhX0/s1600/crmstuff.jpg" imageanchor="1" style="clear: right; cssfloat: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="55" src="http://4.bp.blogspot.com/_Coja2z-EXHM/S9Rwcy7WKeI/AAAAAAAAABQ/VQQrJM1xhX0/s400/crmstuff.jpg" tt="true" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;Hello!&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;The code below generates a simple button next to a given input field (let's say, for instance, the Subject field on a task record). As simple as that.&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;This is how a standard button is displayed by CRM. The basic magnifying glass on a lookup type field is an image from the standard images CRM comes with (so no, it's not a real button, like those on a Windows Forms application). If you would like that sort of a "button", you'd have to replace the code from the &lt;span style="color: #38761d;"&gt;&lt;span style="color: black;"&gt;"&lt;/span&gt;&lt;strong&gt;// Create a new button&lt;/strong&gt;&lt;/span&gt;" line down to the "&lt;strong&gt;&lt;span style="color: #38761d;"&gt;// Place the button inside the second table TD&lt;/span&gt;&lt;/strong&gt;" line. So, instead of a button INPUT element, you'd create an image field, with onMouseOver and onMouseOut events defined, so it would behave like a "real" button. ;-)&lt;br /&gt;&lt;br /&gt;The code and the call:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;function&lt;/span&gt; attachCRMbutton(currentfieldName)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #0b5394;"&gt;try&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #38761d;"&gt;// Get the parent DIV of the given field&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #0b5394;"&gt;var&lt;/span&gt; parentObject = document.getElementById(currentfieldName).parentNode;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: #38761d;"&gt; // Create a holding table&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #0b5394;"&gt;var&lt;/span&gt; myTable = document.createElement(&lt;span style="color: #990000;"&gt;"Table"&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #38761d;"&gt;// The table should fill the entire surrounding DIV element&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myTable.setAttribute(&lt;span style="color: #990000;"&gt;'width'&lt;/span&gt;, &lt;span style="color: #990000;"&gt;'100%'&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #38761d;"&gt;// Add one row to our table&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #0b5394;"&gt;var &lt;/span&gt;myRow = myTable.insertRow(0);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: #38761d;"&gt; // Create the TD elements&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #0b5394;"&gt;var&lt;/span&gt; originalChildNodesArea = myRow.insertCell(0);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #0b5394;"&gt;var&lt;/span&gt; buttonArea = myRow.insertCell(1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #38761d;"&gt;// For this example, a width of 75 pixels is enough to enclose the "Open address"&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; buttonArea.style.width = &lt;span style="color: #990000;"&gt;"75"&lt;/span&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #38761d;"&gt;// Place all the original child nodes inside the first table TD&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #0b5394;"&gt;for&lt;/span&gt;(&lt;span style="color: #0b5394;"&gt;var&lt;/span&gt; i = 0; i &amp;lt; parentObject.childNodes.length; i++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #0b5394;"&gt;var&lt;/span&gt; myChild = parentObject.childNodes[i];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; originalChildNodesArea.appendChild(myChild);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: #38761d;"&gt; // Attach the table to the DIV element&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parentObject.appendChild(myTable);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: #38761d;"&gt; // Create a new button&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #0b5394;"&gt;var&lt;/span&gt; myButton = document.createElement(&lt;span style="color: #990000;"&gt;'input'&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: #38761d;"&gt; // Set the open action&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #0b5394;"&gt;function&lt;/span&gt; launchURL()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.open(&lt;span style="color: #990000;"&gt;'http://crmstuff.blogspot.com'&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: #0b5394;"&gt;return true&lt;/span&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #38761d;"&gt;// Set the CRM-like attributes&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;myButton.setAttribute(&lt;span style="color: #990000;"&gt;'id'&lt;/span&gt;, &lt;span style="color: #990000;"&gt;'linkButton_'&lt;/span&gt; + currentfieldName);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myButton.setAttribute(&lt;span style="color: #990000;"&gt;'class'&lt;/span&gt;, &lt;span style="color: #990000;"&gt;'txt'&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;myButton.setAttribute(&lt;span style="color: #990000;"&gt;'type'&lt;/span&gt;, &lt;span style="color: #990000;"&gt;'button'&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;myButton.setAttribute(&lt;span style="color: #990000;"&gt;'maxLength'&lt;/span&gt;, &lt;span style="color: #990000;"&gt;'50'&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myButton.setAttribute(&lt;span style="color: #990000;"&gt;'value'&lt;/span&gt;, &lt;span style="color: #990000;"&gt;'Open address'&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;myButton.setAttribute(&lt;span style="color: #990000;"&gt;'req'&lt;/span&gt;, &lt;span style="color: #990000;"&gt;'0'&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myButton.attachEvent(&lt;span style="color: #990000;"&gt;'onclick'&lt;/span&gt;, launchURL);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: #38761d;"&gt; // Place the button inside the second table TD&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; buttonArea.appendChild(myButton);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #38761d;"&gt;// Done&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #0b5394;"&gt;catch&lt;/span&gt; (e) {}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #38761d;"&gt;// Method call&lt;/span&gt;&lt;br /&gt;attachCRMbutton(&lt;span style="color: #990000;"&gt;'subject'&lt;/span&gt;); &lt;br /&gt;&amp;nbsp; &lt;br /&gt;Good luck and good hunting!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-8146849216946082410?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/8146849216946082410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=8146849216946082410' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8146849216946082410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8146849216946082410'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2010/04/crm-30-simple-button-next-to-given.html' title='CRM 3.0: Simple button next to a given field'/><author><name>BlackDoom</name><uri>http://www.blogger.com/profile/08821084834233927325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_Coja2z-EXHM/SMDi5js9yZI/AAAAAAAAAAk/DIK0q5LwVfI/S220/BlackDoom.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_Coja2z-EXHM/S9Rwcy7WKeI/AAAAAAAAABQ/VQQrJM1xhX0/s72-c/crmstuff.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-9042593560107162429</id><published>2009-12-31T14:37:00.004+02:00</published><updated>2009-12-31T15:02:19.439+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='expected'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='3.0'/><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript Events'/><title type='text'>MS CRM 3.0 "Expected '}'" and "Object expected" errors</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Coja2z-EXHM/SzyefEBEvNI/AAAAAAAAABI/xVicI8ALhWk/s1600-h/crmError_on_commented_last_line.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 320px; height: 211px;" src="http://3.bp.blogspot.com/_Coja2z-EXHM/SzyefEBEvNI/AAAAAAAAABI/xVicI8ALhWk/s320/crmError_on_commented_last_line.jpg" alt="" id="BLOGGER_PHOTO_ID_5421382307938614482" border="0" /&gt;&lt;/a&gt;Hello, there :-)&lt;br /&gt;&lt;br /&gt;Have you ever encountered this situation? You write some decent, valid JS code, throw it inside a CRM field event box, Save &amp;amp; Close x2, publish, test, BAM!-error?&lt;br /&gt;&lt;br /&gt;Well, provided your code is actually correct (no logical, typing or access errors), you should check the next thing. In CRM 3.0 at least (not having a 4.0 box around atm., feel free to test if you're kind enough) if you load a piece of code having its last line using a line comment, you're in for trouble. I was lucky to find that out while debugging a whole page and noticed that the line comment I was using was extended to the rest of the CRM JS code (due to CRM placing the CATCH(e){} part of the TRY{} block right on the same line with the last line of my code). That was causing havoc to the entire page.&lt;br /&gt;&lt;br /&gt;So, remember this hint: &lt;span style="font-weight: bold;"&gt;never leave the last line of code having a line comment ( "//" )&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;/span&gt;or you're in for trouble :D&lt;br /&gt;&lt;br /&gt;Cheers!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-9042593560107162429?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/9042593560107162429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=9042593560107162429' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/9042593560107162429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/9042593560107162429'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2009/12/ms-crm-30-expected-and-object-expected.html' title='MS CRM 3.0 &quot;Expected &apos;}&apos;&quot; and &quot;Object expected&quot; errors'/><author><name>BlackDoom</name><uri>http://www.blogger.com/profile/08821084834233927325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_Coja2z-EXHM/SMDi5js9yZI/AAAAAAAAAAk/DIK0q5LwVfI/S220/BlackDoom.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Coja2z-EXHM/SzyefEBEvNI/AAAAAAAAABI/xVicI8ALhWk/s72-c/crmError_on_commented_last_line.jpg' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-1515839429987404486</id><published>2009-12-18T14:13:00.008+02:00</published><updated>2009-12-18T15:05:49.609+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><title type='text'>CRM 4.0 Server - Hardcore Installing</title><content type='html'>There are moments when installing the &lt;strong&gt;&lt;em&gt;&lt;span style="color:#990000;"&gt;Microsoft CRM 4.0 Server&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; can be a real pain, if your Organization doesn't offer you full "trust" in its AD (Active Directory). After some digging, finally found a working solution (start to end :P):&lt;br /&gt;&lt;br /&gt;&lt;em&gt;step 1:&lt;/em&gt; Find a nice Active Directory Admin to manually create 5 groups for you in the Organization Node, with full privileges for the username that you will install the CRM 4 Server with:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;PrivUserGroup&lt;br /&gt;PrivReportingGroup&lt;br /&gt;ReportingGroup&lt;br /&gt;SQLAccessGroup&lt;br /&gt;UserGroup&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;step 2:&lt;/em&gt; Create a custom &lt;em&gt;&lt;strong&gt;precreateconfig.xml&lt;/strong&gt;&lt;/em&gt; file that will look like this (ask the same friendly guy from first step to assist you with this):&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="color:#3366ff;"&gt;&amp;lt;crmsetup&amp;gt;&amp;lt;server&amp;gt;&amp;lt;groups autogroupmanagementoff="true"&amp;gt;&amp;lt;privusergroup&amp;gt;CN=PrivUserGroup,OU=Company Name,OU=Company Name,DC=&amp;lt;domain&amp;gt;,DC=&amp;lt;domain_extension&amp;gt;&amp;lt;/privusergroup&amp;gt; &amp;lt;sqlaccessgroup&amp;gt;CN=SQLAccessGroup,OU=Company Name,OU=Company Name, DC=&amp;lt;domain&amp;gt;,DC=&amp;lt;domain_extension&amp;gt;&amp;lt;/sqlaccessgroup&amp;gt; &amp;lt;usergroup&amp;gt;CN=UserGroup,OU=Company Name,OU=Company Name,DC=&amp;lt;domain&amp;gt;,DC=&amp;lt;domain_extension&amp;gt;&amp;lt;/usergroup&amp;gt; &amp;lt;reportinggroup&amp;gt;CN=ReportingGroup,OU=Company Name,OU=Company Name, DC=&amp;lt;domain&amp;gt;,DC=&amp;lt;domain_extension&amp;gt;&amp;lt;/reportinggroup&amp;gt; &amp;lt;privreportinggroup&amp;gt;CN=PrivReportingGroup,OU=Company Name,OU=Company Name, DC=&amp;lt;domain&amp;gt;,DC=&amp;lt;domain_extension&amp;gt;&amp;lt;/privreportinggroup&amp;gt; &amp;lt;/groups&amp;gt;&amp;lt;/server&amp;gt;&amp;lt;/crmsetup&amp;gt;&lt;/crmsetup&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;step 3: Go &lt;em&gt;Start &gt; Run &gt; cmd&lt;/em&gt; (Command Prompt) and type:&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="color:#3366ff;"&gt;&lt;drive:&gt;&amp;lt;Drive:&amp;gt;\CRM 4 Kit\Server\i386\SetupServer.exe /config &lt;drive&gt;&amp;lt;Drive:&amp;gt;\Path_to_your_creation\precreateconfig.xml&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;em&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;span style="color:#000000;"&gt;step 4:&lt;/span&gt;&lt;/em&gt; &lt;span style="color:#000000;"&gt;Pray for no further random errors while enjoying your progress bars @ Setup Screen:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;em&gt;step 5: &lt;/em&gt;After setup is completed successfully, ask the same kind AD Admin to re-add the CRM Administrator (the one you installed with) in the &lt;em&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;PrivUserGroup&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt; (with Full Privileges). See &lt;em&gt;&lt;strong&gt;step 1&lt;/strong&gt;&lt;/em&gt; for details...&lt;br /&gt;step 6: Go &lt;em&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;http://&amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;/&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt; and enjoy your CRM (now you will most likely have the right to finally use the product you &amp;lt;paid&amp;gt; for :)&lt;br /&gt;&lt;em&gt;step 7:&lt;/em&gt; ???&lt;br /&gt;&lt;em&gt;step 8:&lt;/em&gt; Profit!&lt;br /&gt;&lt;br /&gt;For a detailed article about 90% of this issue, you can study&lt;span style="color:#990000;"&gt; &lt;strong&gt;&lt;em&gt;&lt;a href="http://support.microsoft.com/kb/946677"&gt;this MSDN KB article&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Also, if your setup failed and cannot be uninstalled/repaired, while experimenting OTHER ways of installing than the one described above, I recommend you study &lt;a href="http://support.microsoft.com/kb/946980"&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="color:#990000;"&gt;this MSDN KB article&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; &lt;/a&gt;as well. You gotta try this one once if you wanna train your fingers in deleting keys in &lt;em&gt;&lt;strong&gt;RegEdit&lt;/strong&gt;&lt;/em&gt; @ light speed...&lt;br /&gt;&lt;br /&gt;Cheers and may the patience be with you :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-1515839429987404486?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/1515839429987404486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=1515839429987404486' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/1515839429987404486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/1515839429987404486'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2009/12/crm-40-server-hardcore-installing.html' title='CRM 4.0 Server - Hardcore Installing'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-8944344750226412562</id><published>2009-12-16T18:36:00.007+02:00</published><updated>2009-12-16T19:01:46.901+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='item'/><category scheme='http://www.blogger.com/atom/ns#' term='webservice'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='WebReference'/><category scheme='http://www.blogger.com/atom/ns#' term='schema'/><category scheme='http://www.blogger.com/atom/ns#' term='namespace'/><category scheme='http://www.blogger.com/atom/ns#' term='schemas.microsoft.com'/><title type='text'>WSDL Error: "Schema item 'element' named 'string' from namespace 'http://schemas.microsoft.com/crm/2006/WebServices'. [...]"</title><content type='html'>Hey,&lt;br /&gt;&lt;br /&gt;Have you ever encountered the following error?&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;"Schema item 'element' named 'string' from namespace 'http://schemas.microsoft.com/crm/2006/WebServices'. The global element 'http://schemas.microsoft.com/crm/2006/WebServices:string' has already been declared."&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That's what I got when I update my webservice references. Totally nagging and a real pain. That error prevented  me from being able to access all the custom fields I created on the CRM entities.&lt;br /&gt;Silly as it might sound, the sole answer to this problem was to take a deep breath (no, no Skype chat), backup the WSDL file and perform some orcish style surgery.&lt;br /&gt;&lt;br /&gt;My troubling line was this:&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;      &amp;lt;s:element name="SecurityPrincipal" nillable="true" type="s2:SecurityPrincipal"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;      &lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;s:element name="string" nillable="true" type="s:string"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;      &amp;lt;s:element name="TargetFieldType" type="tns:TargetFieldType"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Make sure you have a backup to the original WSDL file, then nuke (a.k.a. "remove") the red-highlighted line and save the changes to the WSDL file (in my case, it was the WSDL file corresponding to the CRM SDK service). Unless there are other errors, you will be able to build your project and your customizations will be available within Visual Studio.&lt;br /&gt;&lt;br /&gt;Good luck and happy coding afterwards!&lt;br /&gt;Cheers!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-8944344750226412562?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/8944344750226412562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=8944344750226412562' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8944344750226412562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8944344750226412562'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2009/12/wsdl-error-schema-item-element-named.html' title='WSDL Error: &quot;Schema item &apos;element&apos; named &apos;string&apos; from namespace &apos;http://schemas.microsoft.com/crm/2006/WebServices&apos;. [...]&quot;'/><author><name>BlackDoom</name><uri>http://www.blogger.com/profile/08821084834233927325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_Coja2z-EXHM/SMDi5js9yZI/AAAAAAAAAAk/DIK0q5LwVfI/S220/BlackDoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-4793933562525732674</id><published>2009-12-02T12:17:00.003+02:00</published><updated>2009-12-02T12:46:23.754+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='attachments'/><category scheme='http://www.blogger.com/atom/ns#' term='email'/><category scheme='http://www.blogger.com/atom/ns#' term='3.0'/><category scheme='http://www.blogger.com/atom/ns#' term='IDs'/><title type='text'>How to extract Email attachments IDs (CRM 3.0)</title><content type='html'>&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Howdy,&lt;br /&gt;&lt;br /&gt;At some point, I was requested by a manager to extend the functionality of the email entity (multiplying the number of messages sent) and I came across the attachment side. The following function is my solution to the occurring issue:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;// Author: Octavian Cucuta ( octavian.cucuta [ AT ] gmail.com )&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;// Release: 1.0.0.1 ( 2nd of December 2009 ) for MS CRM 3.0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;// * Gets the IDs of the uploaded attachments, as a string constant with IDs separated by pipes '|' characters&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;function&lt;/span&gt; GetEmailAttachmentsIDs()&lt;br /&gt;{&lt;br /&gt;   &lt;span style="color: rgb(51, 204, 0);"&gt; // Returning results as a string, but locally storing data into an array, for a more practical approach&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: rgb(51, 102, 255);"&gt;var&lt;/span&gt; result = Array();&lt;br /&gt;    &lt;span style="color: rgb(51, 204, 0);"&gt;// Encasing it all within a TRY{}CATCH{} block, to prevent unwanted errors&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: rgb(51, 102, 255);"&gt;try&lt;/span&gt;&lt;br /&gt;    {&lt;br /&gt;        &lt;span style="color: rgb(51, 204, 0);"&gt;// Get table containers&lt;/span&gt;&lt;br /&gt;        &lt;span style="color: rgb(51, 102, 255);"&gt;var&lt;/span&gt; myTables = document.getElementsByTagName(&lt;span style="color: rgb(204, 0, 0);"&gt;"table"&lt;/span&gt;);&lt;br /&gt;        &lt;span style="color: rgb(51, 204, 0);"&gt;// Since MS did not specify a unique ID or name for the table,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;        // checking which one has the correct 'oname' tag.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;        // Tip: on email, the table we need is the 48th&lt;/span&gt;&lt;br /&gt;        &lt;span style="color: rgb(51, 102, 255);"&gt;for&lt;/span&gt;(&lt;span style="color: rgb(51, 102, 255);"&gt;var&lt;/span&gt; i = 0; i &lt; myTables.length; i++)&lt;br /&gt;        {&lt;br /&gt;            &lt;span style="color: rgb(51, 102, 255);"&gt;if&lt;/span&gt;(myTables[i].oname == &lt;span style="color: rgb(204, 0, 0);"&gt;"1001"&lt;/span&gt;)&lt;br /&gt;            {&lt;br /&gt;                &lt;span style="color: rgb(51, 204, 0);"&gt;// Get attachment IDs&lt;/span&gt;&lt;br /&gt;                &lt;span style="color: rgb(51, 102, 255);"&gt;var &lt;/span&gt;index = 0;&lt;br /&gt;                &lt;span style="color: rgb(51, 102, 255);"&gt;for&lt;/span&gt;(&lt;span style="color: rgb(51, 102, 255);"&gt;var&lt;/span&gt; j = 0; j &lt; myTables[i].rows.length; j++)&lt;br /&gt;                {&lt;br /&gt;                    result[index] = &lt;span style="color: rgb(204, 0, 0);"&gt;""&lt;/span&gt;;&lt;br /&gt;                    result[index++] = myTables[i].rows[j].oid;&lt;br /&gt;                }&lt;br /&gt;                &lt;span style="color: rgb(51, 204, 0);"&gt;// Cancelling the processing loop here&lt;/span&gt;&lt;br /&gt;                &lt;span style="color: rgb(51, 102, 255);"&gt;break&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    &lt;span style="color: rgb(51, 102, 255);"&gt;catch&lt;/span&gt; (err)&lt;br /&gt;    {&lt;br /&gt;       &lt;span style="color: rgb(51, 204, 0);"&gt; // In case something went wrong, instead of providing a partial set of attachments, return none&lt;/span&gt;&lt;br /&gt;        result = Array();&lt;br /&gt;    }&lt;br /&gt;   &lt;br /&gt;    &lt;span style="color: rgb(51, 204, 0);"&gt;// Format output as a single string constant, separated by pipes&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: rgb(51, 102, 255);"&gt;return&lt;/span&gt; result.join(&lt;span style="color: rgb(204, 0, 0);"&gt;'|'&lt;/span&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;// Usage: place this function inside the needed event code body, then use the following call&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;var&lt;/span&gt; ids = GetEmailAttachmentsIDs();&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-4793933562525732674?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/4793933562525732674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=4793933562525732674' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/4793933562525732674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/4793933562525732674'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2009/12/how-to-extract-email-attachments-ids.html' title='How to extract Email attachments IDs (CRM 3.0)'/><author><name>BlackDoom</name><uri>http://www.blogger.com/profile/08821084834233927325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_Coja2z-EXHM/SMDi5js9yZI/AAAAAAAAAAk/DIK0q5LwVfI/S220/BlackDoom.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-4604162184063140409</id><published>2008-10-20T15:58:00.008+03:00</published><updated>2008-10-21T13:44:18.590+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript Events'/><title type='text'>JavaScript code reuse in CRM</title><content type='html'>&lt;div align="justify"&gt;In most of the cases, you don't want to copy-paste your custom methods in your &lt;strong&gt;CRM events source code&lt;/strong&gt; each time you need them. &lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;So, here's an easy approach on &lt;strong&gt;javascript code reuse in CRM&lt;/strong&gt;. &lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;First of all, make sure you have these 2 files: &lt;strong&gt;&lt;span style="color:#3333ff;"&gt;&lt;a href="http://www.csc.madebyexperts.com/blog/extjs/LargeNumbers.js"&gt;LargeNumber.js&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;span style="color:#3333ff;"&gt;&lt;a href="http://www.csc.madebyexperts.com/blog/extjs/StringsExtended.js"&gt;StringsExtended.js&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt; located in a custom folder - named CRMStuff - that is also located in the root folder of the &lt;strong&gt;&lt;span style="color:#990000;"&gt;Microsoft Dynamics CRM&lt;/span&gt;&lt;/strong&gt; server application (the relative paths to the files should be &lt;strong&gt;&lt;em&gt;&lt;span style="color:#3366ff;"&gt;"/crmstuff/LargeNumbers.js"&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;em&gt;&lt;span style="color:#3366ff;"&gt;"/crmstuff/StringsExtended.js"&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;). As you can see, these 2 files contain custom methods.&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;Click &lt;a href="http://www.csc.madebyexperts.com/blog/extjs/source.zip"&gt;&lt;span style="color:#3333ff;"&gt;&lt;strong&gt;here&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; to download the source code that allows you to load your &lt;strong&gt;*.js&lt;/strong&gt; files at runtime.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-4604162184063140409?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/4604162184063140409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=4604162184063140409' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/4604162184063140409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/4604162184063140409'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/10/javascript-code-reuse-in-crm.html' title='JavaScript code reuse in CRM'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-6597751166886128182</id><published>2008-09-08T13:03:00.004+03:00</published><updated>2008-09-08T13:28:26.877+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>Welcome Tavi</title><content type='html'>Let's give a big welcome to our newest author - &lt;a href="http://www.blogger.com/profile/08821084834233927325"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;Mr. Octavian Cucuta&lt;/span&gt;&lt;/strong&gt; &lt;/a&gt;on &lt;strong&gt;&lt;span style="color:#990000;"&gt;CRM Stuff&lt;/span&gt;&lt;/strong&gt; blog. He promises a lot :P&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-6597751166886128182?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/6597751166886128182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=6597751166886128182' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6597751166886128182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6597751166886128182'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/09/welcome-tavi.html' title='Welcome Tavi'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-8173825210297401005</id><published>2008-09-08T10:21:00.018+03:00</published><updated>2008-09-08T12:44:06.851+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><title type='text'>Large Integer division remainder</title><content type='html'>Recently, I had to obtain the remainder of a (seriously) &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;large integer division&lt;/span&gt; (32 digits long divided by another shorter integer; base 10) and found that JavaScript reliably supports operations only on 15-digit long integers. Thus, this what I came up with:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;// Gets the remainder from the division operation for LARGE numbers&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;// Support: positive integers; first parameter must not be 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;function GetRemainder(x, y) {&lt;br /&gt;if ((y != 0) &amp;amp;&amp;amp; (x.slice(0, 1) != "-") &amp;amp;&amp;amp; (y.slice(0, 1) != "-"))&lt;br /&gt;{&lt;br /&gt;var nr = x;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;// Removing the potential first '+' character&lt;/span&gt;&lt;br /&gt;if (nr.slice(0, 1) == "+") {nr = nr.slice(1);}&lt;br /&gt;if (y.slice(0, 1) == "+") {y = y.slice(1);}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;// Removing leading blank and tab characters on both numbers&lt;/span&gt;&lt;br /&gt;while ( (nr.charCodeAt(0) == 32) || (nr.charCodeAt(0) == 9) ){&lt;br /&gt;nr = nr.slice(1);&lt;br /&gt;}&lt;br /&gt;while ( (y.charCodeAt(0) == 32) || (y.charCodeAt(0) == 9) ){&lt;br /&gt;y = y.slice(1);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;var len = nr.length;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;// Checking if any non-digit characters are embedded into the input string&lt;/span&gt;&lt;br /&gt;var i = 0;&lt;br /&gt;for (i = 0; i &lt; len; i++)&lt;br /&gt;if (!((nr.charCodeAt(i) &gt;= 48) &amp;amp;&amp;amp; (nr.charCodeAt(i) &lt;= 57)) ) {&lt;br /&gt;return -1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;var number = parseInt(y,10);&lt;br /&gt;var remainder = 0;&lt;br /&gt;var ignore = 0;&lt;br /&gt;var k = '';&lt;br /&gt;&lt;br /&gt;while (ignore &lt; len) {&lt;br /&gt;if (remainder == 0) {&lt;br /&gt;var w1 = y+' ';&lt;br /&gt;var w2 = w1.length-1;&lt;br /&gt;k = nr.slice(ignore, ignore+w2);&lt;br /&gt;&lt;br /&gt;ignore += w2;&lt;br /&gt;remainder = parseInt(remainder+k, 10) % number;&lt;br /&gt;} else {&lt;br /&gt;k = nr.slice(ignore, ignore+1);&lt;br /&gt;ignore += 1;&lt;br /&gt;remainder = parseInt(remainder+k, 10) % number;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;return remainder;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;return -1;&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Usage:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;&lt;script type="text/javascript"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;document.write(GetRemainder("1", "2"))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;&lt;/script&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;script type="text/javascript"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;document.write(GetRemainder("1", "2"))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;/script&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;document.write(GetRemainder("12345678901234567890123456789012", "123"))&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;will output &lt;strong&gt;27&lt;/strong&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-8173825210297401005?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/8173825210297401005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=8173825210297401005' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8173825210297401005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8173825210297401005'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/09/recently-i-had-to-obtain-remainder-of.html' title='Large Integer division remainder'/><author><name>BlackDoom</name><uri>http://www.blogger.com/profile/08821084834233927325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_Coja2z-EXHM/SMDi5js9yZI/AAAAAAAAAAk/DIK0q5LwVfI/S220/BlackDoom.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-1176574565806955843</id><published>2008-09-05T16:48:00.003+03:00</published><updated>2008-09-05T17:13:12.321+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='fire onchange'/><category scheme='http://www.blogger.com/atom/ns#' term='onchange'/><title type='text'>OnChange Event</title><content type='html'>&lt;span style="font-family:arial;"&gt;When starting to work with CRM, one of the first things you learn is how to put some script on the onChange event. It's easy to do this and it really works. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Let's say you want to fire that script at the first moment your page is loaded.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;In CRM 3.0 you could do that writing a single line : &lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial;"&gt;crmForm.all.yourfield.FireOnChange(); &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;When starting to work with CRM 4.0 I tried to use the same code but it didn't work anymore. I was sooooo disappointed and I hardly found out the solution. That's why i thought of sharing it with you.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;The code for firing a script put on the onchange event for CRM 4.0 is: &lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial;"&gt;yourfield_onchange0();&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;I hope this helps. Happy coding! :)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-1176574565806955843?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/1176574565806955843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=1176574565806955843' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/1176574565806955843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/1176574565806955843'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/09/onchange-event.html' title='OnChange Event'/><author><name>Adi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-5248146391373540857</id><published>2008-09-05T15:27:00.002+03:00</published><updated>2008-09-05T16:24:22.520+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><title type='text'>Random Custom Serial Number Generator</title><content type='html'>&lt;span style="color:#000000;"&gt;A brief example on how to generate &lt;strong&gt;&lt;span style="color:#990000;"&gt;random serial numbers&lt;/span&gt;&lt;/strong&gt; with JavaScript. Enjoy!&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;// Symbols Array (A-Z, 0-9)&lt;br /&gt;&lt;/span&gt;var Symbols = new Array();&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;// Gets the ascii code for a certain character&lt;/span&gt;&lt;br /&gt;function GetAsciiBySymbol(letter)&lt;br /&gt;{&lt;br /&gt;var code = letter.charCodeAt(0);&lt;br /&gt;return code;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;// Populates a certain array with the A-Z, 0-9 symbols&lt;/span&gt;&lt;br /&gt;function PopulateArray(array) {&lt;br /&gt;var Position = 0;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;// Letters&lt;/span&gt;&lt;br /&gt;for(i=GetAsciiBySymbol('A'); i&lt;=GetAsciiBySymbol('Z'); i++) { &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;array[Position] = String.fromCharCode(i); &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Position++; &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;} &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;// Numbers&lt;/span&gt; &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;f&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;or(i=GetAsciiBySymbol('0'); i&lt;=GetAsciiBySymbol('9'); i++) { &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;array[Position] = String.fromCharCode(i); &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Position++; &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;} &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;} &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;// Gets the array symbol by a certain index&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;function GetSymbol(index) { &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;return Symbols[index]; &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;} &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;// Generates a new Serial Number&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;function GenerateSerial(serialLength, separatorSymbol, separatorPositions) { &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;var serial = ""; &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;var Offset = 0;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;for(i=0; i&lt;seriallength;&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;var rnd = Math.floor(Math.random()*Symbols.length); &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;serial += GetSymbol(rnd); &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;}&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;if(SeparatorPositionsOk(separatorPositions,serialLength)) { &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;for(i=0; i&lt;separatorpositions.length;&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;var position = separatorPositions[i]; &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;serial = serial.substring(0,position + Offset) + separatorSymbol + serial.substring(position + Offset, serial.length); Offset++; &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;} &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;}&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;&lt;br /&gt;return serial;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;// Checks if a certain array contains only items less than a maximum value&lt;/span&gt;&lt;br /&gt;function SeparatorPositionsOk(array, maxValue) {&lt;br /&gt;for(i=0; i&lt;array.length;&gt; maxValue) {&lt;br /&gt;return false;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;return true;&lt;br /&gt;}&lt;/span&gt;&lt;/strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;// Populate Symbols&lt;br /&gt;&lt;/span&gt;PopulateArray(Symbols);&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;// Example 1 - Format: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&lt;br /&gt;&lt;/span&gt;var SepPos = new Array();&lt;br /&gt;SepPos[0] = 5;&lt;br /&gt;SepPos[1] = 10;&lt;br /&gt;SepPos[2] = 15;&lt;br /&gt;SepPos[3] = 20;&lt;br /&gt;var NewSerial = GenerateSerial(25, "-",SepPos);&lt;br /&gt;alert("Serial Number: " + NewSerial);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;// Example 2 - Format: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&lt;/span&gt;&lt;br /&gt;SepPos = new Array();&lt;br /&gt;SepPos[0] = 8;&lt;br /&gt;SepPos[1] = 12;&lt;br /&gt;SepPos[2] = 16;&lt;br /&gt;SepPos[3] = 20;&lt;br /&gt;SepPos[4] = 24;&lt;br /&gt;NewSerial = GenerateSerial(32, "-",SepPos);&lt;br /&gt;alert("Serial Number: " + NewSerial);&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;// Example 3 - Format: XXX-XXXXXXX&lt;/span&gt;&lt;br /&gt;SepPos = new Array();&lt;br /&gt;SepPos[0] = 3;&lt;br /&gt;NewSerial = GenerateSerial(10, "-",SepPos);&lt;br /&gt;alert("Serial Number: " + NewSerial);&lt;/strong&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-5248146391373540857?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/5248146391373540857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=5248146391373540857' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/5248146391373540857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/5248146391373540857'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/09/random-custom-serial-number-generator.html' title='Random Custom Serial Number Generator'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-3366929984626922317</id><published>2008-09-05T10:15:00.003+03:00</published><updated>2008-09-05T10:19:29.830+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><title type='text'>Replace Chars in String - prototype example</title><content type='html'>An elegant way to &lt;span style="color:#990000;"&gt;&lt;strong&gt;replace certain chars from a string&lt;/strong&gt;&lt;/span&gt; with new ones:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;// Custom method for replacing certain chars from a string with new ones&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;function ReplaceChars(oldValue,newValue) { &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;   var newText = this.split(oldValue);   &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;   newText = newText.join(newValue); &lt;br /&gt;   return newText;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;}&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;// Attach the custom method to string object&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;String.prototype.Replace = ReplaceChars;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;// Usage&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;var myString = "Hello World!";&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;alert(myString.Replace("o","0")); &lt;/span&gt;&lt;span style="color:#009900;"&gt;// will output "Hell0 W0rld!"&lt;/span&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-3366929984626922317?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/3366929984626922317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=3366929984626922317' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3366929984626922317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3366929984626922317'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/09/replace-chars-in-string-prototype.html' title='Replace Chars in String - prototype example'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-1931591283113871782</id><published>2008-09-05T10:09:00.004+03:00</published><updated>2008-09-05T10:12:42.512+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><title type='text'>An easier way to hide or show a certain field in CRM</title><content type='html'>Simply use the function below:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;// Shows or hides a certain field&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;function HandleField(field, display) { &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;   document.getElementById(field+"_c").style.display = display; &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;   document.getElementById(field+"_d").style.display = display;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#009900;"&gt;/* Calling */&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;HandleField("fieldid", "inline"); &lt;span style="color:#009900;"&gt;// show inline&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;HandleField("fieldid", "block"); &lt;/span&gt;&lt;span style="color:#009900;"&gt;// show block&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;HandleField("fieldid", "none"); &lt;/span&gt;&lt;span style="color:#009900;"&gt;// hide&lt;/span&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-1931591283113871782?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/1931591283113871782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=1931591283113871782' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/1931591283113871782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/1931591283113871782'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/09/easier-way-to-hide-or-show-certain.html' title='An easier way to hide or show a certain field in CRM'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-2480895266868470852</id><published>2008-02-27T11:46:00.004+02:00</published><updated>2011-01-26T20:19:57.630+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><title type='text'>Create a button on your form</title><content type='html'>This is an example on how to create a button on the form, based on a former idea of Cornel. First of all we need to create a nvarchar attribute and put it on the form where we want our button. I assume that everybody knows how to create an attribute and put in on the form, so i won't talk about this.&lt;br /&gt;In this example my attribute's schema name is &lt;strong&gt;new_button&lt;/strong&gt;. Here is the code:&lt;br /&gt;&lt;br /&gt;/////////////////////////////////////////////////////////&lt;br /&gt;// This is how we call the button, what we see&lt;br /&gt;crmForm.all.new_button.DataValue = "Ok";&lt;br /&gt;// We could align it a bit&lt;br /&gt;crmForm.all.new_button.style.textAlign = "center";&lt;br /&gt;crmForm.all.new_button.vAlign = "middle";&lt;br /&gt;//we make the mouse look as a hand when we're moving over&lt;br /&gt;crmForm.all.new_button.style.cursor = "hand";&lt;br /&gt;crmForm.all.new_button.style.backgroundColor = "#CADFFC";&lt;br /&gt;crmForm.all.new_button.style.color = "#FF0000";&lt;br /&gt;crmForm.all.new_button.style.borderColor = "#330066";&lt;br /&gt;crmForm.all.new_button.style.fontWeight = "bold";&lt;br /&gt;crmForm.all.new_button.contentEditable = false;&lt;br /&gt;//we attach some events in order to make it look nice :)&lt;br /&gt;crmForm.all.new_button.attachEvent("onmousedown",color1);&lt;br /&gt;crmForm.all.new_button.attachEvent("onmouseup",color2);&lt;br /&gt;crmForm.all.new_button.attachEvent("onmouseover",color3);&lt;br /&gt;crmForm.all.new_button.attachEvent("onmouseleave",color4);&lt;br /&gt;function color3() {&lt;br /&gt;crmForm.all.new_button.style.backgroundColor = "#6699FF";&lt;br /&gt;}&lt;br /&gt;function color4() {&lt;br /&gt;crmForm.all.new_button.style.backgroundColor = "CADFFC";&lt;br /&gt;}&lt;br /&gt;function color1() {&lt;br /&gt;crmForm.all.new_button.style.color = "000099";&lt;br /&gt;}&lt;br /&gt;function color2() {&lt;br /&gt;crmForm.all.new_button.style.color = "FF0000";&lt;br /&gt;}&lt;br /&gt;//here we attach what we want our button do&lt;br /&gt;crmForm.all.new_button.attachEvent("onclick",someFunction);&lt;br /&gt;//////////////////////////////////////////////////////////////&lt;br /&gt;Here is how the button looks like:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.csc.madebyexperts.com/blog/adi/ok.jpg"&gt;&lt;img style="display: block; margin: 0px auto 10px; width: 530px; text-align: center;" alt="" src="http://www.csc.madebyexperts.com/blog/adi/ok.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I didn't define here the "&lt;strong&gt;someFunction",&lt;/strong&gt; i leave it up to you. First time when i used such a button was to add product to a quote without click-ing on "New Quote Product", calling a Web Service...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-2480895266868470852?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/2480895266868470852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=2480895266868470852' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/2480895266868470852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/2480895266868470852'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/02/create-button-on-your-form.html' title='Create a button on your form'/><author><name>Adi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-1109378647181699273</id><published>2008-02-18T10:15:00.004+02:00</published><updated>2008-02-18T10:18:48.291+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>Welcome Alex</title><content type='html'>Welcome &lt;a href="http://www.blogger.com/profile/14923993014114908364"&gt;Mr. Alexandru Radu&lt;/a&gt; on &lt;strong&gt;&lt;a href="http://crmstuff.blogspot.com/"&gt;&lt;span style="color:#990000;"&gt;CRM Stuff blog&lt;/span&gt;&lt;/a&gt;&lt;/strong&gt;. Alex is a CRM Project Manager, Consultant, Trainer and also a MCP, with lots and lots of CRM experience.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-1109378647181699273?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/1109378647181699273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=1109378647181699273' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/1109378647181699273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/1109378647181699273'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/02/welcome-alex.html' title='Welcome Alex'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-6219725129721326930</id><published>2008-02-14T09:24:00.004+02:00</published><updated>2008-02-14T09:29:36.932+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>Welcome Adi</title><content type='html'>Let's give a warm welcome to our newest author - &lt;a href="http://www.blogger.com/profile/09587446028344339172"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Mr. Adrian Toderut&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt; on &lt;strong&gt;&lt;span style="color:#990000;"&gt;CRM Stuff blog&lt;/span&gt;&lt;/strong&gt;. He's a very good consultant with a lot of experience in Microsoft Dynamics CRM.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-6219725129721326930?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/6219725129721326930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=6219725129721326930' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6219725129721326930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6219725129721326930'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/02/welcome-adi.html' title='Welcome Adi'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-2227070828644380644</id><published>2008-02-05T09:22:00.000+02:00</published><updated>2008-02-05T09:26:10.353+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>Back...</title><content type='html'>Well, like I said, I'm back in business and I promise that asap I'll post a few useful ideas. I'd like to think that 2008 will be the year of CRM in Romania and not only, as MS Dynamics CRM Titan will replace, step by step, CRM 3.0. Stay tuned...&lt;br /&gt;&lt;br /&gt;P.S. Thanks Microsoft for the MCP in Business Solutions, looks nice :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-2227070828644380644?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/2227070828644380644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=2227070828644380644' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/2227070828644380644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/2227070828644380644'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/02/back.html' title='Back...'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-3528366541616327068</id><published>2008-02-01T12:36:00.000+02:00</published><updated>2008-02-01T12:44:56.524+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>Nofollow - free</title><content type='html'>&lt;p align="justify"&gt;Blogger by default, and other blogging software such as WordPress, automatically adds the &lt;strong&gt;&lt;span style="color:#990000;"&gt;"nofollow"&lt;/span&gt;&lt;/strong&gt; microformat extension to all links from user generated content. User generated content is defined as comments or external sources such as linkbacks and trackbacks.&lt;/p&gt;&lt;br /&gt;&lt;p align="justify"&gt;I support the people of the blogging community who have chosen to remove &lt;strong&gt;&lt;span style="color:#990000;"&gt;NoFollow&lt;/span&gt;&lt;/strong&gt; for blog comments and linkbacks/trackbacks and I highly recommend others to do so.&lt;/p&gt;&lt;br&gt;&lt;p align="justify"&gt;Removing the "nofollow" attribute will help people who are giving you comments to increase their website/blog PR (Page Rank). I currently set the lower limit to 1 for my blog, so feel free to comment, 1 comment/user will help you raise your PR :)&lt;/p&gt;&lt;br&gt;&lt;p align="justify"&gt;If you want to learn more about this feature, try the following links:&lt;/p&gt;&lt;p align="justify"&gt;&lt;a href="http://webstractions.blogspot.com/2007/05/removing-nofollow-from-blogger-styled.html"&gt;&lt;strong&gt;Click here for blogspot/blogger&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;a href="http://www.michelem.org/wordpress-plugin-nofollow-free/"&gt;&lt;strong&gt;Click here for WordPress&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-3528366541616327068?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/3528366541616327068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=3528366541616327068' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3528366541616327068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3528366541616327068'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/02/nofollow-free.html' title='Nofollow - free'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-5666191690479412832</id><published>2008-01-10T09:39:00.000+02:00</published><updated>2008-01-10T09:42:57.257+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>Exams...</title><content type='html'>&lt;div align="justify"&gt;Considering the fact that the examining session at the college has begun for me, I'll suspend the posting around here for a while (until february 2008). I promise to be back with new useful features asap. Good luck!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-5666191690479412832?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/5666191690479412832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=5666191690479412832' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/5666191690479412832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/5666191690479412832'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/01/exams.html' title='Exams...'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-476738908202305055</id><published>2008-01-06T23:32:00.000+02:00</published><updated>2008-01-07T20:25:28.907+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='video'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='reviews'/><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><title type='text'>World without Romania</title><content type='html'>&lt;div align="center"&gt;And here are some relevant images (I'd like to think) about my country:&lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;br /&gt;&lt;object height="355" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/PpHLKZkYd2w&amp;amp;rel=1"&gt;&lt;param name="wmode" value="transparent"&gt;&lt;embed src="http://www.youtube.com/v/PpHLKZkYd2w&amp;rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;***&lt;br /&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;object height="373" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/ucsfHPbhzDw&amp;amp;rel=0&amp;amp;border=1"&gt;&lt;param name="wmode" value="transparent"&gt;&lt;embed src="http://www.youtube.com/v/ucsfHPbhzDw&amp;rel=0&amp;border=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="373"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-476738908202305055?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/476738908202305055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=476738908202305055' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/476738908202305055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/476738908202305055'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/01/world-without-romania.html' title='World without Romania'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-2096841538967422587</id><published>2008-01-04T21:38:00.000+02:00</published><updated>2008-01-04T21:43:38.338+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><title type='text'>Introducing...</title><content type='html'>I'd like to introduce &lt;a href="http://andreigabur.wordpress.com/"&gt;&lt;strong&gt;Andrei Gabur's Blog&lt;/strong&gt;&lt;/a&gt;. It's an interesting blog about philosophy and history. Give it a look when you've got the time :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-2096841538967422587?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/2096841538967422587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=2096841538967422587' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/2096841538967422587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/2096841538967422587'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/01/introducing.html' title='Introducing...'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-6341481992041057144</id><published>2008-01-01T16:07:00.000+02:00</published><updated>2008-01-01T17:05:57.530+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='reviews'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>Small Business Loan</title><content type='html'>If you are seeking money in the form of an unsecured small business or personal loan, you have located a useful source to assist with your financing needs. &lt;a href="http://www.americaoneunsecured.com/"&gt;&lt;strong&gt;&lt;span style="color:#990000;"&gt;America One&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt; is what you're looking for. In the past year alone, they’ve helped their clients receive millions in approvals.By using this great service - &lt;a href="http://www.americaoneunsecured.com/"&gt;&lt;strong&gt;Small Business Loans&lt;/strong&gt;&lt;/a&gt;, you benefit from extensive knowledge of today's most active lending sources. Their specialty product is a signature loan that can be used for any purpose, with no collateral required. Approval is based upon your current credit standing.&lt;br /&gt;&lt;br /&gt;Why use &lt;strong&gt;&lt;a href="http://www.americaoneunsecured.com/"&gt;&lt;span style="color:#990000;"&gt;America One&lt;/span&gt;&lt;/a&gt;&lt;/strong&gt;?&lt;br /&gt;&lt;br /&gt;First and foremost when you borrow money, you want to be sure you are applying with a company you can trust. At America One Funding, they have been providing consumers and small business owners’ fair and equal access to unsecured financing nationwide since 1999. It seems these days that almost every financial website claims to be the biggest and best, but in their case it is a fact. They are the largest unsecured loan consulting and placement firm in the nation for seven consecutive years, assisting over 500,000 applicants per year.&lt;br /&gt;&lt;br /&gt;While they are proud of their growth, they also work hard to maintain the entrepreneurial grassroots approach to financing that has led to their success. When you work with America One, you will receive superior and accessible service from a highly trained unsecured financing expert. You will find them compassionate to your unique situation, but also willing to speak to you in realistic terms about your loan options. They will never tell you what you want to hear, just to get your business. In addition, unlike many other banks and finance companies, they are exclusively dedicated to unsecured financing, which leads to higher approval rates and better overall customer satisfaction.&lt;br /&gt;&lt;br /&gt;At &lt;strong&gt;&lt;a href="http://www.americaoneunsecured.com/"&gt;&lt;span style="color:#990000;"&gt;America One&lt;/span&gt;&lt;/a&gt;&lt;/strong&gt;, the business philosophy can be summed up by one simple question; why risk your valuable assets to borrow money if you don’t have to? When you allow them to help you, your unsecured loan request will have best possible chance of being approved for the amount of money you need, and at rate and term you can afford. It only takes a few minutes to pre-qualify and you can have money in hand as fast as a few days.&lt;br /&gt;&lt;br /&gt;The professional staff is available for a free consultation. Start by clicking the service most suitable for you, right after you visit &lt;a href="http://www.americaoneunsecured.com/"&gt;&lt;strong&gt;Small Business Loan&lt;/strong&gt;&lt;/a&gt; website.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-6341481992041057144?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/6341481992041057144/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=6341481992041057144' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6341481992041057144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/6341481992041057144'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2008/01/small-business-loan.html' title='Small Business Loan'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-5550912749850883086</id><published>2007-12-23T12:48:00.000+02:00</published><updated>2007-12-23T22:37:08.526+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><title type='text'>Holiday Wishes</title><content type='html'>&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="color:#990000;"&gt;Merry Christmas and A Happy New Year&lt;/span&gt;&lt;/strong&gt; to you all!&lt;/div&gt;&lt;br&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;p align="center"&gt;Click below to view your &lt;strong&gt;Christmas Card&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;&lt;button onclick="window.open('http://www.csc.madebyexperts.com/blog/xmas/card.html','myPopup','scrollbars=0, resizable=0, width = 420, height = 280, left = 300, top = 200');;"&gt;View Card&lt;/button&gt;&lt;br /&gt;&lt;br /&gt;If you can't view the greeting card, try installing the &lt;strong&gt;&lt;a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"&gt;&lt;span style="color:#3366ff;"&gt;Adobe Flash Player 9&lt;/span&gt;&lt;/a&gt;&lt;/strong&gt; first. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-5550912749850883086?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/5550912749850883086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=5550912749850883086' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/5550912749850883086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/5550912749850883086'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2007/12/holiday-wishes.html' title='Holiday Wishes'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-3250399719109798670</id><published>2007-12-21T09:44:00.000+02:00</published><updated>2007-12-21T10:00:26.651+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><title type='text'>21 and counting :)</title><content type='html'>&lt;div align="justify"&gt;It seems that I'm getting older everyday :) &lt;strong&gt;21&lt;/strong&gt; years already passed away... Free &lt;strong&gt;&lt;span style="color:#990000;"&gt;champagne&lt;/span&gt;&lt;/strong&gt; and &lt;span style="color:#990000;"&gt;&lt;strong&gt;candy&lt;/strong&gt;&lt;/span&gt; for everyone :)&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://www.csc.madebyexperts.com/blog/21/champagne.png"&gt;&lt;img style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 100px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://www.csc.madebyexperts.com/blog/21/champagne.png" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align="center"&gt;***&lt;/p&gt;&lt;br /&gt;&lt;p align="center"&gt;&lt;a href="http://www.csc.madebyexperts.com/blog/21/candy.jpg"&gt;&lt;img style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://www.csc.madebyexperts.com/blog/21/candy.jpg" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align="center"&gt;Sincerely,&lt;/p&gt;&lt;div align="right"&gt;&lt;a href="http://www.csc.madebyexperts.com/blog/bluetuxsmall.png"&gt;&lt;img style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: right" alt="" src="http://www.csc.madebyexperts.com/blog/bluetuxsmall.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-3250399719109798670?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/3250399719109798670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=3250399719109798670' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3250399719109798670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3250399719109798670'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2007/12/21-and-counting.html' title='21 and counting :)'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-9162951880793086918</id><published>2007-12-14T12:22:00.000+02:00</published><updated>2007-12-14T12:36:33.469+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='tools'/><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>Microsoft CRM Google Maps integration tool</title><content type='html'>&lt;div align="justify"&gt;I'm proud to present a very useful tool - &lt;a href="http://www.crmmaps.com/"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;MSCRM Google Maps&lt;/span&gt;&lt;/strong&gt; &lt;/a&gt;- developed by &lt;strong&gt;&lt;span style="color:#990000;"&gt;Wolter Kreun&lt;/span&gt;&lt;/strong&gt;, a friend of mine, a tool that managed to bring together two strenghts: &lt;strong&gt;&lt;span style="color:#990000;"&gt;Microsoft Dynamics CRM&lt;/span&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;span style="color:#990000;"&gt;Google Maps&lt;/span&gt;&lt;/strong&gt;.&lt;br /&gt;You can get a free sample from &lt;a href="http://www.crmmaps.com/"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;www.crmmaps.com&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; &lt;/strong&gt;and also see the latest news about it.&lt;br /&gt;The beta version of the MSCRM Google Maps is available in 5 different languages: &lt;strong&gt;Russian&lt;/strong&gt; (thanks to Evgeniy Yurevich), &lt;strong&gt;Spanish&lt;/strong&gt; (thanks to Geraldo Luiz Yoshizawa), &lt;strong&gt;French&lt;/strong&gt; (thanks to Samy Barmada), &lt;strong&gt;German&lt;/strong&gt; (thanks to Jaksch Michael) and &lt;strong&gt;Romanian&lt;/strong&gt; (thanks to Cornel Croitoriu).&lt;br /&gt;&lt;br /&gt;Here are some sample &lt;strong&gt;movies&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;1. &lt;a href="http://www.temptus.nl/simpleaccount.html"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Showing an map from the account entity&lt;/span&gt; &lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;2. &lt;a href="http://www.temptus.nl/customentity.html"&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;Showing one or more custom entities&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;/a&gt;3. &lt;a href="http://www.temptus.nl/allaccounts.html"&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Showing alle contacts in one map&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;We hope you'll find this tool useful and use the full version in your projects.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-9162951880793086918?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/9162951880793086918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=9162951880793086918' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/9162951880793086918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/9162951880793086918'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2007/12/im-proud-to-present-very-useful-tool.html' title='Microsoft CRM Google Maps integration tool'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-3284134468294467522</id><published>2007-12-02T10:42:00.000+02:00</published><updated>2007-12-02T11:10:20.910+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='Tutorials'/><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript Events'/><title type='text'>Generating tooltips on certain events</title><content type='html'>A &lt;strong&gt;&lt;span style="color:#990000;"&gt;tooltip&lt;/span&gt;&lt;/strong&gt; is a small box of explanatory text (usually on yellow background) that appears when the mouse pointer is held over a button or other interface element.&lt;br /&gt;In Microsoft Dynamics CRM we can define constraints (masks) on certain fields. It is desired that the user is well informed about the text’s format, in real time, when triggering the &lt;strong&gt;onmousemove&lt;/strong&gt; event on a certain field.&lt;br /&gt;In this tutorial, we show you a function that generates tooltips on CRM’s forms, triggered by mouse events, such as: &lt;strong&gt;onclick&lt;/strong&gt;, &lt;strong&gt;ondblclick&lt;/strong&gt;, &lt;strong&gt;onmouseover&lt;/strong&gt;, &lt;strong&gt;onmousedown&lt;/strong&gt; and especially, &lt;strong&gt;onmousemove&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;The links for this tutorial are:&lt;br /&gt;English version --&gt; &lt;a href="http://www.csc.madebyexperts.com/blog/tooltip/crm_tooltip_en.zip"&gt;click here&lt;/a&gt;&lt;br /&gt;Romanian version --&gt; &lt;a href="http://www.csc.madebyexperts.com/blog/tooltip/crm_tooltip_ro.zip"&gt;click here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here are some prints (examples) of different types and styles of tooltips made with the function presented in this tutorial:&lt;br /&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;strong&gt;Example 1&lt;/strong&gt;:&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Account Entity - Account Name - onmousemove event&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.csc.madebyexperts.com/blog/tooltip/print1.jpg"&gt;&lt;span style="font-size:0;"&gt;&lt;img style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 214px; CURSOR: hand; TEXT-ALIGN: center" alt="Example 1" src="http://www.csc.madebyexperts.com/blog/tooltip/printsmall1.jpg" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;strong&gt;Example 2&lt;/strong&gt;:&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Account Entity - Primary Contact - onmousemove event&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.csc.madebyexperts.com/blog/tooltip/print2.jpg"&gt;&lt;span style="font-size:0;"&gt;&lt;img style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 354px; CURSOR: hand; TEXT-ALIGN: center" alt="Example 2" src="http://www.csc.madebyexperts.com/blog/tooltip/printsmall2.jpg" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;strong&gt;Example 3&lt;/strong&gt;:&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Account Entity - Body - ondblclick event&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.csc.madebyexperts.com/blog/tooltip/print3.jpg"&gt;&lt;span style="font-size:0;"&gt;&lt;img style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; TEXT-ALIGN: center" alt="Example 3" src="http://www.csc.madebyexperts.com/blog/tooltip/printsmall3.jpg" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;strong&gt;Example 4&lt;/strong&gt;:&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;Account Entity - Account Number - onmousemove event (default Windows style)&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.csc.madebyexperts.com/blog/tooltip/print4.jpg"&gt;&lt;span style="font-size:0;"&gt;&lt;img style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 202px; CURSOR: hand; TEXT-ALIGN: center" alt="Example 4" src="http://www.csc.madebyexperts.com/blog/tooltip/printsmall4.jpg" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;We hope you found this solution useful :) If you find, by any chance, any mistakes in the tutorial, please let us know. Thank you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-3284134468294467522?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/3284134468294467522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=3284134468294467522' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3284134468294467522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3284134468294467522'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2007/12/generating-tooltips-on-certain-events.html' title='Generating tooltips on certain events'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-3201792058947819931</id><published>2007-11-27T21:37:00.000+02:00</published><updated>2007-11-27T23:19:24.001+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><title type='text'>How to retrieve the ID of a parent entity</title><content type='html'>&lt;div align="justify"&gt;I saw this topic several times in the &lt;a href="http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.crm.developer"&gt;&lt;strong&gt;Microsoft CRM Developer Community&lt;/strong&gt; &lt;/a&gt;and I decided to share this line of code with you :)&lt;br /&gt;&lt;br /&gt;Let's take a simple example. We want to retrieve the &lt;strong&gt;&lt;span style="color:#990000;"&gt;Quote's ID&lt;/span&gt;&lt;/strong&gt; (guid) when we open the &lt;strong&gt;&lt;span style="color:#990000;"&gt;Quote Details&lt;/span&gt;&lt;/strong&gt; form (pressing the &lt;strong&gt;New Quote Product&lt;/strong&gt; on the &lt;strong&gt;&lt;span style="color:#990000;"&gt;Quote&lt;/span&gt;&lt;/strong&gt; entity). All we have to do is add the following code on the &lt;strong&gt;&lt;span style="color:#3366ff;"&gt;OnLoad() Event&lt;/span&gt;&lt;/strong&gt; of the child entity (&lt;strong&gt;&lt;span style="color:#990000;"&gt;Quote Detail&lt;/span&gt;&lt;/strong&gt; in our case):&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;var MyOpenerID = opener.document.crmForm.ObjectId;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;alert(MyOpenerID);&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In the same way, we can also take other values (fields) from the parent entity. Feel free to test ;)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-3201792058947819931?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/3201792058947819931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=3201792058947819931' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3201792058947819931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/3201792058947819931'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2007/11/how-to-retrieve-id-of-parent-entity.html' title='How to retrieve the ID of a parent entity'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-8305553540013903400</id><published>2007-11-21T12:32:00.000+02:00</published><updated>2007-11-21T13:21:18.085+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><title type='text'>Microsoft Dynamics CRM Exam - MB2-423</title><content type='html'>Done... Complete... 95% passing score... Thanks for the support everyone, especially &lt;a href="http://www.evo-software.com/"&gt;EVO Software&lt;/a&gt; and &lt;a href="http://www.cwrmobility.nl/weblog/"&gt;Thomas Davin&lt;/a&gt; :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-8305553540013903400?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/8305553540013903400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=8305553540013903400' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8305553540013903400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8305553540013903400'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2007/11/microsoft-dynamics-crm-exam-mb2-423.html' title='Microsoft Dynamics CRM Exam - MB2-423'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-5875767062575470577</id><published>2007-11-18T17:59:00.001+02:00</published><updated>2007-11-18T17:59:42.699+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><title type='text'>Microsoft Dynamics CRM Exam</title><content type='html'>This week, on the 21st of November, I'll sustain my first &lt;strong&gt;&lt;span style="color:#990000;"&gt;CRM Exam&lt;/span&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;span style="color:#3366ff;"&gt;CRM-30-423 - Microsoft Business Solutions - CRM 3.0 Applications&lt;/span&gt;&lt;/strong&gt;. Wish me luck all :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-5875767062575470577?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/5875767062575470577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=5875767062575470577' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/5875767062575470577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/5875767062575470577'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2007/11/microsoft-dynamics-crm-exam_18.html' title='Microsoft Dynamics CRM Exam'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-1005643476945738298</id><published>2007-11-17T23:39:00.000+02:00</published><updated>2007-11-17T23:43:42.001+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript Events'/><title type='text'>Using the "onmousemove" event</title><content type='html'>&lt;p&gt;The &lt;strong&gt;&lt;span style="color:#990000;"&gt;"onmousemove"&lt;/span&gt;&lt;/strong&gt; event can help you make sure that your script runs as well as your cursor on the form :) I'll give you a brief example of its usage. We want to trap the cursor's coordinates as it moves in a certain entity's form in CRM.&lt;br&gt;&lt;br&gt;Add the following code on the &lt;strong&gt;OnLoad()&lt;/strong&gt; event of a form you want:&lt;br&gt;&lt;br&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;document.onmousemove = function() {&lt;br&gt;window.status = event.clientX + "x"+event.clientY;&lt;br&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br&gt;&lt;br&gt;Of course, you may attach the &lt;strong&gt;&lt;span style="color:#990000;"&gt;"onmousemove"&lt;/span&gt;&lt;/strong&gt; event to the &lt;strong&gt;crmForm&lt;/strong&gt; too, using:&lt;br&gt;&lt;br&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;crmForm.onmousemove = function() {&lt;br&gt;window.status = event.clientX + "x"+event.clientY;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;But this way, your status will update only if your cursor moves inside the crmForm, not in the entire window like in our first example.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-1005643476945738298?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/1005643476945738298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=1005643476945738298' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/1005643476945738298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/1005643476945738298'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2007/11/using-onmousemove-event.html' title='Using the &quot;onmousemove&quot; event'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-2734234130604143318</id><published>2007-11-10T11:20:00.000+02:00</published><updated>2007-11-10T11:59:40.987+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript Events'/><title type='text'>Using the "onkeyup" event</title><content type='html'>&lt;p align="justify"&gt;&lt;span &gt;Let's add some interactivity to our customizations :) For example, we have 4 fields: &lt;strong&gt;Amount&lt;/strong&gt; (Schema Name &lt;strong&gt;&lt;span style="color:#990000;"&gt;amount&lt;/span&gt;&lt;/strong&gt;, Type &lt;strong&gt;&lt;span style="color:#990000;"&gt;float(2)&lt;/span&gt;&lt;/strong&gt;), &lt;strong&gt;Discount&lt;/strong&gt;&lt;br /&gt;(Schema Name &lt;strong&gt;&lt;span style="color:#990000;"&gt;discount&lt;/span&gt;&lt;/strong&gt;, Type &lt;strong&gt;&lt;span style="color:#990000;"&gt;float(2)&lt;/span&gt;&lt;/strong&gt;), &lt;strong&gt;Tax&lt;/strong&gt; (Schema Name &lt;strong&gt;&lt;span style="color:#990000;"&gt;tax&lt;/span&gt;&lt;/strong&gt;, Type &lt;strong&gt;&lt;span style="color:#990000;"&gt;float(2)&lt;/span&gt;&lt;/strong&gt;) and &lt;strong&gt;Total Amount&lt;/strong&gt; (Schema Name &lt;strong&gt;&lt;span style="color:#990000;"&gt;totalamount&lt;/span&gt;&lt;/strong&gt;, Type &lt;strong&gt;&lt;span style="color:#990000;"&gt;float(2)&lt;/span&gt;&lt;/strong&gt;) and we&lt;br /&gt;want to calculate in real time the &lt;strong&gt;&lt;span style="color:#990000;"&gt;Total Amount&lt;/span&gt;&lt;/strong&gt; based on the &lt;strong&gt;&lt;span style="color:#990000;"&gt;Amount&lt;/span&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;span style="color:#990000;"&gt;Discount&lt;/span&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;span style="color:#990000;"&gt;Tax&lt;/span&gt;&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;First let's consider the following formulas: &lt;/span&gt;&lt;strong&gt;&lt;br /&gt;&lt;span &gt;Tax = 1.19 * Amount &lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;br /&gt;&lt;span &gt;Discount - between 1 and 100 (percentage of Amount) &lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;br /&gt;&lt;span &gt;Total Amount = (100 - Discount)/100 * Amount + Tax &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span &gt;Second, we create the function that calculates the &lt;strong&gt;Total Amount&lt;/strong&gt; on the basis of the other 3 and we type the following code on the &lt;strong&gt;OnLoad() event&lt;/strong&gt; of a form which contains our fields: &lt;/span&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span &gt;function updateTotalAmount() { &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;&lt;span &gt;var amount = crmForm.all.amount.DataValue; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;&lt;span &gt;var discount = crmForm.all.discount.DataValue; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;&lt;span &gt;var tax = crmForm.all.tax.DataValue; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;&lt;span &gt;var total; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;&lt;span &gt;tax = 0.19 * amount; //we assume that the tax represents 19% of the amount &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;&lt;span &gt;total = (100 - discount) / 100 * amount + tax; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;&lt;span &gt;crmForm.all.tax.DataValue = tax; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;&lt;span &gt;crmForm.all.totalamount.DataValue = total; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;&lt;span &gt;}&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span &gt;&lt;br /&gt;&lt;br /&gt;And now, we attach an &lt;strong&gt;&lt;span style="color:#990000;"&gt;"onkeyup" event&lt;/span&gt;&lt;/strong&gt; to the &lt;strong&gt;amount&lt;/strong&gt;, &lt;strong&gt;discount&lt;/strong&gt; and &lt;strong&gt;tax&lt;/strong&gt; fields. The event will call our function, like this: &lt;/span&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span &gt;crmForm.all.amount.attachEvent("onkeyup",updateTotalAmount); &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;&lt;span &gt;crmForm.all.tax.attachEvent("onkeyup",updateTotalAmount); &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;&lt;br /&gt;&lt;span &gt;crmForm.all.discount.attachEvent("onkeyup",updateTotalAmount); &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span &gt;Now, we may test the interactivity of our form. Type a value for the &lt;strong&gt;Amount&lt;/strong&gt; and &lt;strong&gt;Discount&lt;/strong&gt; fields and you'll see, in real time, how the &lt;strong&gt;Total Amount&lt;/strong&gt; field updates.&lt;br /&gt;&lt;br /&gt;Here's a printscreen of our example:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.csc.madebyexperts.com/blog/jsevents/onkeyup.jpg"&gt;&lt;span &gt;&lt;img style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 225px; CURSOR: hand; TEXT-ALIGN: center" alt="onkeyup event" src="http://www.csc.madebyexperts.com/blog/jsevents/onkeyup.jpg" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-2734234130604143318?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/2734234130604143318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=2734234130604143318' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/2734234130604143318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/2734234130604143318'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2007/11/using-onkeyup-event.html' title='Using the &quot;onkeyup&quot; event'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-8212474946802825152</id><published>2007-11-04T15:27:00.000+02:00</published><updated>2007-11-04T15:32:30.064+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><title type='text'>How to read / write files using JavaScript</title><content type='html'>&lt;span style="font-family:georgia;"&gt;To &lt;strong&gt;read &lt;/strong&gt;and &lt;strong&gt;write&lt;/strong&gt; files from JavaScript, we will use an &lt;strong&gt;ActiveX Object&lt;/strong&gt; from the &lt;strong&gt;&lt;span style="color:#990000;"&gt;Scripting.FileSystemObject&lt;/span&gt;&lt;/strong&gt; library, which knows how to handle files. The second parameter of the &lt;strong&gt;&lt;span style="color:#990000;"&gt;OpenTextFile&lt;/span&gt;&lt;/strong&gt; function represents what we want the object to do with the file (read = 1, write = 2, append = 8).&lt;br /&gt;&lt;br /&gt;And here are the scripts:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;1. Reading from file&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;color:#3366ff;"&gt;&lt;strong&gt;function ReadFromFile(sText){&lt;br /&gt;var fso = new ActiveXObject("Scripting.FileSystemObject");&lt;br /&gt;var s = fso.OpenTextFile("C:\\example.txt", 1, true);&lt;br /&gt;row = s.ReadLine(); //also we can use s.ReadAll() to read all the lines;&lt;br /&gt;alert(row);&lt;br /&gt;s.Close();&lt;br /&gt;}&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2. Writing to file&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;color:#3366ff;"&gt;&lt;strong&gt;function WriteToFile(sText){&lt;br /&gt;var fso = new ActiveXObject("Scripting.FileSystemObject");&lt;br /&gt;var s = fso.OpenTextFile("C:\\example.txt", 8, true); //if we use 2 instead of 8, the file will be overwritten;&lt;br /&gt;s.WriteLine("new line added");&lt;br /&gt;s.Close();&lt;br /&gt;}&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Though, to make this scripts work in Internet Explorer, you must go to &lt;strong&gt;Tools/Internet Options/Security&lt;/strong&gt;, add your page to &lt;strong&gt;Trusted sites&lt;/strong&gt;, then go to &lt;strong&gt;Custom level..&lt;/strong&gt;. and look for &lt;strong&gt;Initialize and script ActiveX controls not marked as safe for scripting&lt;/strong&gt;. &lt;strong&gt;Enable&lt;/strong&gt; it and restart the Internet Explorer.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-8212474946802825152?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/8212474946802825152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=8212474946802825152' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8212474946802825152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8212474946802825152'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2007/11/how-to-read-write-files-using.html' title='How to read / write files using JavaScript'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-8241621032648802463</id><published>2007-10-30T20:31:00.000+02:00</published><updated>2007-10-31T09:59:13.606+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='Tutorials'/><title type='text'>Coloring Activities (Tutorial)</title><content type='html'>&lt;div align="justify"&gt;&lt;span style="color:#990000;"&gt;&lt;strong&gt;Activities&lt;/strong&gt;&lt;/span&gt; are central when working with sales in Microsoft CRM. Whether you need to contact a customer, send a quote, or run a campaign, it is all about activities in Microsoft Dynamics CRM.&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;Downloading and reading this tutorial you will learn, step by step, a simple interface method of &lt;strong&gt;&lt;span style="color:#990000;"&gt;coloring activities&lt;/span&gt;&lt;/strong&gt; in Microsoft Dynamics CRM 3.0 on certain conditions.&lt;/div&gt;&lt;div align="justify"&gt;Let’s take, for example, the &lt;strong&gt;&lt;span style="color:#990000;"&gt;Due Date&lt;/span&gt;&lt;/strong&gt; until when an activity must be executed (closed) and, depending on its status, we will color it in red if it is open and &lt;strong&gt;overdue&lt;/strong&gt; (the current date is greater than the due date) or in black if it is closed or open and &lt;strong&gt;not overdue&lt;/strong&gt; (the due date is greater than the current date).&lt;br /&gt;&lt;br /&gt;The links for this tutorial are:&lt;br /&gt;English version --&gt; &lt;a href="http://www.csc.madebyexperts.com/blog/gridcolor/crm_activities_color_en.zip"&gt;click here&lt;/a&gt;&lt;br /&gt;Romanian version --&gt; &lt;a href="http://www.csc.madebyexperts.com/blog/gridcolor/crm_activities_color_ro.zip"&gt;click here&lt;/a&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br&gt;We hope you found this solution useful :) If you find, by any chance, any mistakes in the tutorial, please let us know. Thank you.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-8241621032648802463?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/8241621032648802463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=8241621032648802463' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8241621032648802463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/8241621032648802463'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2007/10/coloring-activities-tutorial.html' title='Coloring Activities (Tutorial)'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-5681673517006497681</id><published>2007-10-27T17:26:00.000+03:00</published><updated>2007-10-31T10:00:48.696+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript Events'/><title type='text'>Events in JavaScript</title><content type='html'>&lt;div align="justify"&gt;&lt;span style="font-family:georgia;"&gt;Events are the beating heart of any JavaScript application. Without events there are no scripts. Take a look at any web page with JavaScript in it: in nearly all cases there will be an event that triggers the script. The reason is very simple. JavaScript is meant to add interactivity to your pages: the user does something and the page reacts.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;Therefore JavaScript needs a way of detecting user actions so that it knows when to react. It also needs to know which functions to execute, functions that do something that you, the web developer, have judged likely to increase the appeal of your pages. These pages describe the best way to write such scripts. It isn’t easy, but it is very satisfying work.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;When the user does something an event takes place. There are also some events that aren’t directly caused by the user: the &lt;span style="FONT-WEIGHT: bold; COLOR: rgb(153,0,0)"&gt;load event&lt;/span&gt; that fires when a page has been loaded, for instance.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;There are various types of events, such as:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;1. &lt;span style="FONT-WEIGHT: bold; COLOR: rgb(153,0,0)"&gt;Interface Events&lt;/span&gt;: onfocus/onblur, oncontextmenu, onload/onunload, onscroll, onresize;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;2. &lt;span style="FONT-WEIGHT: bold; COLOR: rgb(153,0,0)"&gt;Mouse Events&lt;/span&gt;: onclick, ondblclick, onmousedown/onmouseup, onmouseenter/onmouseleave, onmouseover/onmouseout, onmousemove, onmousewheel;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;3. &lt;span style="FONT-WEIGHT: bold; COLOR: rgb(153,0,0)"&gt;Form Events&lt;/span&gt;: onchange, onreset, onselect, onsubmit;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;4. &lt;span style="FONT-WEIGHT: bold; COLOR: rgb(153,0,0)"&gt;Keyboard Events&lt;/span&gt;: onkeypress, onkeydown/onkeyup;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;5. &lt;span style="FONT-WEIGHT: bold; COLOR: rgb(153,0,0)"&gt;Miscellaneous Events&lt;/span&gt;: onabort, onerror, onerrorupdate, ontimeerror, onsubtreemodified, onactivate/ondeactivate, onbeforeactivate/onbeforedeactivate, onbeforeprint/onafterprint, onbeforeupdate/onafterupdate, onbeforecut, onbeforecopy, onbeforepaste, oncut, oncopy, onpaste, onpropertychange, onreadystatechange, onresizestart/onresizeend, oncontrolselect, onselectstart, onselectionchange, onbounce, onfocusin/onfocusout, onbeforeeditfocus, onlosecapture, oncellchange, ondrag, ondragenter/ondragleave, ondragover, ondragstart/ondragend, ondrop, onmove, onmovestart/onmoveend, onlayoutcomplete, ondataavailable, ondatasetchange, ondatasetcomplete, onfilterchange, onrowenter, onrowexit, onrowsdelete, onrowsinserted, onstart/onfinish, onhelp, onbeforeunload.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;In Microsoft Dynamics CRM, the &lt;span style="FONT-WEIGHT: bold; COLOR: rgb(153,0,0)"&gt;syntax &lt;/span&gt;for using an event is:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;span style="FONT-WEIGHT: bold"&gt;crmForm.all.schema_name.attachEvent('event_name',func);&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;function func() {&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;//code&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;or&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;span style="FONT-WEIGHT: bold"&gt;crmForm.all.schema_name.onevent = function() {&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;//code&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;For example, if you want to display the label for a certain field in CRM when you click the field, all you have to write is one of the following codes on the &lt;span style="FONT-WEIGHT: bold; COLOR: rgb(153,0,0)"&gt;OnLoad()&lt;/span&gt; event:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;span style="font-family:georgia;"&gt;1. &lt;span style="FONT-WEIGHT: bold"&gt;crmForm.all.schema_name.attachEvent('onclick',showLabel);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;function showLabel() {&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;alert(crmForm.all.schema_name_c.innerHTML);&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;2. &lt;span style="FONT-WEIGHT: bold"&gt;crmForm.all.new_camp.onclick = function() {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;alert(crmForm.all.new_camp_c.innerHTML);&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;Enjoy testing the other events. I’m sure you’ll find them very useful ;)&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-5681673517006497681?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/5681673517006497681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=5681673517006497681' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/5681673517006497681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/5681673517006497681'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2007/10/events-in-javascript.html' title='Events in JavaScript'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9118937471541412696.post-4195483014368295391</id><published>2007-10-21T17:54:00.000+03:00</published><updated>2007-10-31T09:58:42.463+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='all'/><category scheme='http://www.blogger.com/atom/ns#' term='crm'/><title type='text'>About Microsoft Dynamics CRM (brief description)</title><content type='html'>&lt;p class="MsoNormal" style="text-align: justify; font-family: georgia;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;strong&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;Microsoft Dynamics CRM&lt;/span&gt;&lt;/strong&gt; is a &lt;strong&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;Customer Relationship Management&lt;/span&gt;&lt;/strong&gt; software package developed by &lt;strong&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;Microsoft&lt;/span&gt;&lt;/strong&gt;. It is a part of the &lt;strong&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;Microsoft Dynamics&lt;/span&gt;&lt;/strong&gt; family of business tools.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family: georgia;font-family:'Georgia','serif';" &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;The current version of Dynamics is &lt;strong&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;3.0&lt;/span&gt;&lt;/strong&gt;, released on December, 2005. The most notable updates over the version 1.2 (version 2 was skipped entirely) are the ease of creating customizations to CRM, the switch from using Crystal Reports to Microsoft SQL Reporting Services to run reports, the ability to run on Windows Vista and Outlook 2007, and support for SQL 2005 and Exchange 2007. &lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;There are different versions of &lt;strong&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;Microsoft Dynamics CRM 3.0&lt;/span&gt;&lt;/strong&gt; available: Microsoft Dynamics CRM 3.0 Professional, Microsoft Dynamics CRM 3.0 Small Business Edition and Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers.&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;Microsoft CRM also supports integration with Windows Mobile devices via the Microsoft CRM Mobile Client. &lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/dynamics/crm/default.mspx"&gt;Click here for Microsoft Dynamics Official Website&lt;/a&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style="font-family: georgia;"&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9118937471541412696-4195483014368295391?l=crmstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmstuff.blogspot.com/feeds/4195483014368295391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9118937471541412696&amp;postID=4195483014368295391' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/4195483014368295391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9118937471541412696/posts/default/4195483014368295391'/><link rel='alternate' type='text/html' href='http://crmstuff.blogspot.com/2007/10/about-microsoft-dynamics-crm-brief.html' title='About Microsoft Dynamics CRM (brief description)'/><author><name>CSC</name><uri>http://www.blogger.com/profile/10391093134355090986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_PLNHtTPlTAc/TUBhiWgQnsI/AAAAAAAAAF0/sqRMSV7bp-E/s220/162716_10150125081703169_594633168_7528644_6479781_n.jpg'/></author><thr:total>3</thr:total></entry></feed>
