<?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>Richie H's Weblog</title>
	<atom:link href="http://richieh77.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://richieh77.wordpress.com</link>
	<description>Sharepoint and Stuff</description>
	<lastBuildDate>Tue, 21 Jun 2011 20:34:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='richieh77.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Richie H's Weblog</title>
		<link>http://richieh77.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://richieh77.wordpress.com/osd.xml" title="Richie H&#039;s Weblog" />
	<atom:link rel='hub' href='http://richieh77.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Creating a new list item picks up incorrect mandatory fields</title>
		<link>http://richieh77.wordpress.com/2010/02/05/creating-a-new-list-item-picks-up-incorrect-mandatory-fields/</link>
		<comments>http://richieh77.wordpress.com/2010/02/05/creating-a-new-list-item-picks-up-incorrect-mandatory-fields/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 14:38:02 +0000</pubDate>
		<dc:creator>richieh77</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://richieh77.wordpress.com/2010/02/05/creating-a-new-list-item-picks-up-incorrect-mandatory-fields/</guid>
		<description><![CDATA[I was recently asked to help a colleague who was struggling with a Nintex Workflow. My colleague wanted to create a new list item but certain fields were coming through as mandatory. I checked this in Sharepoint Designer Workflow and encountered the same issue. We checked over the list and all the columns in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=27&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was recently asked to help a colleague who was struggling with a Nintex Workflow.</p>
<p>My colleague wanted to create a new list item but certain fields were coming through as mandatory.</p>
<p>I checked this in Sharepoint Designer Workflow and encountered the same issue.</p>
<p>We checked over the list and all the columns in the content types appeared to be fine.</p>
<p>After much looking I noticed that there are 2 sets of fields on the List Template.&#160; The first are those which were created before the manage content type was activated, the 2nd were attached to each of the content types.</p>
<p>We turned off manage content types and noticed that 2 columns in the list were marked as required, setting these to optional and then reactivating manage content type resolved the issue.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richieh77.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richieh77.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richieh77.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richieh77.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richieh77.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richieh77.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richieh77.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richieh77.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richieh77.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richieh77.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richieh77.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richieh77.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richieh77.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richieh77.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=27&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richieh77.wordpress.com/2010/02/05/creating-a-new-list-item-picks-up-incorrect-mandatory-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d9b318d0a86a1e09fe0d81deb361dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richieh77</media:title>
		</media:content>
	</item>
		<item>
		<title>Sharepoint Designer Workflow</title>
		<link>http://richieh77.wordpress.com/2008/05/27/sharepoint-designer-workflow/</link>
		<comments>http://richieh77.wordpress.com/2008/05/27/sharepoint-designer-workflow/#comments</comments>
		<pubDate>Tue, 27 May 2008 10:13:44 +0000</pubDate>
		<dc:creator>richieh77</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[calculation]]></category>
		<category><![CDATA[In Progress]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[moss]]></category>
		<category><![CDATA[time sheet]]></category>
		<category><![CDATA[timesheet]]></category>
		<category><![CDATA[Workflow]]></category>

		<guid isPermaLink="false">http://richieh77.wordpress.com/2008/05/27/sharepoint-designer-workflow/</guid>
		<description><![CDATA[Having avoided workflow for many months, I finally had a project which required me to build a time sheet type application.The idea was that the user would have a number of tick boxes and a time sheet record for each week. I started off by creating the Time Sheet library with the appropriate columns, for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=25&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Having avoided workflow for many months, I finally had a project which required me to build a time sheet type application.<br />The idea was that the user would have a number of tick boxes and a time sheet record for each week.</p>
<p>I started off by creating the Time Sheet library with the appropriate columns, for each Yes/No column I created a mirror calculated column for storing a numerical value.&nbsp; The calculation basically said if checked then 1 else 0(actual statement is <em><strong>=IF(myField=TRUE,1,0).</strong></em></p>
<p>To create a weekly total I created a workflow in designer that was fired on the update event.<br />&nbsp; <a href="http://richieh77.files.wordpress.com/2008/05/image.png"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="122" alt="image" src="http://richieh77.files.wordpress.com/2008/05/image-thumb.png?w=350&#038;h=122" width="350" border="0"></a> </p>
<p>This is where my major problems started, the first thing I noticed was that the work flow took ages to complete if it ever did, and when I clicked the item I either received a <em>&#8220;Server Out of Memory&#8221;</em> message or a &#8220;<em>Some part of your SQL statement is nested too deeply</em>&#8221; error message.</p>
<p>I traced all of my problems back to the Set Total to Variable:Total statement.&nbsp; Apparently, if within your workflow you update a field on the current item and you have the run workflow when item is updated ticked, the code will disappear into a never ending loop.</p>
<p>The only way I have found to stop this is to use a semaphore type approach.&nbsp; Basically I have a column on the form called update record.&nbsp; By default the column is set to No.&nbsp; If the user wishes to submit their record they have to tick the <em>Submit Record</em> box.&nbsp; Within the workflow I have coded a condition which says if <em>Submit Record equals Yes </em>then do the calculation, within this branch I then set the <em>Submit Record </em>back to No and then update the <em>Total.&nbsp; </em></p>
<p>This does not stop the workflow from firing it will fire twice per update, but the 2nd time will do nothing as the condition will be false.</p>
<p>I will be looking at ways to do this via script on the edit form and will keep you posted.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richieh77.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richieh77.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richieh77.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richieh77.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richieh77.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richieh77.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richieh77.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richieh77.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richieh77.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richieh77.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richieh77.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richieh77.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richieh77.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richieh77.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richieh77.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richieh77.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=25&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richieh77.wordpress.com/2008/05/27/sharepoint-designer-workflow/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d9b318d0a86a1e09fe0d81deb361dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richieh77</media:title>
		</media:content>

		<media:content url="http://richieh77.files.wordpress.com/2008/05/image-thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Searching Woe&#8217;s</title>
		<link>http://richieh77.wordpress.com/2008/04/15/searching-woes/</link>
		<comments>http://richieh77.wordpress.com/2008/04/15/searching-woes/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 21:24:00 +0000</pubDate>
		<dc:creator>richieh77</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[moss]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[search query]]></category>
		<category><![CDATA[usage data]]></category>
		<category><![CDATA[wildcard]]></category>

		<guid isPermaLink="false">http://richieh77.wordpress.com/2008/04/15/searching-woes/</guid>
		<description><![CDATA[Having had a request to enable wildcard search we spent sometime looking for products that would help with it. Anyone who&#8217;s done this will know there is a very good provider who are offering a free solution.The issue we have had is that after implementing the solution we were no longer receiving search usage data. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=22&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Having had a request to enable wildcard search we spent sometime looking for products that would help with it.</p>
<p>Anyone who&#8217;s done this will know there is a very good provider who are offering a free solution.<br />The issue we have had is that after implementing the solution we were no longer receiving search usage data.</p>
<p>Having spent several days looking for the cause I discovered that if you deploy the Out of the Box Sharepoint Search Text Box web part to the results page, you got the data, if you used the results one you didn&#8217;t.<br />The upshot of this was that, as the provider had used a custom Search box, the Sharepoint data in our instance never got recorded unless we deployed the standard search box&nbsp; to the results page.</p>
<p>Having done some further research I discovered that all MOSS Search web parts utilise a Sealed object Microsoft.Office.Server.Search.WebControls.SearchResultHiddenObject</p>
<p>This object is&nbsp; responsible for handling best bets, relevance, results and running the query itself.&nbsp; It is within here I believe the usage data is updated.&nbsp; Despite crawling through the API libraries I can find no methods to update the Search Usage.&nbsp; It would also appear that the information isn&#8217;t picked up from the log files so again I assume the updating is all handled via this object.</p>
<p>&nbsp;</p>
<p>If this is the case it will not be possible to run bespoke queries and get the usage data to report on the terms/results.</p>
<p>&nbsp;</p>
<p>Anyone agree/disagree with this, I have posted all over the place but not received any response</p>
<p>Here are some links to other information round searching.</p>
<p><a title="http://msdn2.microsoft.com/en-us/library/bb608304.aspx" href="http://msdn2.microsoft.com/en-us/library/bb608304.aspx">http://msdn2.microsoft.com/en-us/library/bb608304.aspx</a></p>
<p><a title="http://www.sharepointforum.com/en-US/Wiki/The%20good%20news%20and%20the%20bad%20news%20on%20MOSS%202007%20search.aspx" href="http://www.sharepointforum.com/en-US/Wiki/The%20good%20news%20and%20the%20bad%20news%20on%20MOSS%202007%20search.aspx">http://www.sharepointforum.com/en-US/Wiki/The%20good%20news%20and%20the%20bad%20news%20on%20MOSS%202007%20search.aspx</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richieh77.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richieh77.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richieh77.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richieh77.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richieh77.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richieh77.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richieh77.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richieh77.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richieh77.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richieh77.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richieh77.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richieh77.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richieh77.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richieh77.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richieh77.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richieh77.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=22&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richieh77.wordpress.com/2008/04/15/searching-woes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d9b318d0a86a1e09fe0d81deb361dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richieh77</media:title>
		</media:content>
	</item>
		<item>
		<title>Personal Site URL</title>
		<link>http://richieh77.wordpress.com/2008/04/02/personal-site-url/</link>
		<comments>http://richieh77.wordpress.com/2008/04/02/personal-site-url/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 23:04:15 +0000</pubDate>
		<dc:creator>richieh77</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint; Properties; Personal Site; Redirect; User P]]></category>

		<guid isPermaLink="false">http://richieh77.wordpress.com/2008/04/02/personal-site-url/</guid>
		<description><![CDATA[In a previous post I showed how to make a user click through go to their personal site.&#160; In the article I couldn&#8217;t find a way to get the URL of the correct site collection without iterating through the collections. Well in MOSS 2007 there is a way to do it. We will need the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=21&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In a previous <a href="http://richieh77.wordpress.com/2008/02/29/user-profile-property/">post</a> I showed how to make a user click through go to their personal site.&nbsp; In the article I couldn&#8217;t find a way to get the URL of the correct site collection without iterating through the collections.</p>
<p>Well in MOSS 2007 there is a way to do it.</p>
<p>We will need the following namespaces:<br />Microsoft.Office.Server<br />Microsoft.Office.Server.UserProfiles</p>
<p>So the first job is to get a context and the UserProfileManager object.&nbsp; You can get the context using amongst others the SPSite or SPWebApplication object.
<p>In this example we use a pre-created SPSite object.
<p>ServerContext sContext = ServerContext.GetContext(site);<br />UserProfileManager pm = new UserProfileManager(sContext);</p>
<p>From here you can use the pm.MySiteHostUrl Property.&nbsp; This will get you the protocol, the hostname and any ports.&nbsp; From here you build any specific pages or URL parameters.</p>
<p>Alternatively you can use the pm.GetUserProfile(~LoginName~) to get the UserProfile object and from there use the PublicUrl.AbsoluteUri to return the full URL to the person.aspx page with the applicable accountname parameter set.</p>
<p>Full Code Listing<br /><font size="1"><em>using (SPSite site = new SPSite(&#8220;</em></font><a href="http://...&quot;))"><font size="1"><em>http://&#8230;&#8221;))</em></font></a><font size="1"><em>{<br />&nbsp; ServerContext sContext = ServerContext.GetContext(site);<br />&nbsp; UserProfileManager pm = new UserProfileManager(sContext);<br />&nbsp; string url=pm.MySiteHostUrl;<br />&nbsp; UserProfile up=pm.GetUserProfile(&#8220;AD\\MyGSN&#8221;);<br />&nbsp; string personnelURL=up.PublicUrl.AbsoluteUri;<br />}</em></font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richieh77.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richieh77.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richieh77.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richieh77.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richieh77.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richieh77.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richieh77.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richieh77.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richieh77.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richieh77.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richieh77.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richieh77.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richieh77.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richieh77.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richieh77.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richieh77.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=21&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richieh77.wordpress.com/2008/04/02/personal-site-url/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d9b318d0a86a1e09fe0d81deb361dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richieh77</media:title>
		</media:content>
	</item>
		<item>
		<title>It&#8217;s all over&#8230;&#8230; well nearly</title>
		<link>http://richieh77.wordpress.com/2008/04/01/its-all-over-well-nearly/</link>
		<comments>http://richieh77.wordpress.com/2008/04/01/its-all-over-well-nearly/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 22:43:20 +0000</pubDate>
		<dc:creator>richieh77</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[plumtree; sharepoint; migration]]></category>

		<guid isPermaLink="false">http://richieh77.wordpress.com/2008/04/01/its-all-over-well-nearly/</guid>
		<description><![CDATA[Well last Friday saw the final communities roll out the door. What can I say, I&#8217;ll be sorry to see Plumtree go but it&#8217;s time to embrace the brave new world. So what did we achieve? We built a custom tool that Migrate Projects from Plumtree to Sharepoint, mirroring security and audit history We built [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=20&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well last Friday saw the final communities roll out the door.</p>
<p>What can I say, I&#8217;ll be sorry to see Plumtree go but it&#8217;s time to embrace the brave new world.</p>
<p>So what did we achieve?</p>
<ul>
<li>We built a custom tool that Migrate Projects from Plumtree to Sharepoint, mirroring security and audit history </li>
<li>We built a custom web part that can query folders/views cross site collection and build a treeview from what it finds.&nbsp; This is our primary navigation, our site map and used as an Explorer style tool for looking at document libraries in other site collections</li>
<li>We implemented a User Interface that was so close to our bespoke Plumtree one, no users could tell the difference at first sight</li>
<li>We migrated 170 communities and over 400 projects in around 2 months using a migration team of 6 and 5 unbelievably adaptable business representatives</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richieh77.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richieh77.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richieh77.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richieh77.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richieh77.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richieh77.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richieh77.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richieh77.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richieh77.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richieh77.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richieh77.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richieh77.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richieh77.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richieh77.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richieh77.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richieh77.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=20&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richieh77.wordpress.com/2008/04/01/its-all-over-well-nearly/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d9b318d0a86a1e09fe0d81deb361dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richieh77</media:title>
		</media:content>
	</item>
		<item>
		<title>New page on Plumtree Migration Created</title>
		<link>http://richieh77.wordpress.com/2008/03/09/new-page-on-plumtree-migration-created/</link>
		<comments>http://richieh77.wordpress.com/2008/03/09/new-page-on-plumtree-migration-created/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 01:00:52 +0000</pubDate>
		<dc:creator>richieh77</dc:creator>
				<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://richieh77.wordpress.com/2008/03/09/new-page-on-plumtree-migration-created/</guid>
		<description><![CDATA[I have just posted a page relating to migrating from Plumtree to MOSS.  It is still a work in progress and at this stage is a first draft, 1 sitting brain dump.  Still I&#8217;m happy to receive any questions or things you think should be in it Click here to read all about it<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=19&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have just posted a page relating to migrating from Plumtree to MOSS.  It is still a work in progress and at this stage is a first draft, 1 sitting brain dump.  Still I&#8217;m happy to receive any questions or things you think should be in it</p>
<p><a href="http://richieh77.wordpress.com/migrating-plumtree-50x-to-moss2007/">Click here to read all about it</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richieh77.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richieh77.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richieh77.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richieh77.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richieh77.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richieh77.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richieh77.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richieh77.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richieh77.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richieh77.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richieh77.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richieh77.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richieh77.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richieh77.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richieh77.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richieh77.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=19&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richieh77.wordpress.com/2008/03/09/new-page-on-plumtree-migration-created/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d9b318d0a86a1e09fe0d81deb361dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richieh77</media:title>
		</media:content>
	</item>
		<item>
		<title>Web Part Maintenance</title>
		<link>http://richieh77.wordpress.com/2008/03/03/web-part-maintenance/</link>
		<comments>http://richieh77.wordpress.com/2008/03/03/web-part-maintenance/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 13:49:52 +0000</pubDate>
		<dc:creator>richieh77</dc:creator>
				<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://richieh77.wordpress.com/2008/03/03/web-part-maintenance/</guid>
		<description><![CDATA[One of the major sources of irritation for me, is when 1 of the Web Parts gets deployed incorrectly and ends up with the extremely helpful &#8220;Unexpected Error&#8221; screen. To regain control of your page browse to http://YourURL/_layouts/spcontnt.aspx?&#38;url=%2fSubSite%2fSubFolder%2fPageName or in my case http://spintranet/_layouts/spcontnt.aspx?&#38;url=%2fRich1%2fpages%2fdefault.aspx This will take you to the maintenance screen that will allow you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=17&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the major sources of irritation for me, is when 1 of the Web Parts gets deployed incorrectly and ends up with the extremely helpful &#8220;Unexpected Error&#8221; screen.</p>
<p>To regain control of your page browse to</p>
<p><a href="http://YourURL/_layouts/spcontnt.aspx?&amp;url=%2fSubSite%2fSubFolder%2fPageName" title="http://spintranet/_layouts/spcontnt.aspx?&amp;url=%2fRich1%2fpages%2fdefault.aspx">http://<font color="#000000">YourURL</font>/_layouts/spcontnt.aspx?&amp;url=%2f<font color="#000000">SubSite</font>%2f<font color="#000000">SubFolder</font>%2f<font color="#000000">PageName</font></a></p>
<p>or in my case</p>
<p><a href="http://spintranet/_layouts/spcontnt.aspx?&amp;url=%2fRich1%2fpages%2fdefault.aspx" title="http://spintranet/_layouts/spcontnt.aspx?&amp;url=%2fRich1%2fpages%2fdefault.aspx">http://spintranet/_layouts/spcontnt.aspx?&amp;url=%2fRich1%2fpages%2fdefault.aspx</a></p>
<p>This will take you to the maintenance screen that will allow you to Reset/Remove web parts for the specified URL</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richieh77.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richieh77.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richieh77.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richieh77.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richieh77.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richieh77.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richieh77.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richieh77.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richieh77.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richieh77.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richieh77.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richieh77.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richieh77.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richieh77.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richieh77.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richieh77.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=17&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richieh77.wordpress.com/2008/03/03/web-part-maintenance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d9b318d0a86a1e09fe0d81deb361dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richieh77</media:title>
		</media:content>
	</item>
		<item>
		<title>User Profile Property</title>
		<link>http://richieh77.wordpress.com/2008/02/29/user-profile-property/</link>
		<comments>http://richieh77.wordpress.com/2008/02/29/user-profile-property/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 23:52:40 +0000</pubDate>
		<dc:creator>richieh77</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[delgate control]]></category>
		<category><![CDATA[my sites]]></category>
		<category><![CDATA[profile]]></category>
		<category><![CDATA[properties]]></category>
		<category><![CDATA[SSP]]></category>
		<category><![CDATA[userdisp]]></category>
		<category><![CDATA[useredit]]></category>

		<guid isPermaLink="false">http://richieh77.wordpress.com/2008/02/29/user-profile-property/</guid>
		<description><![CDATA[Creating Properties One of the requirements when moving from Plumtree to Sharepoint was the ability to store data which wasn&#8217;t contained within the users AD profile in the Portal. In Plumtree this was quite straightforward and in Sharepoint it&#8217;s supposed to be quite easy too. Simply go to the SSP and select User Profile and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=16&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h4>Creating Properties</h4>
<p>One of the requirements when moving from Plumtree to Sharepoint was the ability to store data which wasn&#8217;t contained within the users AD profile in the Portal.</p>
<p>In Plumtree this was quite straightforward and in Sharepoint it&#8217;s supposed to be quite easy too.</p>
<p>Simply go to the SSP and select <font color="#0000ff">User Profile and Properties</font> link</p>
<p>Towards the bottom is the <font color="#0000ff">Add Profile Property</font> link.<br />Selecting this will allow you to configure the property, it&#8217;s internal and display name, content type etc.</p>
<p>The important part for me was the replicable setting.<br />This allows you to push the value from this property down to all Site Collections.</p>
<p>The display setting is also important as this controls which sections this property appears in.</p>
<p>Towards the bottom you can specify an existing Data Store to get the property data from</p>
<p>The various other settings should be self explanatory.</p>
<p><font color="#ff0000">You will need to have the content db marked as Ready and wait for the Profile Synchronization job to run before the properties appear</font></p>
<h4>Editing</h4>
<p>When editing properties there are 3 main sections.</p>
<ul>
<li>Within the SSP
<li>Within the Site Collection
<li>On the users My Sites </li>
</ul>
<p>The SSP is obviously a no no as users will not have access to this.<br />The Site Collection doesn&#8217;t allow you to update fields even though this is where the My Settings and the Edit Item links take you.<br />The only other place is My Sites.&nbsp; It is possible to edit a user profile without having an actual My Site created.&nbsp; It&#8217;s little known that within the UserDisp.aspx page, there is a redirect control.&nbsp; If you have specified a My Site location in the Portal Connection field.&nbsp; Then all traffic will be routed away from the UserDisp.aspx to the users Profile Page on their My Site.</p>
<p>This is great, except that</p>
<ul>
<li>You might want to be connected to another Portal
<li>You may have many Site Collections and this will be a pain
<li>You don&#8217;t want the My Site Portal name appearing in the site navigation </li>
</ul>
<p>To work around this you will need to use a feature which will apply a delegate control</p>
<p>This is as simple as creating a feature with an Elements file and use the control element with an ID of ProfileRedirection(used in the UserDisp page) and specifying an ascx page location.&nbsp; You may also specify a sequence to ensure yours appears above any others</p>
<p>The ASCX page will be called each time the page is loaded.&nbsp; This means you are not modifying Sharepoint central files.&nbsp; Particularly important when sharing hardware or paranoid about patching.</p>
<p>In our ASCX we simply check the URL, if it starts with a certain address we redirect, otherwise we don&#8217;t</p>
<p>To obtain the URL of the My Site, check out my article over <a href="http://richieh77.wordpress.com/2008/04/02/personal-site-url/">here</a></p>
<p>This article is useful, and has some good links <a title="http://blah.winsmarts.com/2007-7-SharePoint_2007__All_you_ever_wanted_to_know_about_User_Profiles.aspx" href="http://blah.winsmarts.com/2007-7-SharePoint_2007__All_you_ever_wanted_to_know_about_User_Profiles.aspx">http://blah.winsmarts.com/2007-7-SharePoint_2007__All_you_ever_wanted_to_know_about_User_Profiles.aspx</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richieh77.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richieh77.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richieh77.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richieh77.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richieh77.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richieh77.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richieh77.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richieh77.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richieh77.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richieh77.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richieh77.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richieh77.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richieh77.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richieh77.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richieh77.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richieh77.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=16&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richieh77.wordpress.com/2008/02/29/user-profile-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d9b318d0a86a1e09fe0d81deb361dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richieh77</media:title>
		</media:content>
	</item>
		<item>
		<title>Time zone Mayhem</title>
		<link>http://richieh77.wordpress.com/2008/02/27/time-zone-mayhem/</link>
		<comments>http://richieh77.wordpress.com/2008/02/27/time-zone-mayhem/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 01:09:14 +0000</pubDate>
		<dc:creator>richieh77</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[time zone]]></category>
		<category><![CDATA[timezone]]></category>
		<category><![CDATA[wss]]></category>

		<guid isPermaLink="false">http://richieh77.wordpress.com/2008/02/27/time-zone-mayhem/</guid>
		<description><![CDATA[So the other day, there I was minding my own business, when the request for a web part that showed the current Share Price for the US and GMT arrives on my desk. No problem I think we have the source feed and it provides the information with the last updated date in GMT.&#160; Unfortunately [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=11&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So the other day, there I was minding my own business, when the request for a web part that showed the current Share Price for the US and GMT arrives on my desk.</p>
<p>No problem I think we have the source feed and it provides the information with the last updated date in GMT.&nbsp; Unfortunately they want the FTSE price in GMT and the NYSE in EST.&nbsp; Converting times accurately between time zones on a server with a differing time zone to the required 1 has been a notorious headache especially when you factor in daylight saving time.</p>
<p>This has been made easier with .NET 3X TimeZoneInformation class but I am not coding in .NET 3.x for Sharepoint were using 2.0, but I did find a Sharepoint equivalent.</p>
<p>The final solution was to store the time in UTC and then use the SPRegionalSettings.GlobalTimeZoneSettings[].UTCToLocalTime to convert the time to the appropriate time.</p>
<p>So for a date object like 26-FEB-08 16:56 GMT</p>
<p>Simply myDT=DateTime.Parse(&#8220;26-FEB-08 16:56 GMT&#8221;);<br />myUniversalDT=myDT.ToUniversalTime();<br />string estTime=SPRegionalSettings.GlobalTimeZones[14].UTCToLocalTime(myUniversalDT).ToString();</p>
<p>string gmtTime=SPRegionalSettings.GlobalTimeZones[28].UTCToLocalTime(myUniversalDT).ToString();</p>
<p>So there you go, this uses out of the box Sharepoint 3.0 functionality to convert UTC times to EST(14) and GMT(28) obviously this could be expanded to for loop through the objects and then you wouldn&#8217;t need to hard code the indexes.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richieh77.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richieh77.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richieh77.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richieh77.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richieh77.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richieh77.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richieh77.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richieh77.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richieh77.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richieh77.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richieh77.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richieh77.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richieh77.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richieh77.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richieh77.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richieh77.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=11&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richieh77.wordpress.com/2008/02/27/time-zone-mayhem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d9b318d0a86a1e09fe0d81deb361dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richieh77</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating Site Collections and Groups</title>
		<link>http://richieh77.wordpress.com/2008/02/09/creating-site-collections-and-groups/</link>
		<comments>http://richieh77.wordpress.com/2008/02/09/creating-site-collections-and-groups/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 01:07:44 +0000</pubDate>
		<dc:creator>richieh77</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[add site groups]]></category>
		<category><![CDATA[add users]]></category>
		<category><![CDATA[assignment]]></category>
		<category><![CDATA[definition]]></category>
		<category><![CDATA[moss]]></category>
		<category><![CDATA[role]]></category>
		<category><![CDATA[roledefinition]]></category>
		<category><![CDATA[sitegroups]]></category>
		<category><![CDATA[spgroup]]></category>
		<category><![CDATA[spsite]]></category>
		<category><![CDATA[spuser]]></category>
		<category><![CDATA[spweb]]></category>
		<category><![CDATA[spwebapplication]]></category>
		<category><![CDATA[wss]]></category>

		<guid isPermaLink="false">http://richieh77.wordpress.com/2008/02/09/creating-site-collections-and-groups/</guid>
		<description><![CDATA[Ok, so one of the jobs I needed to do was automatically create a Site Collection and then create the members, owners and visitors groups. The first job is to get hold of the web application SPWebApplication spWA= SPWebApplication.Lookup(new Uri(http://mySite)); Next you can use the Sites collection to create the appropriate Site Collection The new [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=8&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ok, so one of the jobs I needed to do was automatically create a Site Collection and then create the members, owners and visitors groups.</p>
<p>The first job is to get hold of the web application</p>
<p align="left"><em>SPWebApplication spWA= SPWebApplication.Lookup(new Uri(http://mySite));</em></p>
<p>Next you can use the Sites collection to create the appropriate Site Collection    <br />The new site collections URL can either be in the format mySiteCollection or managedpath/mySiteCollection</p>
<p align="left"><em>int32 lcid=1033;      <br />string template=&quot;STS#2&quot; //Get the one you want </em><a href="http://stevenjohnevans.co.uk/blogs/dotnet/archive/2007/11/25/standard-site-definitions-within-sharepoint-2007-moss.aspx"><em>here</em></a><em>      <br />SPSite spS=spWA.Sites.Add(url,&quot;SiteName&quot;,&quot;SiteDescription&quot;,lcid,template,&quot;\\domain\ownerloginname&quot;,&quot;Owner Name&quot;, </em><a href="mailto:myemail@here.com"><em>myemail@here.com</em></a><em>)</em>     <br />There are a number of Add methods allowing you to configure owners, secondary owners, and config databases.&#160; Full list <a href="http://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.administration.spsitecollection.add.aspx">here</a></p>
<p align="left">Once you have done this you will need to add the groups.    <br />This is quite straight forward using the new site collections rootweb property and inturn the SiteGrpups collection     </p>
<p><em>SPWeb spW=spS.rootWeb;</em>     </p>
<p>The trick now is to add the group.&#160; The issue here is that you will need an SPMember object which is either SPGroup or SPUser for the owner object.     <br />The problem I encountered is that unless the user is part of the Root Web then they can&#8217;t be added as a Group owner.&#160; The group will half create and the API will not throw an Exception.&#160; What you will end up with is a Link in the Site Groups area of teh Site Collection, that errors when clicked. Also the SiteGroups count property will not reflect the new group, but you will not be able to add a group with the same name without receiving a name already exists exception     </p>
<p>There are several ways to get a user object.&#160; One involves a straight spW.SiteUsers.Add(&#8230;&#8230; lots of data)     </p>
<p>the other uses the Microsoft.Office.Workflow.Utility and generates a Contact, then uses this to get the actual user object.&#160; </p>
<p><em>Contact contact=Contact.FromName(userloginname,spW);      <br />if(contact.PrincipalID &lt; 0){       <br />&#160;&#160;&#160;&#160; //this actually adds the user to the site collection users list       <br />&#160;&#160;&#160;&#160; SPPrincipal p=contact.GetPrincipal(spW);       <br />}       <br />SPUser owner=spW.SiteUsers[contact.LoginName];       <br />spW.SiteGroups.Add(spW.Title + &quot; Owners&quot;,owner,null,&quot;This is the default owners group&quot;)       <br />SPGroup grpOwner=spW.SiteGroups[spW.Title + &quot; Owners&quot;];       <br />spW.AssociatedOwnerGroup=grpOwner       <br />//Repeat for other groups       <br /></em>    <br />Finally set the group permissions     </p>
<p><em>SPRoleDefinitionCollection roleDef=spW.RoleDefinitions;      <br />SPRoleAssignmentCollection roleAssigns=spW.RoleAssignments;       <br />SPRoleAssignment roleAssign = new SPRoleAssignment(grpOwner);       <br />SPRoleDefinitionBindingCollection definitions=roleAssign.RoleDefinitionBindings;       <br />definitions.Add(roleDef[&quot;Full Control&quot;]); //Could be Contribute or Read       <br />roleAssigns.Add(roleAssign);       <br />//Repeat for other groups       <br />spW.Update();</em></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/richieh77.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/richieh77.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/richieh77.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/richieh77.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/richieh77.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/richieh77.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/richieh77.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/richieh77.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/richieh77.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/richieh77.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/richieh77.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/richieh77.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/richieh77.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/richieh77.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/richieh77.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/richieh77.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=richieh77.wordpress.com&amp;blog=2664551&amp;post=8&amp;subd=richieh77&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://richieh77.wordpress.com/2008/02/09/creating-site-collections-and-groups/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d9b318d0a86a1e09fe0d81deb361dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">richieh77</media:title>
		</media:content>
	</item>
	</channel>
</rss>
