<?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/"
	>

<channel>
	<title>Dutton Software &#187; WSS 3.0</title>
	<atom:link href="http://www.duttonsoftware.com/tag/wss-30/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.duttonsoftware.com</link>
	<description>Code, plug-ins &#38; more</description>
	<lastBuildDate>Mon, 16 Jan 2012 06:30:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Duplicates in SharePoint Datasheet view / Export to Spreadsheet (Excel)</title>
		<link>http://www.duttonsoftware.com/2009/01/19/duplicates-in-sharepoint-datasheet-view-export-to-spreadsheet-excel/</link>
		<comments>http://www.duttonsoftware.com/2009/01/19/duplicates-in-sharepoint-datasheet-view-export-to-spreadsheet-excel/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 07:09:32 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[WSS 3.0]]></category>
		<category><![CDATA[Datasheet]]></category>
		<category><![CDATA[duplicates]]></category>
		<category><![CDATA[Export to Excel]]></category>
		<category><![CDATA[Export to Spreadsheet]]></category>
		<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.duttonsoftware.com/?p=158</guid>
		<description><![CDATA[Recently I encountered a bug in SharePoint where sometimes duplicate items appear when viewing items in Datasheet view in SharePoint.  This also happens when using the Export to Spreadsheet (Excel).  If duplicates appear in Datasheet view, they will also appear during Export to Spreadsheet and vice versa. This happens only under specific circumstances.  The base [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I encountered a bug in SharePoint where sometimes duplicate items appear when viewing items in Datasheet view in SharePoint.  This also happens when using the Export to Spreadsheet (Excel).  If duplicates appear in Datasheet view, they will also appear during Export to Spreadsheet and vice versa.</p>
<p>This happens only under specific circumstances.  The base list must have a required lookup column/field that is multi-value.  The view must not include this column.</p>
<p>A required, multi-value lookup column is created to demonstrate the problem:<img class="alignnone size-full wp-image-159" title="1-required-multi-value-lookup-field" src="http://www.duttonsoftware.com/wp-content/uploads/2009/01/1-required-multi-value-lookup-field.jpg" alt="1-required-multi-value-lookup-field" width="747" height="423" /></p>
<p>An example of the list data in standard view, showing the &#8220;Region&#8221; column:<br />
<img class="alignnone size-full wp-image-160" title="2-example-data-showing-required-multi-value-lookup-field" src="http://www.duttonsoftware.com/wp-content/uploads/2009/01/2-example-data-showing-required-multi-value-lookup-field.jpg" alt="2-example-data-showing-required-multi-value-lookup-field" width="509" height="144" /></p>
<p>I created a new view without the &#8220;Region&#8221; column to show the duplicates bug.  Standard view appears normal:<br />
<img class="alignnone size-full wp-image-161" title="3-view-without-required-multi-value-lookup-field" src="http://www.duttonsoftware.com/wp-content/uploads/2009/01/3-view-without-required-multi-value-lookup-field.jpg" alt="3-view-without-required-multi-value-lookup-field" width="509" height="144" /></p>
<p>Same view, but when switched to Datasheet view, duplicate records show:<br />
<img class="alignnone size-full wp-image-162" title="4-datasheet-view-without-required-multi-value-lookup-field-shows-duplicate-items" src="http://www.duttonsoftware.com/wp-content/uploads/2009/01/4-datasheet-view-without-required-multi-value-lookup-field-shows-duplicate-items.jpg" alt="4-datasheet-view-without-required-multi-value-lookup-field-shows-duplicate-items" width="202" height="236" /></p>
<p>Same view in Export to Spreadsheet shows duplicates:<br />
<img class="alignnone size-full wp-image-163" title="5-export-to-spreadsheet-without-required-multi-value-lookup-field-shows-duplicate-items" src="http://www.duttonsoftware.com/wp-content/uploads/2009/01/5-export-to-spreadsheet-without-required-multi-value-lookup-field-shows-duplicate-items.jpg" alt="5-export-to-spreadsheet-without-required-multi-value-lookup-field-shows-duplicate-items" width="322" height="195" /></p>
<p>If the column is not required, everything works fine.  If the column exists in the view, everything is fine.  It is only when the required column is omitted from the view that you see duplicates.</p>
<p>If the column is included from the view, everything is normal during Edit in Datasheet mode:<br />
<img class="alignnone size-full wp-image-164" title="6-datasheet-view-shows-multi-value-lookup-field-no-duplicate-items" src="http://www.duttonsoftware.com/wp-content/uploads/2009/01/6-datasheet-view-shows-multi-value-lookup-field-no-duplicate-items.jpg" alt="6-datasheet-view-shows-multi-value-lookup-field-no-duplicate-items" width="496" height="148" /></p>
<p>Duplicates are now gone in Export to Spreadsheet as well:<br />
<img class="alignnone size-full wp-image-165" title="7-export-to-spreadsheet-with-required-multi-value-lookup-field-no-duplicates" src="http://www.duttonsoftware.com/wp-content/uploads/2009/01/7-export-to-spreadsheet-with-required-multi-value-lookup-field-no-duplicates.jpg" alt="7-export-to-spreadsheet-with-required-multi-value-lookup-field-no-duplicates" width="603" height="116" /></p>
<p>There seems to be no fix for this problem.  The work-around is, if you have a required multi-value lookup column, to always add the column to views, especially datasheet views.  If a user creates their own view without the column, they may run into this problem.  User education is the only solution in this case.</p>
<p>Although this seems like a rare circumstance, it does appear that <a href="http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/a36f7b72-9b4d-4f16-aea8-7d08b1594096/" target="_blank">multiple SharePoint users are encountering this problem</a>.  This affects both WSS 3.0 and MOSS 2007.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.duttonsoftware.com/2009/01/19/duplicates-in-sharepoint-datasheet-view-export-to-spreadsheet-excel/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Group by month, year, or anything else using a calculated column in SharePoint</title>
		<link>http://www.duttonsoftware.com/2008/10/05/group-by-month-year-or-anything-else-using-a-calculated-column-in-sharepoint/</link>
		<comments>http://www.duttonsoftware.com/2008/10/05/group-by-month-year-or-anything-else-using-a-calculated-column-in-sharepoint/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 23:53:24 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[WSS 3.0]]></category>
		<category><![CDATA[Calculated columns]]></category>
		<category><![CDATA[group by]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.duttonsoftware.com/?p=71</guid>
		<description><![CDATA[I found an excellent example of how to group by month in a blog recently. It does require using SharePoint Designer, however. An alternative to grouping this way is to create a calculated column and group on that. The end result looks something like this: : Basically, you just create a new calculated column in [...]]]></description>
			<content:encoded><![CDATA[<p>I found an excellent example of <a href="http://jamestsai.net/Blog/post/SharePoint-Data-View-Data-Form-Web-Part-Group-items-by-month-on-DateTime-field.aspx" target="_blank">how to group by month in a blog</a> recently. It does require using SharePoint Designer, however. An alternative to grouping this way is to create a calculated column and group on that.</p>
<p>The end result looks something like this:</p>
<p>:<a href="http://www.duttonsoftware.com/wp-content/uploads/2008/10/month-grouping.jpg"><img class="alignnone size-medium wp-image-74" title="Grouping by Month in a SharePoint list" src="http://www.duttonsoftware.com/wp-content/uploads/2008/10/month-grouping-252x300.jpg" alt="" width="252" height="300" /></a></p>
<p>Basically, you just create a new calculated column in the list.  My original column was a DateTime called &#8220;Published&#8221;.  I created a new calculated column called &#8220;Published Month&#8221;, type of &#8220;string&#8221;, with a value of =TEXT(Published,&#8221;yyyy-MM&#8221;)</p>
<p>After creating the calculated column, just set the &#8220;Grouping&#8221; for the list. One caveat is that your calculated column is going to be sorted on as well, so it must be in the proper order. For example, the format string &#8220;yyyy-MMM&#8221;, which produces &#8220;2008-Apr&#8221;, sorts alphabetically, instead of in date order.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.duttonsoftware.com/2008/10/05/group-by-month-year-or-anything-else-using-a-calculated-column-in-sharepoint/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

