<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Random Musings</title>
	<atom:link href="http://haditeo.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://haditeo.wordpress.com</link>
	<description></description>
	<lastBuildDate>Mon, 31 Oct 2011 12:14:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='haditeo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Random Musings</title>
		<link>http://haditeo.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://haditeo.wordpress.com/osd.xml" title="Random Musings" />
	<atom:link rel='hub' href='http://haditeo.wordpress.com/?pushpress=hub'/>
		<item>
		<title>ISDA and BBA</title>
		<link>http://haditeo.wordpress.com/2010/12/04/isda-and-bba/</link>
		<comments>http://haditeo.wordpress.com/2010/12/04/isda-and-bba/#comments</comments>
		<pubDate>Sat, 04 Dec 2010 02:14:53 +0000</pubDate>
		<dc:creator>haditeo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[acronym]]></category>

		<guid isPermaLink="false">http://haditeo.wordpress.com/?p=279</guid>
		<description><![CDATA[ISDA (International Swaps and Derivatives Association) and BBA (British Bankers&#8217; Association) are organizations that developed standard documentation for OTC derivatives. ATS is the acronym for Alternative Trading System. ECN is the acronym for Electronic Communications Network. ECN is the ATS in the US. ABS is the acronym for Automated Bond System. NYSE&#8217;s ABS is the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=279&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.isda.org/">ISDA</a> (International Swaps and Derivatives Association) and  <a href="http://www.bba.org.uk">BBA</a> (British Bankers&#8217; Association) are organizations that developed standard documentation for OTC derivatives.</p>
<p>ATS is the acronym for Alternative Trading System.</p>
<p>ECN is the acronym for Electronic Communications Network. ECN is the ATS in the US.</p>
<p>ABS is the acronym for Automated Bond System. NYSE&#8217;s ABS is the example of the electronic platform which is used to trade bonds.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haditeo.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haditeo.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haditeo.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haditeo.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haditeo.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haditeo.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haditeo.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haditeo.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haditeo.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haditeo.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haditeo.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haditeo.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haditeo.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haditeo.wordpress.com/279/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=279&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haditeo.wordpress.com/2010/12/04/isda-and-bba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba688f9bd1e3d64494e90af21c2ba3db?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haditeo</media:title>
		</media:content>
	</item>
		<item>
		<title>trouble processing &#8220;javax/crypto/SealedObject.class&#8221; error</title>
		<link>http://haditeo.wordpress.com/2010/04/02/trouble-processing-javaxcryptosealedobject-class-error/</link>
		<comments>http://haditeo.wordpress.com/2010/04/02/trouble-processing-javaxcryptosealedobject-class-error/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 02:12:24 +0000</pubDate>
		<dc:creator>haditeo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://haditeo.wordpress.com/?p=277</guid>
		<description><![CDATA[While building a simple Android application, i have encountered above error message. After googling around, i found the solution for this issue<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=277&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While building a simple Android application, i have encountered above error message.</p>
<p>After googling around, i found the <a href="http://groups.google.com/group/android-developers/browse_thread/thread/fcf6f24c516d151f/fc2232c0306d37e7?lnk=raot">solution</a> for this issue</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haditeo.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haditeo.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haditeo.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haditeo.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haditeo.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haditeo.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haditeo.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haditeo.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haditeo.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haditeo.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haditeo.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haditeo.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haditeo.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haditeo.wordpress.com/277/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=277&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haditeo.wordpress.com/2010/04/02/trouble-processing-javaxcryptosealedobject-class-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba688f9bd1e3d64494e90af21c2ba3db?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haditeo</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello World from Android Emulator</title>
		<link>http://haditeo.wordpress.com/2010/03/04/hello-world-from-android-emulator/</link>
		<comments>http://haditeo.wordpress.com/2010/03/04/hello-world-from-android-emulator/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 16:41:15 +0000</pubDate>
		<dc:creator>haditeo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://haditeo.wordpress.com/?p=266</guid>
		<description><![CDATA[Curious at how to test Android application through Android emulator, i started by reading through the Quick Start Page Encountered two issues: Downloaded Eclipse Classis previously. When i tried to install the ADT Plugin for eclipse, i have encountered several error messages saying that some packages need to be downloaded. Eventually i downloaded the Java [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=266&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Curious at how to test Android application through Android emulator, i started by reading through the <a href="http://developer.android.com/sdk/index.html">Quick Start Page</a></p>
<p>Encountered two issues:</p>
<ol>
<li>Downloaded Eclipse Classis previously. When i tried to install the ADT Plugin for eclipse, i have encountered several error messages saying that some packages need to be downloaded. Eventually i downloaded the Java J2EE Version of Eclipse</li>
<li>Since i used Microsoft Virtual PC for testing purposes, during the downloading of Android Platform, i encountered the issue that it needs to connect to internet to download the necessary Android Platform. No choice, i turned on &#8220;Shared Networking (NAT)&#8221;, so that the guest machine can connect to internet.</li>
</ol>
<p>I noticed that at the first time, when the emulator is booted up, it took a while. Subsequently, i just recompiled my code and automatically the emulator loaded the new code</p>
<p><a href="http://haditeo.files.wordpress.com/2010/03/hello-world-icon.jpg"><img src="http://haditeo.files.wordpress.com/2010/03/hello-world-icon.jpg?w=300&#038;h=208" alt="" title="Hello World icon" width="300" height="208" class="alignnone size-medium wp-image-267" /><br />
Notice that the application icon is shown at the 3rd row and 3rd column.<br />
</a></p>
<p><a href="http://haditeo.files.wordpress.com/2010/03/hello-world.jpg"><img src="http://haditeo.files.wordpress.com/2010/03/hello-world.jpg?w=300&#038;h=210" alt="" title="Hello World" width="300" height="210" class="alignnone size-medium wp-image-268" /><br />
When it&#8217;s clicked, it shown the Hello World text<br />
</a></p>
<p><a href="http://haditeo.files.wordpress.com/2010/03/youtube.jpg"><img src="http://haditeo.files.wordpress.com/2010/03/youtube.jpg?w=300&#038;h=210" alt="" title="Youtube" width="300" height="210" class="alignnone size-medium wp-image-272" /><br />
Screenshot of Youtube<br />
</a></p>
<p><a href="http://haditeo.files.wordpress.com/2010/03/facebook.jpg"><img src="http://haditeo.files.wordpress.com/2010/03/facebook.jpg?w=300&#038;h=210" alt="" title="Facebook" width="300" height="210" class="alignnone size-medium wp-image-273" /><br />
Screenshot of Facebook<br />
</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haditeo.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haditeo.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haditeo.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haditeo.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haditeo.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haditeo.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haditeo.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haditeo.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haditeo.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haditeo.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haditeo.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haditeo.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haditeo.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haditeo.wordpress.com/266/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=266&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haditeo.wordpress.com/2010/03/04/hello-world-from-android-emulator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba688f9bd1e3d64494e90af21c2ba3db?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haditeo</media:title>
		</media:content>

		<media:content url="http://haditeo.files.wordpress.com/2010/03/hello-world-icon.jpg?w=300" medium="image">
			<media:title type="html">Hello World icon</media:title>
		</media:content>

		<media:content url="http://haditeo.files.wordpress.com/2010/03/hello-world.jpg?w=300" medium="image">
			<media:title type="html">Hello World</media:title>
		</media:content>

		<media:content url="http://haditeo.files.wordpress.com/2010/03/youtube.jpg?w=300" medium="image">
			<media:title type="html">Youtube</media:title>
		</media:content>

		<media:content url="http://haditeo.files.wordpress.com/2010/03/facebook.jpg?w=300" medium="image">
			<media:title type="html">Facebook</media:title>
		</media:content>
	</item>
		<item>
		<title>Error TF86001 or TF80042 Opening Microsoft Team Foundation Server Work Items in Microsoft Excel or Microsoft Project</title>
		<link>http://haditeo.wordpress.com/2009/08/29/error-tf86001-or-tf80042-opening-microsoft-team-foundation-server-work-items-in-microsoft-excel-or-microsoft-project/</link>
		<comments>http://haditeo.wordpress.com/2009/08/29/error-tf86001-or-tf80042-opening-microsoft-team-foundation-server-work-items-in-microsoft-excel-or-microsoft-project/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 00:06:28 +0000</pubDate>
		<dc:creator>haditeo</dc:creator>
				<category><![CDATA[TFS]]></category>

		<guid isPermaLink="false">http://haditeo.wordpress.com/?p=263</guid>
		<description><![CDATA[While performing walkthrough for managing work items in Excel and Project here, apparently Excel and Project was not installed. So Excel and Project are installed after Team Foundation Server. When opening Excel or Project document, this error is reported &#8220;TF80042: The document cannot be opened because you do not have Microsoft Excel 200n or one [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=263&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While performing walkthrough for managing work items in Excel and Project <a href="http://msdn.microsoft.com/en-us/library/ms181273.aspx">here</a>, apparently Excel and Project was not installed. So Excel and Project are installed <strong>after </strong> Team Foundation Server.</p>
<p>When opening Excel or Project document, this error is reported &#8220;TF80042: The document cannot be opened because you do not have Microsoft Excel 200n or one of its components installed.&#8221; So to resolve this issue, Excel and Project should be installed. In this case, i install the 2003 version</p>
<p>After Excel and Project 2003 are installed, another error is reported &#8220;TF86001: Team Foundation was unable to load the Office Add-In.&#8221;. So i googled around and find out this <a href="http://kbalertz.com/952096/Error-TF86001-TF80042-Opening-Microsoft-Foundation-Server-Items-Microsoft-Excel-Microsoft-Project.aspx">KB Article</a></p>
<p>The core solution is to repair the Visual Studio 2005/2008 Team Explorer, so that the installation can &#8220;link&#8221; back the Excel / Project to the Team Explorer</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haditeo.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haditeo.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haditeo.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haditeo.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haditeo.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haditeo.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haditeo.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haditeo.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haditeo.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haditeo.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haditeo.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haditeo.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haditeo.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haditeo.wordpress.com/263/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=263&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haditeo.wordpress.com/2009/08/29/error-tf86001-or-tf80042-opening-microsoft-team-foundation-server-work-items-in-microsoft-excel-or-microsoft-project/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba688f9bd1e3d64494e90af21c2ba3db?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haditeo</media:title>
		</media:content>
	</item>
		<item>
		<title>Is it possible to register different event handlers in only one assembly to be registered in Dynamics CRM Plugin ?</title>
		<link>http://haditeo.wordpress.com/2009/07/24/is-it-possible-to-register-different-event-handlers-in-only-one-assembly-to-be-registered-in-dynamics-crm-plugin/</link>
		<comments>http://haditeo.wordpress.com/2009/07/24/is-it-possible-to-register-different-event-handlers-in-only-one-assembly-to-be-registered-in-dynamics-crm-plugin/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 01:41:44 +0000</pubDate>
		<dc:creator>haditeo</dc:creator>
				<category><![CDATA[Dynamics CRM]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://haditeo.wordpress.com/?p=250</guid>
		<description><![CDATA[The answer is Yes. The reason why i need this, is because i would like to register only a single DLL for the Plugin DLL, let&#8217;s called it XXX.CRM.Plugin To register multiple event handler, create multiple classes that implements Execute method of the IPlugin interface, then automatically when you register the plugin, you can load [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=250&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The answer is Yes.</p>
<p><a href="http://haditeo.wordpress.com/2009/07/24/is-it-possible-to-register-different-event-handlers-in-only-one-assembly-to-be-registered-in-dynamics-crm-plugin/plugin_registration_tool_main_window/" rel="attachment wp-att-251"><img src="http://haditeo.files.wordpress.com/2009/07/plugin_registration_tool_main_window.jpg?w=300&#038;h=298" alt="plugin_registration_tool_main_window" title="plugin_registration_tool_main_window" width="300" height="298" class="alignnone size-medium wp-image-251" /></a></p>
<p>The reason why i need this, is because i would like to register only a single DLL for the Plugin DLL, let&#8217;s called it XXX.CRM.Plugin</p>
<p><a href="http://haditeo.wordpress.com/2009/07/24/is-it-possible-to-register-different-event-handlers-in-only-one-assembly-to-be-registered-in-dynamics-crm-plugin/visual_studio_solution/" rel="attachment wp-att-252"><img src="http://haditeo.files.wordpress.com/2009/07/visual_studio_solution.jpg" alt="visual_studio_solution" title="visual_studio_solution" width="268" height="127" class="alignnone size-full wp-image-252" /></a></p>
<p>To register multiple event handler, create multiple classes that implements Execute method of the IPlugin interface, then automatically when you register the plugin, you can load those classes </p>
<p><a href="http://haditeo.wordpress.com/2009/07/24/is-it-possible-to-register-different-event-handlers-in-only-one-assembly-to-be-registered-in-dynamics-crm-plugin/register_assembly/" rel="attachment wp-att-255"><img src="http://haditeo.files.wordpress.com/2009/07/register_assembly.jpg?w=239&#038;h=300" alt="register_assembly" title="register_assembly" width="239" height="300" class="alignnone size-medium wp-image-255" /></a></p>
<p>Now, the question is how do i select which class to be loaded against my event message ? When you register a new step, there is a plugin dropdownlist, you can select which class to be executed. Since we are registering two classes, then there will be two plugin options in the drop down list</p>
<p><a href="http://haditeo.wordpress.com/2009/07/24/is-it-possible-to-register-different-event-handlers-in-only-one-assembly-to-be-registered-in-dynamics-crm-plugin/select_which_plugin_to_be_executed/" rel="attachment wp-att-258"><img src="http://haditeo.files.wordpress.com/2009/07/select_which_plugin_to_be_executed.jpg?w=300&#038;h=162" alt="select_which_plugin_to_be_executed" title="select_which_plugin_to_be_executed" width="300" height="162" class="alignnone size-medium wp-image-258" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haditeo.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haditeo.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haditeo.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haditeo.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haditeo.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haditeo.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haditeo.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haditeo.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haditeo.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haditeo.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haditeo.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haditeo.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haditeo.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haditeo.wordpress.com/250/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=250&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haditeo.wordpress.com/2009/07/24/is-it-possible-to-register-different-event-handlers-in-only-one-assembly-to-be-registered-in-dynamics-crm-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba688f9bd1e3d64494e90af21c2ba3db?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haditeo</media:title>
		</media:content>

		<media:content url="http://haditeo.files.wordpress.com/2009/07/plugin_registration_tool_main_window.jpg?w=300" medium="image">
			<media:title type="html">plugin_registration_tool_main_window</media:title>
		</media:content>

		<media:content url="http://haditeo.files.wordpress.com/2009/07/visual_studio_solution.jpg" medium="image">
			<media:title type="html">visual_studio_solution</media:title>
		</media:content>

		<media:content url="http://haditeo.files.wordpress.com/2009/07/register_assembly.jpg?w=239" medium="image">
			<media:title type="html">register_assembly</media:title>
		</media:content>

		<media:content url="http://haditeo.files.wordpress.com/2009/07/select_which_plugin_to_be_executed.jpg?w=300" medium="image">
			<media:title type="html">select_which_plugin_to_be_executed</media:title>
		</media:content>
	</item>
		<item>
		<title>SketchFlow RC is released</title>
		<link>http://haditeo.wordpress.com/2009/07/11/sketchflow-rc-is-released/</link>
		<comments>http://haditeo.wordpress.com/2009/07/11/sketchflow-rc-is-released/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 09:11:17 +0000</pubDate>
		<dc:creator>haditeo</dc:creator>
				<category><![CDATA[sketchflow]]></category>
		<category><![CDATA[expression_blend]]></category>

		<guid isPermaLink="false">http://haditeo.wordpress.com/?p=248</guid>
		<description><![CDATA[I have just read the news that Silverlight 3 is released. But the one that got me interested is Sketch Flow Released Candidate And then i googled around and find out this screencast and immediately i am interested in it. I am thinking of creating prototype when customizing Dynamics CRM ASP.NET Web Application, by taking [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=248&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have just read the news that <a href="http://silverlight.net/getstarted/silverlight3/default.aspx">Silverlight 3</a> is released. But the one that got me interested is <a href="http://www.microsoft.com/expression/try-it/Default.aspx?filter=blend3sketchflowrc">Sketch Flow Released Candidate</a></p>
<p>And then i googled around and find out this <a href="http://videos.visitmix.com/MIX09/C01F">screencast</a> and immediately i am interested in it.</p>
<p>I am thinking of creating prototype when customizing Dynamics CRM ASP.NET Web Application, by taking the screenshot of the Dynamics CRM UI as the background and create interactions inside it. Let&#8217;s say what happen when you click &#8220;Convert to Lead&#8221; button or what happen when this data is submitted etc . Users can obtain quick feedback regarding the interaction.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haditeo.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haditeo.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haditeo.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haditeo.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haditeo.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haditeo.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haditeo.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haditeo.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haditeo.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haditeo.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haditeo.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haditeo.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haditeo.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haditeo.wordpress.com/248/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=248&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haditeo.wordpress.com/2009/07/11/sketchflow-rc-is-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba688f9bd1e3d64494e90af21c2ba3db?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haditeo</media:title>
		</media:content>
	</item>
		<item>
		<title>BluePrint, YAML and 960 GridSystem</title>
		<link>http://haditeo.wordpress.com/2009/07/08/blueprint-yaml-and-960-gridsystem/</link>
		<comments>http://haditeo.wordpress.com/2009/07/08/blueprint-yaml-and-960-gridsystem/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 07:47:22 +0000</pubDate>
		<dc:creator>haditeo</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://haditeo.wordpress.com/?p=245</guid>
		<description><![CDATA[First of all, you might ask me ? What are those ? Blueprint is a CSS framework, which aims to cut down on your development time. It gives you a solid foundation to build your project on top of, with an easy-to-use grid, sensible typography, useful plugins, and even a stylesheet for printing. and YAML [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=245&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First of all, you might ask me ? What are those ?</p>
<blockquote><p><a href="http://www.blueprintcss.org/">Blueprint</a> is a CSS framework, which aims to cut down on your development time. It gives you a solid foundation to build your project on top of, with an easy-to-use grid, sensible typography, useful plugins, and even a stylesheet for printing.</p></blockquote>
<p>and</p>
<blockquote><p><a href="http://www.yaml.de/en/">YAML</a> &#8220;Yet Another Multicolumn Layout&#8221; (YAML) is an (X)HTML/CSS framework for creating modern and flexible floated layouts. The structure is extremely versatile in its programming and absolutely accessible for end users.</p></blockquote>
<p>and</p>
<blockquote><p>The<a href="http://960.gs">960</a> Grid System is an effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.</p></blockquote>
<p>3 years ago, i have learned CSS extensively to promote table-less design by using CSS. The painful of manual learning is i need to carefully calculate each of the div boxes, reset the position, calculate the boxes width etc. Not to mention that there is browser quirks means that the layout seen in the IE might be not the same if it&#8217;s seen on FireFox.</p>
<p>While i browsed around JQuery most popular plugin <a href="http://plugins.jquery.com/most_popular">list</a>, <a href="http://plugins.jquery.com/project/layout">JQuery UI Layout</a> is on the top of the list.</p>
<p>and then i browsed around my favorite website <a href="http://stackoverflow.com">Stack Overflow</a>, and i found some suggestion that there are some CSS framework. That&#8217;s when i found these CSS frameworks. Really fabolous, by looking at the demo or sample page. It&#8217;s definitely reduce countless hours of calculating and trying to match the design by using div&#8217;s.</p>
<p>This <a href="http://net.tutsplus.com/tutorials/html-css-techniques/which-css-grid-framework-should-you-use-for-web-design/">article</a> is definitely a must to read to compare each of the css grid framework.</p>
<p>Since my next task was to layout my .ASPX page according to the Dynamics CRM Forms, i will try Blueprint to design the data entry form layout.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haditeo.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haditeo.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haditeo.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haditeo.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haditeo.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haditeo.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haditeo.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haditeo.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haditeo.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haditeo.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haditeo.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haditeo.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haditeo.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haditeo.wordpress.com/245/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=245&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haditeo.wordpress.com/2009/07/08/blueprint-yaml-and-960-gridsystem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba688f9bd1e3d64494e90af21c2ba3db?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haditeo</media:title>
		</media:content>
	</item>
		<item>
		<title>Create simple domain generator by reading from CRM Metadata</title>
		<link>http://haditeo.wordpress.com/2009/07/06/create-simple-domain-generator-by-reading-from-crm-metadata/</link>
		<comments>http://haditeo.wordpress.com/2009/07/06/create-simple-domain-generator-by-reading-from-crm-metadata/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 13:30:24 +0000</pubDate>
		<dc:creator>haditeo</dc:creator>
				<category><![CDATA[c#]]></category>
		<category><![CDATA[Dynamics CRM]]></category>
		<category><![CDATA[crm sdk]]></category>

		<guid isPermaLink="false">http://haditeo.wordpress.com/?p=242</guid>
		<description><![CDATA[Objective I would like to create my own domain (class) from the custom CRM entity. The advantage of this is to simplify domain persistence and retrieval between application layer and database layer (CRM Web Service) How to achieve this ? First of all we utilize RetrieveEntityRequest message to retrieve all attributes of the specific entity. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=242&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Objective</strong><br />
I would like to create my own domain (class) from the custom CRM entity. The advantage of this is to simplify domain persistence and retrieval between application layer and database layer (CRM Web Service)</p>
<p><strong>How to achieve this ?</strong></p>
<ul>
<li>First of all we utilize <a href="http://msdn.microsoft.com/en-us/library/cc156229.aspx">RetrieveEntityRequest</a> message to retrieve all attributes of the specific entity.
<p><pre class="brush: csharp;">
                RetrieveEntityRequest request = new RetrieveEntityRequest();
                request.LogicalName = entityName;
                request.EntityItems = EntityItems.IncludeAttributes;

                RetrieveEntityResponse response = (RetrieveEntityResponse)metadataService.Execute(request);

                EntityMetadata entityMetadata = response.EntityMetadata;

                foreach (AttributeMetadata attributeMetadata in entityMetadata.Attributes)
                {
                    //loop through all attributes here.
                }
</pre></p>
</li>
<li>
There are some interesting attributes of the <a href="http://technet.microsoft.com/en-us/library/bb890258.aspx">AttributeMetadata</a>. Such as LogicalName attribute, DisplayName attribute and AttributeType attribute
</li>
<li>
By looping through each of the attributes, i read the relevant template file consisting of the code templates and replace the necessary placeholder with the actual values<br />
<pre class="brush: csharp;">
private LookupProperty _#internalVariableName#;
[CrmAttributeMapping(&quot;#crmAttributeMapping#&quot;)]
public LookupProperty #publicPropertyName#
{
    get { return _#internalVariableName#; }
    set { _#internalVariableName# = value; }
}

public void Set#publicPropertyName#(Guid value)
{
    _#internalVariableName# = new LookupProperty(&quot;#crmAttributeMapping#&quot;, new Lookup(&quot;#lookupAttributeMapping#&quot;, value));
}

public bool Is#publicPropertyName#Null()
{
    if (_#internalVariableName# == null)
        return true;

    if (_#internalVariableName#.Value == null)
        return true;

    if (_#internalVariableName#.Value.Value == Guid.Empty)
        return true;
        
    return false;
}
</pre></p>
<p>Here are the result of the placeholder value replacement<br />
<pre class="brush: csharp;">
private LookupProperty _owninguser;
[CrmAttributeMapping(&quot;owninguser&quot;)]
public LookupProperty owninguser
{
    get { return _owninguser; }
    set { _owninguser = value; }
}

public void Setowninguser(Guid value)
{
    _owninguser = new LookupProperty(&quot;owninguser&quot;, new Lookup(&quot;#lookupAttributeMapping#&quot;, value));
}

public bool IsowninguserNull()
{
    if (_owninguser == null)
        return true;

    if (_owninguser.Value == null)
        return true;

    if (_owninguser.Value.Value == Guid.Empty)
        return true;
        
    return false;
}
</pre>
</li>
<li>
Some clean up needs to be performed to tidy up the public Property name, but this code generator has helped me tremendeously to eliminate boring and repititive tasks of creating custom domain objects by hand.
</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haditeo.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haditeo.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haditeo.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haditeo.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haditeo.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haditeo.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haditeo.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haditeo.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haditeo.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haditeo.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haditeo.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haditeo.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haditeo.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haditeo.wordpress.com/242/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=242&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haditeo.wordpress.com/2009/07/06/create-simple-domain-generator-by-reading-from-crm-metadata/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba688f9bd1e3d64494e90af21c2ba3db?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haditeo</media:title>
		</media:content>
	</item>
		<item>
		<title>Json.NET and json.js</title>
		<link>http://haditeo.wordpress.com/2009/07/04/json-net-and-json-js/</link>
		<comments>http://haditeo.wordpress.com/2009/07/04/json-net-and-json-js/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 03:45:09 +0000</pubDate>
		<dc:creator>haditeo</dc:creator>
				<category><![CDATA[c#]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[newtonsoft]]></category>

		<guid isPermaLink="false">http://haditeo.wordpress.com/?p=237</guid>
		<description><![CDATA[Let&#8217;s say i have an &#8220;Argument&#8221; class and &#8220;Customer&#8221; class below : The purpose of these objects is to be passed along from the &#8220;main&#8221; page to the &#8220;lookup&#8221; page to be processed further. Refer to the sample result of these objects on the JSON string format for one Customer and here is the sample [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=237&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say i have an &#8220;Argument&#8221; class and &#8220;Customer&#8221; class below :</p>
<p><pre class="brush: csharp;">
    public class Argument
    {
        private string _filterComboType;

        public string FilterComboType
        {
            get { return _filterComboType; }
            set { _filterComboType = value; }
        }

        private string _selectedNameClientId;
        
        public string SelectedNameClientId
        {
            get {return _selectedNameClientId;}
            set {_selectedNameClientId = value;}
        }

        private List&lt;Customer&gt; customerList;

        public List&lt;Customer&gt; Customer
        {
            get { return customerList; }
            set { customerList = value; }
        }
        
        public Argument()
        {
        
        }
    }
</pre></p>
<p><pre class="brush: csharp;">
    public class Customer
    {
        private string _customerType;
        private string _customerText;
        private string _customerValue;

        public string ObjectType
        {
            get { return _customerType; }
            set { _customerType = value; }
        }

        public string CustomerText
        {
            get { return _customerText; }
            set { _customerText = value; }
        }

        public string CustomerValue
        {
            get { return _customerValue; }
            set { _customerValue = value; }
        }

        public Customer(string strCustomerType, string strCustomerText, string strCustomerValue)
        {
            _customerType = strCustomerType;
            _customerText = strCustomerText;
            _customerValue = strCustomerValue;
        }
        
        public Customer()
        {
        
        }
    }
</pre></p>
<p>The purpose of these objects is to be passed along from the &#8220;main&#8221; page to the &#8220;lookup&#8221; page to be processed further.</p>
<p>Refer to the sample result of these objects on the JSON string format for one Customer<br />
<pre class="brush: jscript;">
{&quot;FilterComboType&quot;:&quot;NameOfClient&quot;,&quot;SelectedNameClientId&quot;:null,&quot;Customer&quot;:[{&quot;ObjectType&quot;:&quot;account&quot;,&quot;CustomerText&quot;:&quot;Account E&quot;,&quot;CustomerValue&quot;:&quot;c0b377cf-1766-de11-8f5c-0003ffb4d763&quot;}]}
</pre></p>
<p>and here is the sample JSON string result for multiple Customers<br />
<pre class="brush: jscript;">
{&quot;FilterComboType&quot;:&quot;ContactList&quot;,&quot;SelectedNameClientId&quot;:null,&quot;Customer&quot;:[{&quot;ObjectType&quot;:&quot;contact&quot;,&quot;CustomerText&quot;:&quot;Lim&quot;,&quot;CustomerValue&quot;:&quot;e0203ac0-2a3d-de11-8641-0003ffc4d675&quot;},{&quot;ObjectType&quot;:&quot;contact&quot;,&quot;CustomerText&quot;:&quot;Contact B&quot;,&quot;CustomerValue&quot;:&quot;a0ff10e6-1766-de11-8f5c-0003ffb4d763&quot;},{&quot;ObjectType&quot;:&quot;contact&quot;,&quot;CustomerText&quot;:&quot;Contact C&quot;,&quot;CustomerValue&quot;:&quot;9088e0ec-1766-de11-8f5c-0003ffb4d763&quot;}]}
</pre></p>
<p>What are the advantages of creating JSON string format ?</p>
<p>you can access those objects at the client side easily, in example :</p>
<p><pre class="brush: jscript;">
function AccessArgument(arg)
{
  var jsonStringArgument = arg;
  var argument = eval(jsonStringArgument);

  var filterComboTypeValue = argument.FilterComboType;
  
  for(var i=0; i&lt;argument.Customer.length; i++)
  {
    var customerValue = argument.Customer[i].CustomerValue;
  }
}

</pre></p>
<p>Notice how easily i&#8217;m accessing a list of the argument&#8217;s Customer in array object at the client side</p>
<p>How do you convert from JSON string to the actual object itself ?</p>
<p><pre class="brush: jscript;">
var objectArgument = eval('a Json String');
</pre></p>
<p>How do you convert from actual object back to the JSON string ? You need <a href="http://www.json.org/js.html">json2.js</a> which can be downloaded <a href="http://www.json.org/js.html">here</a> . The javascript file needs to be included in the html head.</p>
<p><pre class="brush: jscript;">
var jsonText = JSON.stringify(objectArgument);
</pre></p>
<p>I like to use <a href="http://james.newtonking.com/pages/json-net.aspx">Newtonsoft JSON.NET</a> to serialize my C# object to the JSON string format as well as deserialize my C# object back to the JSON string format</p>
<p>Here are the code sample how to serialize the Argument object into JSON string<br />
<pre class="brush: csharp;">
txtAccountListJson.Text = Newtonsoft.Json.JavaScriptConvert.SerializeObject(newArg);
</pre></p>
<p>And here are the code sample in how to serialize the JSON string back to the actual object<br />
<pre class="brush: csharp;">
Argument arg = (Argument)Newtonsoft.Json.JavaScriptConvert.DeserializeObject(txtContactListJson.Text, typeof(Argument));
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haditeo.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haditeo.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haditeo.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haditeo.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haditeo.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haditeo.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haditeo.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haditeo.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haditeo.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haditeo.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haditeo.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haditeo.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haditeo.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haditeo.wordpress.com/237/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=237&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haditeo.wordpress.com/2009/07/04/json-net-and-json-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba688f9bd1e3d64494e90af21c2ba3db?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haditeo</media:title>
		</media:content>
	</item>
		<item>
		<title>what is the difference between RetrieveRequest and RetrieveMultipleRequest</title>
		<link>http://haditeo.wordpress.com/2009/06/27/what-is-the-difference-between-retrieverequest-and-retrievemultiplerequest/</link>
		<comments>http://haditeo.wordpress.com/2009/06/27/what-is-the-difference-between-retrieverequest-and-retrievemultiplerequest/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 02:43:09 +0000</pubDate>
		<dc:creator>haditeo</dc:creator>
				<category><![CDATA[Dynamics CRM]]></category>
		<category><![CDATA[crm]]></category>
		<category><![CDATA[sdk]]></category>

		<guid isPermaLink="false">http://haditeo.wordpress.com/?p=233</guid>
		<description><![CDATA[RetrieveRequest is used to retrieve one and only one record based on the unique EntityId while RetrieveMultipleRequest can be used to retrieve one or many records based on the selection criteria. You can use RetrieveMultipleRequest to retrieve a particular record based on EntityId, usually i create a helper method by using RetrieveMultipleRequest to retrieve particular [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=233&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/aa662460.aspx">RetrieveRequest</a> is used to retrieve one and only one record based on the unique EntityId while <a href="http://msdn.microsoft.com/en-us/library/aa662424.aspx">RetrieveMultipleRequest</a> can be used to retrieve one or many records based on the selection criteria.</p>
<p>You can use RetrieveMultipleRequest to retrieve a particular record based on EntityId, usually i create a helper method by using RetrieveMultipleRequest to retrieve particular records based on selection criteria </p>
<p>Here is the example of using RetrieveRequest. Our scenario is retrieving a particular account based on accountid attribute<br />
<pre class="brush: csharp;">
public DynamicEntity RetrieveByUsingRetrieveRequest(CrmService service, Guid accountId)
{
    TargetRetrieveAccount target = new TargetRetrieveAccount();
    target.EntityId = accountId;

    RetrieveRequest request = new RetrieveRequest();
    request.Target = target;
    
    // retrieve all attributes of the particular account
    request.ColumnSet = new AllColumns();
    
    // tell the CRM SDK to return the result as DynamicEntity type of object
    request.ReturnDynamicEntities = true;
    RetrieveResponse response = (RetrieveResponse) service.Execute(request);
    
    DynamicEntity de = (DynamicEntity)response.BusinessEntity;
    
    return de;
}
</pre></p>
<p>and here is the example of using RetrieveMultipleRequest<br />
<pre class="brush: csharp;">
public DynamicEntity RetrieveByUsingRetrieveMultipleRequest(CrmService service, Guid accountId)
{
    QueryExpression query = new QueryExpression();
    query.EntityName = &quot;account&quot;;
    
    ConditionExpression ceAccount = new ConditionExpression();
    ceAccount.AttributeName = &quot;accountid&quot;;
    ceAccount.Operator = ConditionOperator.Equal;
    ceAccount.Values = new object[] {accountId};
    
    FilterExpression feAccount = new FilterExpression();
    feAccount.AddCondition(ceAccount);
    feAccount.FilterOperator = LogicalOperator.And;
    
    query.Criteria.AddFilter(feAccount);

    // retrieve all attributes of the particular account
    query.ColumnSet = new AllColumns();

    RetrieveMultipleRequest request = new RetrieveMultipleRequest();
    request.Query = query;
    
    // tell the CRM SDK to return the result as DynamicEntity type of object
    request.ReturnDynamicEntities = true;

    RetrieveMultipleResponse response = (RetrieveMultipleResponse) service.Execute(request);

    DynamicEntity de = (DynamicEntity)response.BusinessEntityCollection.BusinessEntities[0];

    return de;
}
</pre></p>
<p>Note :</p>
<ul>
<li>
<a href="http://msdn.microsoft.com/en-us/library/aa662427.aspx">ReturnDynamicEntities</a> property can be used to configure the CRM SDK either to return the result as Dynamic Entity or Proxy Class
</li>
<li>
The disadvantage of using RetrieveRequest is the query can only be implemented by querying the entity-id. Usually our goal is to obtain the particular entity-id by querying certain criteria.</p>
<p>Let me elaborate further. Suppose you like to know which accounts residing in Singapore, you can query like this SELECT * FROM account where city=&#8217;Singapore&#8217; and it will return the list of accounts complete with the account id</p>
<p>It&#8217;s not useful to use RetrieveRequest, if we know ahead all accounts, means SELECT * FROM account where accountid = &#8217;3F2504E0-4F89-11D3-9A0C-0305E82C3301&#8242;</p>
<p>Usually our targets are the Unique Identifiers.
</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/haditeo.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/haditeo.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/haditeo.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/haditeo.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/haditeo.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/haditeo.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/haditeo.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/haditeo.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/haditeo.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/haditeo.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/haditeo.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/haditeo.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/haditeo.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/haditeo.wordpress.com/233/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=haditeo.wordpress.com&amp;blog=4199141&amp;post=233&amp;subd=haditeo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://haditeo.wordpress.com/2009/06/27/what-is-the-difference-between-retrieverequest-and-retrievemultiplerequest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba688f9bd1e3d64494e90af21c2ba3db?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">haditeo</media:title>
		</media:content>
	</item>
	</channel>
</rss>
