<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>MS Dynamics CRM Blog from Polish CRM-BI Team : SDK</title><link>http://blogs.technet.com/crmbipl/archive/tags/SDK/default.aspx</link><description>Tags: SDK</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Setting the URL for a dynamic IFrame (URL vs. SRC)</title><link>http://blogs.technet.com/crmbipl/archive/2007/07/16/setting-the-url-for-a-dynamic-iframe-url-vs-src.aspx</link><pubDate>Mon, 16 Jul 2007 16:55:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1531810</guid><dc:creator>CRMBIPL</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/crmbipl/comments/1531810.aspx</comments><wfw:commentRss>http://blogs.technet.com/crmbipl/commentrss.aspx?PostID=1531810</wfw:commentRss><description>&lt;P&gt;Dynamics CRM lets us use IFrames on the entity forms to load any pages as the part of the form. There are plenty of tutorials showing how to add an IFrame, including CRM SDK. However, they are sometimes insonsistent or (like SDK in section "Creating a Dynamic IFRAME") describe procedures that may not work.&lt;/P&gt;
&lt;P&gt;There are two properties in Iframe object - URL and SRC. SDK says in one of examples that &lt;EM&gt;&lt;STRONG&gt;url&lt;/STRONG&gt; &lt;/EM&gt;property should be used. In fact, the &lt;STRONG&gt;&lt;EM&gt;src&lt;/EM&gt; is the one that will guarantee our Iframe to load appropriate page&lt;/STRONG&gt;. The &lt;EM&gt;src&lt;/EM&gt; property is a valid DOM property and the only one that works.&lt;/P&gt;
&lt;P&gt;Remember about this!&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=1531810" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/crmbipl/archive/tags/CRM+3.0/default.aspx">CRM 3.0</category><category domain="http://blogs.technet.com/crmbipl/archive/tags/MS+Dynamics+CRM/default.aspx">MS Dynamics CRM</category><category domain="http://blogs.technet.com/crmbipl/archive/tags/Customization/default.aspx">Customization</category><category domain="http://blogs.technet.com/crmbipl/archive/tags/SDK/default.aspx">SDK</category></item><item><title>How to search for multiple values and fields using Quick Find...</title><link>http://blogs.technet.com/crmbipl/archive/2007/07/16/how-to-search-for-multiple-values-and-fields-using-quick-find.aspx</link><pubDate>Mon, 16 Jul 2007 12:42:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1530464</guid><dc:creator>CRMBIPL</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/crmbipl/comments/1530464.aspx</comments><wfw:commentRss>http://blogs.technet.com/crmbipl/commentrss.aspx?PostID=1530464</wfw:commentRss><description>&lt;P&gt;There is one very common requirement for CRM 3.0 and question that users ask - &lt;STRONG&gt;how to look for multiple values at the same time&lt;/STRONG&gt; using "Quick Find" view. Unfortunately the answer is - you cannot do it by default in Dynamics CRM :-(.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, there is a workaround (or trick, if you like ;-) ) that can be used whenever users want to search for multiple fields and values at one time, using the "Quick Find" view. It is not very simple (and quite challenging to extend), but makes searching for multiple values possible and can really help users. The trick uses an additional field to store all the values that we would like to search on in one field and then use callouts to update this field with relevant values. &lt;EM&gt;This post&amp;nbsp;requires&amp;nbsp;one&amp;nbsp;to possess the knowledge how to create callouts and how to make simple customizations.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps to achieve that funcitonality:&lt;/P&gt;
&lt;OL style="LINE-HEIGHT: 150%"&gt;
&lt;LI&gt;First, we have to decide&amp;nbsp;for&amp;nbsp;which values we want to search simultaneously. In this example, we are going to enable simultanous search on Full name, Security number and the City from the Contact entity&lt;BR&gt;This is a very important step, because we will have to customize the callouts in a proper way and set the field length to a proper value.&lt;/LI&gt;
&lt;LI&gt;Then, we create a new field for the entity that will be searched, using Quick Find. In this example, we will call it &lt;EM&gt;new_alldatasearch&lt;/EM&gt;&lt;BR&gt;This field will aggregate the content from the fields that we would like to use when searching for multiple values. So, its data type should be nvarchar and its length be at least as big as aggregated length of all the fields we want to search on&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;Go to "Settings" tab, and then to "Customization", "Customize Entities"&lt;/LI&gt;
&lt;LI&gt;Select which entity will allow to search for multiple values (in our example, we use Contact entity)&lt;/LI&gt;
&lt;LI&gt;Add a new field&lt;/LI&gt;&lt;/UL&gt;&lt;IMG style="WIDTH: 740px; HEIGHT: 266px" height=141 src="http://blogs.technet.com/photos/crmbipl/images/1530729/original.aspx" width=403 align=middle vspace=25 border=0 mce_src="http://blogs.technet.com/photos/crmbipl/images/1530729/original.aspx"&gt; 
&lt;LI&gt;&amp;nbsp;Having added the new field, we have to guarantee that this field contains data from all the fields we would like to serch&amp;nbsp;for simultaneously. For this purpose we have to create 2 callouts for this entity. First callout should be triggered before we add a new record (so, this will be a &lt;EM&gt;PreCreate&lt;/EM&gt; callout). This will guarantee that when a new object is created, the values from all the proper fields are in one field (so that "Quick Find" view is able to search for these values). The second callout code should be run to update the values in the&amp;nbsp; &lt;EM&gt;new_alldatasearch &lt;/EM&gt;whenever the user changes these values.&lt;BR&gt;&lt;EM&gt;For the reference how to create callout, please refer to CRM SDK&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;The best way to update the &lt;EM&gt;new_alldatasearch&lt;/EM&gt; field is to write values from all the relevant fields to it with using a white space as a separator. This will allow the "Quick Find" view to find the values&lt;/LI&gt;
&lt;LI&gt;Have we guaranteed that the new field always contains the right data, we have to instruct the "Quick Find" view to search in our new field for the values the the user enter. To accomplish this, we go to "Settings" tab, "Customization" and then choose the entity that we would like to use to search for multiple values.&lt;/LI&gt;
&lt;LI&gt;Now we have to add our new field &lt;EM&gt;new_alldatasearch&lt;/EM&gt; to "Find columns" in the Quick Find view.&lt;BR&gt;&lt;IMG style="WIDTH: 570px; HEIGHT: 200px" height=200 hspace=5 src="http://blogs.technet.com/photos/crmbipl/images/1531233/original.aspx" width=570 align=middle mce_src="http://blogs.technet.com/photos/crmbipl/images/1531233/original.aspx" valign="25"&gt;&lt;/LI&gt;
&lt;LI&gt;After we publish our customizations we are ready to &lt;STRONG&gt;search for multiple values at the same time using the "Quick Find" view!&lt;/STRONG&gt;&lt;BR&gt;We may use the (*) wildcard in our search, but we have to remember that due to the way the "Quick Find" works, we have to specify the values in a&amp;nbsp;particular order. If we don't care for specific value, we should use the star (*).&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;IMG style="WIDTH: 821px; HEIGHT: 131px" height=131 src="http://blogs.technet.com/photos/crmbipl/images/1531320/original.aspx" width=821 align=middle mce_src="http://blogs.technet.com/photos/crmbipl/images/1531320/original.aspx"&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Please note that this is only a workaround and it requires some deeper knowledge on Dynamics CRM customization. It also requires the end users to comply with some imposed ways to look for the values&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=1530464" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/crmbipl/archive/tags/CRM+3.0/default.aspx">CRM 3.0</category><category domain="http://blogs.technet.com/crmbipl/archive/tags/MS+Dynamics+CRM/default.aspx">MS Dynamics CRM</category><category domain="http://blogs.technet.com/crmbipl/archive/tags/Customization/default.aspx">Customization</category><category domain="http://blogs.technet.com/crmbipl/archive/tags/SDK/default.aspx">SDK</category></item></channel></rss>