<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://bloggingabout.net/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>Search results matching tags 'SharePoint Development', 'SharePoint Deployment', and 'Microsoft Office SharePoint Designer 2007'</title><link>http://bloggingabout.net/search/SearchResults.aspx?a=1&amp;o=DateDescending&amp;tag=SharePoint+Development,SharePoint+Deployment,Microsoft+Office+SharePoint+Designer+2007&amp;orTags=0</link><description>Search results matching tags 'SharePoint Development', 'SharePoint Deployment', and 'Microsoft Office SharePoint Designer 2007'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Deploying reusable Data Form Web Parts for SharePoint</title><link>http://bloggingabout.net/blogs/harold/archive/2009/01/30/deploying-reusable-data-form-web-parts-for-sharepoint.aspx</link><pubDate>Fri, 30 Jan 2009 10:51:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:481090</guid><dc:creator>hvdkamp</dc:creator><description>&lt;h2&gt;An introduction into Data Form Web Parts&lt;/h2&gt;
&lt;p&gt;The Data Form Web Part is a Web Part component that is available out-of-the-box with WSS 3.0. It allows you to display information from different data source types, with the possibility to change or insert new data. You can display a single item or a collection of items, use grouping, sorting, conditional formatting, share information between Web Parts and much more. Microsoft Office SharePoint Designer 2007 supports the Data Form Web Part which gives you a WYSIWYG way of setting up your Web Part.&lt;/p&gt;
&lt;p&gt;For more information on the Data Form Web Part see e.g. the &lt;a href="http://www.sharepointblogs.com/mirjam/archive/2008/11/26/diwug-meeting-data-form-web-part-presentation.aspx"&gt;Data Form Web Part presentation in Dutch of Maarten van den Dungen&lt;/a&gt; and the &lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.dataformwebpart.aspx"&gt;MSDN documentation&lt;/a&gt;. The &amp;quot;Getting to Know the Data Form Web Part&amp;quot; series of SharePoint Beagle give you also a good overview:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://masteringsharepoint.com/blogs/beagle/archive/2008/08/13/DFWP1.aspx"&gt;Getting to know the Data Form Web Part - Part 1&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;&lt;a href="http://masteringsharepoint.com/blogs/beagle/archive/2008/09/04/DFWP2.aspx"&gt;Getting to know the Data Form Web Part - Part 2&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;&lt;a href="http://masteringsharepoint.com/blogs/beagle/archive/2008/10/27/getting-to-know-the-data-form-web-part-3-of-4.aspx"&gt;Getting to know the Data Form Web Part - Part 3&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;&lt;a href="http://masteringsharepoint.com/blogs/beagle/archive/2009/02/05/DVWP4.aspx" title="Getting to know the Data Form Web Part - Part 4"&gt;Getting to know the Data Form Web Part - Part 4&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Deployment of Data Form Web Parts&lt;/h2&gt;
&lt;p&gt;Now you know where to find introductions how to work with Data Form Web Parts, you can quickly create data views and forms. To deploy and reuse your Data Form Web Parts on multiple (sub)sites and environments keep the following tips in mind.&lt;/p&gt;
&lt;h3&gt;Reference SharePoint lists based on the list name instead of the list ID&lt;/h3&gt;
&lt;p&gt;By default a data form web part that has a SharePoint list as its data source, gets the data from that specific list. The list is referenced by using the list&amp;#39;s GUID identifier, which means that theoretically only one list in the world is referenced. When lists are deployed using a CAML List Definition, a list is created and automatically gets a new GUID identifier. The Data Form Web Part I have used for the original list cannot be used to reference the new list instance without changing the ListID reference.&lt;/p&gt;
&lt;p&gt;The trick is to reference a SharePoint list based on it&amp;rsquo;s name instead of it&amp;rsquo;s ID. To change the DataFormWebPart&amp;rsquo;s ListID attribute to ListName, use the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Replace all ListName=&amp;quot;&lt;strong&gt;{GUID}&lt;/strong&gt;&amp;quot; to ListName=&amp;quot;&lt;strong&gt;LIST_NAME&lt;/strong&gt;&amp;quot; &lt;/li&gt;
&lt;li&gt;Replace &lt;br /&gt;&amp;lt;WebPartPages:DataFormParameter Name=&amp;quot;&lt;strong&gt;ListID&lt;/strong&gt;&amp;quot; ParameterKey=&amp;quot;&lt;strong&gt;ListID&lt;/strong&gt;&amp;quot; PropertyName=&amp;quot;ParameterValues&amp;quot; DefaultValue=&amp;quot;&lt;strong&gt;{GUID}&lt;/strong&gt;&amp;quot;/&amp;gt; &lt;br /&gt;to &lt;br /&gt;&amp;lt;WebPartPages:DataFormParameter Name=&amp;quot;&lt;strong&gt;ListName&lt;/strong&gt;&amp;quot; ParameterKey=&amp;quot;&lt;strong&gt;ListName&lt;/strong&gt;&amp;quot; PropertyName=&amp;quot;ParameterValues&amp;quot; DefaultValue=&amp;quot;&lt;strong&gt;LIST_NAME&lt;/strong&gt;&amp;quot;/&amp;gt; &lt;/li&gt;
&lt;li&gt;Replace &lt;br /&gt;&amp;lt;ParameterBinding Name=&amp;quot;&lt;strong&gt;ListID&lt;/strong&gt;&amp;quot; Location=&amp;quot;None&amp;quot; DefaultValue=&amp;quot;&lt;strong&gt;{GUID}&lt;/strong&gt;&amp;quot;/&amp;gt; &lt;br /&gt;to &lt;br /&gt;&amp;lt;ParameterBinding Name=&amp;quot;&lt;strong&gt;ListName&lt;/strong&gt;&amp;quot; Location=&amp;quot;None&amp;quot; DefaultValue=&amp;quot;&lt;strong&gt;LIST_NAME&lt;/strong&gt;&amp;quot;/&amp;gt; &lt;/li&gt;
&lt;li&gt;Save your Web Part&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thanks to &lt;a target="_blank" href="http://sharepoint-insight.blogspot.com/2008/07/dataform-webpart-escape-from-hardcoded.html"&gt;Sandeep Rohilla&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;Reference a Lookup field based on the lookup value ID instead of the text value&lt;/h3&gt;
&lt;p&gt;Displaying data from multiple lists or using web part connections can easily be done. When you want to filter items based on a Lookup field but don&amp;rsquo;t want to reference items based on the string value, use the ID of the item. Use an ID e.g. if you want to filter information based on an ID in the query string.&lt;/p&gt;
&lt;p&gt;The Data Form Web Part uses a CAML query to fetch data, which means you can use the LookupId attribute to refer a field based on it&amp;rsquo;s ID. The CAML attribute is: &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;LookupId=&amp;#39;True&amp;#39;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The Data Form Web Part&amp;rsquo;s .webpart file contains HTML encoded values, so the LookupId attribute has to be encoded to get things done. In SharePoint designer open the code view of the Data Form Web Part and follow these steps: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Find &lt;em&gt;&amp;lt;property name=&amp;quot;DataSourcesString&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;&lt;/em&gt;. &lt;/li&gt;
&lt;li&gt;Inside the DataSourceString property, replace: &lt;br /&gt;&amp;amp;amp;lt;FieldRef LookupId=&amp;amp;amp;quot;TRUE&amp;amp;amp;quot; Name=&amp;amp;amp;quot;NAME_OF_THE_LOOKUP_FIELD&amp;amp;amp;quot;/&amp;amp;amp;gt;&amp;amp;amp;lt;Value Type=&amp;amp;amp;quot;Text&amp;amp;amp;quot;&amp;amp;amp;gt;&lt;strong&gt;LOOKUP_VALUE&lt;/strong&gt;&amp;amp;amp;lt;/Value&amp;amp;amp;gt;&amp;amp;amp; &lt;br /&gt;with: &lt;br /&gt;&amp;amp;amp;lt;FieldRef LookupId=&amp;amp;amp;quot;TRUE&amp;amp;amp;quot; Name=&amp;amp;amp;quot;NAME_OF_THE_LOOKUP_FIELD&amp;amp;amp;quot;/&amp;amp;amp;gt;&amp;amp;amp;lt;Value Type=&amp;amp;amp;quot;Text&amp;amp;amp;quot;&amp;amp;amp;gt;&lt;strong&gt;LOOKUP_ID&lt;/strong&gt;&amp;amp;amp;lt;/Value&amp;amp;amp;gt;&amp;amp;amp;&lt;/li&gt;
&lt;li&gt;Save your Web Part&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Specify on which (sub)site your list is located&lt;/h3&gt;
&lt;p&gt;By default the Web Part that has a SharePoint list as its source, expects the list to be at the same site level as the Web Part. When you want a list to be at a different site level, specify the WebURL parameter. The WebURL parameter is also located inside the &lt;em&gt;&amp;lt;property name=&amp;quot;DataSourcesString&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;&lt;/em&gt;. &lt;/p&gt;
&lt;p&gt;You can use different values, e.g. a fixed location /MyWebsite/MySubsite or a special location {sitecollectionroot}&lt;/p&gt;</description></item></channel></rss>