<?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>The UC Corner &#187; Foundation 2010</title>
	<atom:link href="http://www.uccorner.com/category/sharepoint/foundation2010/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.uccorner.com</link>
	<description>Unified Communications: Sharepoint, OCS, mobile communications and collaboration.</description>
	<lastBuildDate>Fri, 15 Jul 2011 09:31:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Cascading Drop Down Sharepoint Foundation 2010</title>
		<link>http://www.uccorner.com/253/sharepoint/cascading-drop-down-sharepoint-foundation-2010/</link>
		<comments>http://www.uccorner.com/253/sharepoint/cascading-drop-down-sharepoint-foundation-2010/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 09:27:57 +0000</pubDate>
		<dc:creator>Audun M. Solheim</dc:creator>
				<category><![CDATA[Foundation 2010]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint 2010]]></category>
		<category><![CDATA[cascading drop down]]></category>

		<guid isPermaLink="false">http://www.uccorner.com/?p=253</guid>
		<description><![CDATA[<p>After the release of Sharepoint 2010, the request for Cascading Drop Down, filtered drop down, dependent drop down or what you call them is not so common anymore. The reason for this is of course the Managed Metadata Service, which is included in Sharepoint Server 2010.</p> <p>There are still times, however, when you&#8217;d want to use the functionality [...]]]></description>
			<content:encoded><![CDATA[<p>After the release of Sharepoint 2010, the request for Cascading Drop Down, filtered drop down, dependent drop down or what you call them is not so common anymore. The reason for this is of course the Managed Metadata Service, which is included in Sharepoint Server 2010.</p>
<p>There are still times, however, when you&#8217;d want to use the functionality below to filter your drop downs. If you for instance are running Sharepoint Foundation, not Server, you won&#8217;t have the Managed Metadata Service available at all. Or perhaps you are running server, but you want to use list data and not terms from the term store.</p>
<p><strong><a title="Cascading Drop down 2007" href="http://www.uccorner.com/54/sharepoint/cascading-drop-down/">Read more about Cascading Drop Down in my previous post for Sharepoint 2007.</a></strong></p>
<p><strong>The solution<br />
</strong>The solution below is tested with Sharepoint 2010, and is basically the same procedure as the one for 2007. The list is still standard Sharepoint, which gives great flexibility and stability. This way, the filtering is done in the forms for creating and editing elements. Because of this, you don&#8217;t even have access to the server to implement this.</p>
<p><em>1. Add the Jacascript</em><br />
Download the Jquery file <a href="http://code.jquery.com/jquery-1.6.2.min.js" target="_blank">jquery-1.6.2.min.js</a> by Jquery.com. Download <a title="jquery" href="http://spservices.codeplex.com/" target="_blank">jquery.SPServices-0.6.2.zip</a> from the Jquery Library for Sharepoint Codeplex site (newer version is probably also OK). Upload jquery-1.6.2.min.js and jquery.SPServices-0.6.2.min.js (from the zip file) to a document library that everyone accessing your site has access to (a library on the top level site can be wise).</p>
<p><em>2. Create your relationship lists</em><br />
Make two lists, one for the parent (Country) and one for the child (City):</p>
<p>Countries list:<br />
<a href="http://www.uccorner.com/wp-content/uploads/2011/07/countries.png"><img class="alignnone size-full wp-image-255" title="countries list" src="http://www.uccorner.com/wp-content/uploads/2011/07/countries.png" alt="" width="226" height="110" /></a></p>
<p>Cities list:<br />
<a href="http://www.uccorner.com/wp-content/uploads/2011/07/cities.png"><img class="alignnone size-full wp-image-256" title="cities" src="http://www.uccorner.com/wp-content/uploads/2011/07/cities.png" alt="" width="478" height="181" /></a><br />
The Country column can be a look up from the Countries list, but you can just as well use a standard single line of  text column, which I have done here. This can theoretically give better performance, but you must of course be precise when filling out the County column so that the values here matches the ones in the Countries list.</p>
<p><em>3. Create the list that is actually using the Drop Down</em></p>
<p>Vacation Plans list:<br />
<a href="http://www.uccorner.com/wp-content/uploads/2011/07/vacation-plans.png"><img class="alignnone size-full wp-image-257" title="vacation plans" src="http://www.uccorner.com/wp-content/uploads/2011/07/vacation-plans.png" alt="" width="607" height="47" /></a></p>
<p>This is the list where I want my Cascading Drop Downs. Country and City are lookup columns against Countries and Cities lists. The lookups goes against the title field in the respective columns.</p>
<p><em>4. Make the magic happen<br />
</em>In Sharepoint Designer, create your own NewForm.aspx (or EditForm.aspx, you&#8217;ll need both if you want it to work when editing items). Editing forms is a lot easier now with Designer 2010.</p>
<pre>Just below
&lt;asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"&gt;</pre>
<p>insert this code:</p>
<pre>&lt;script language="javascript" type="text/javascript" src="/address to document library/jquery-1.6.2.min.js"&gt;&lt;/script&gt;
&lt;script language="javascript" type="text/javascript" src="/address to document library/jquery.SPServices-0.0.6.min.js"&gt;&lt;/script&gt;
&lt;script language="javascript" type="text/javascript"&gt;
 $(document).ready(function() {
  $().SPServices.SPCascadeDropdowns({
   relationshipList: "Cities",
   relationshipListParentColumn: "Country",
   relationshipListChildColumn: "Title",
   parentColumn: "Country",
   childColumn: "City",
   debug: true
  });

 });
&lt;/script&gt;

Save and create a new item using your new form:</pre>
<p><a href="http://www.uccorner.com/wp-content/uploads/2011/07/vacation.png"><img class="alignnone size-full wp-image-259" title="vacation" src="http://www.uccorner.com/wp-content/uploads/2011/07/vacation.png" alt="" width="627" height="364" /></a><br />
Voila!</p>
<p><em>5.Explained</em>:<br />
relationshipList: &#8220;Cities&#8221; : this is the name of the relationship list = the list containing parent and child<br />
relationshipListParentColumn: &#8220;Country&#8221; : Column name from the Cities list<br />
relationshipListChildColumn: &#8220;Title&#8221; : Column name from the Cities list<br />
parentColumn: &#8220;Country&#8221;: Column name from the list where the drop down is = Vacation Plans<br />
childColumn: &#8220;City&#8221;: Column name from the list where the drop down is = Vacation Plans</p>
<p>You have lost of other options explained at the <a href="http://spservices.codeplex.com/wikipage?title=%24%28%29.SPServices.SPCascadeDropdowns&amp;referringTitle=Documentation" target="_blank">project site on Codeplex</a> like sorting, multiple levels and so on.</p>
<p>Thanks to <a href="http://mdasblog.wordpress.com">Marc D. Anderson</a> for making this available.</p>
<p><em>I tested this on Sharepoint Server Enterprise 2010 with Service Pack 1 installed. It should work just as fine on Sharepoint Foundation. My installation is English Sharepoint with Norwegian Language Pack, but pure English should be jsut as fine.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.uccorner.com/253/sharepoint/cascading-drop-down-sharepoint-foundation-2010/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Updating Site Title (SPWeb web.Title) programmatically</title>
		<link>http://www.uccorner.com/227/sharepoint/updating-site-title-spweb-web-title-programmatically/</link>
		<comments>http://www.uccorner.com/227/sharepoint/updating-site-title-spweb-web-title-programmatically/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 12:14:47 +0000</pubDate>
		<dc:creator>Audun M. Solheim</dc:creator>
				<category><![CDATA[Foundation 2010]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint 2007]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[title]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.uccorner.com/?p=227</guid>
		<description><![CDATA[<p>Scenario:</p> <p>Sharepoint 2010 (Server or Foundation) is installed, and you also have installed one or more language packs.</p> <p>You update the SPWeb web.Title programmatically (web.Title = &#8220;New Title&#8221;, web.Update();) in C#, but the title is not updated in your browser. This will happen if your Sharepoint installation for example is English (1033), and your site is [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Scenario:</strong></p>
<p>Sharepoint 2010 (Server or Foundation) is installed, and you also have installed one or more language packs.</p>
<p>You update the SPWeb web.Title programmatically (web.Title = &#8220;New Title&#8221;, web.Update();) in C#, but the title is not updated in your browser. This will happen if your Sharepoint installation for example is English (1033), and your site is created in Norwegian (1044). It doesn&#8217;t matter if the installation language isn&#8217;t activated as a possible display language for your site, your updated title will only show when you choose the installation language as Display Language.</p>
<p>If you debug, you will se that the property web.Title is updated, but this is not what is shown in the browser. If you search further through the site&#8217;s properties when debugging, you will find a property called m_strTitle that holds your original title and obviously needs to beed updated. But, you cannot update this property directly.</p>
<p>So, how do you update the title in all Display Languages of the site?</p>
<pre>SPUserResource resource = web.TitleResource;
foreach (CultureInfo culture in web.SupportedUICultures)
{
Thread.CurrentThread.CurrentUICulture = culture;
resource.Value = "New Site Title";
}</pre>
<p>This also applies to for example web.Description, but not web.Name (which also is basis for the Site&#8217;s URL).</p>
<p>Remember to call web.Update, and ofcourse to do a web.Dispose if you are not using Using:)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.uccorner.com/227/sharepoint/updating-site-title-spweb-web-title-programmatically/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>FeatureUpgrading not firing in Sharepoint 2010 Sandbox</title>
		<link>http://www.uccorner.com/176/sharepoint/featureupgrading-not-firing-in-sharepoint-2010-sandbox/</link>
		<comments>http://www.uccorner.com/176/sharepoint/featureupgrading-not-firing-in-sharepoint-2010-sandbox/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 14:00:46 +0000</pubDate>
		<dc:creator>Audun M. Solheim</dc:creator>
				<category><![CDATA[Foundation 2010]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint 2010]]></category>
		<category><![CDATA[featureupgrading]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[sandbox]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.uccorner.com/?p=176</guid>
		<description><![CDATA[<p>So,</p> <p>you create a sandboxed solution in in Visual Studio 2010 for Sharepoint 2010, and you use a feature receiver to handle upgrades. You add a CustomUpgradeAction to your feature.xml file to fire some code when feature is upgraded.</p> <p>You forget that you cannot simply write to the event log or the Sharepoint (ULS) logs [...]]]></description>
			<content:encoded><![CDATA[<p>So,</p>
<p>you create a sandboxed solution in in Visual Studio 2010 for Sharepoint 2010, and you use a feature receiver to handle upgrades. You add a CustomUpgradeAction to your feature.xml file to fire some code when feature is upgraded.</p>
<p>You forget that you cannot simply write to the event log or the Sharepoint (ULS) logs in a sandboxed solution, and add some code like this:</p>
<pre>SPSecurity.RunWithElevatedPrivileges(delegate()</pre>
<pre>{</pre>
<pre>        System.Diagnostics.EventLog.WriteEntry("My Company, solution x", ex.Message);</pre>
<pre>});</pre>
<p>in the FeatureUpgrade method to write something to the event log, maybe to check what went wrong if you have some errors in your code.</p>
<p>You will see that the FeatureUpgrade method is not firing when upgrading. You won&#8217;t get any errors either, and attaching to the SPUCWorkerProcess.exe for debugging won&#8217;t help either &#8211; nothing happens.</p>
<p>To make things work, you have to remove the statement writing to the log, this prevents the event receiver to function properly.</p>
<p>P.S. If you add a statement like the one above to the FeatureActivated method, you will at least get an error message so you know what&#8217;s happening.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.uccorner.com/176/sharepoint/featureupgrading-not-firing-in-sharepoint-2010-sandbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharepoint Foundation aka WSS 4.0</title>
		<link>http://www.uccorner.com/113/sharepoint/sharepoint-foundation-aka-wss-4-0/</link>
		<comments>http://www.uccorner.com/113/sharepoint/sharepoint-foundation-aka-wss-4-0/#comments</comments>
		<pubDate>Mon, 03 May 2010 08:51:30 +0000</pubDate>
		<dc:creator>Audun M. Solheim</dc:creator>
				<category><![CDATA[Foundation 2010]]></category>
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://www.uccorner.com/?p=113</guid>
		<description><![CDATA[<p>For a couple of weeks Sharepoint Foundation, the successor of WSS 3.0 and the &#8220;free&#8221; version of Sharepoint, has been available for download.</p> <p>You can download the final version here and try it out for yourself: http://www.microsoft.com/downloads/details.aspx?FamilyID=49c79a8a-4612-4e7d-a0b4-3bb429b46595&#38;displaylang=en</p> ]]></description>
			<content:encoded><![CDATA[<p>For a couple of weeks Sharepoint Foundation, the successor of WSS 3.0 and the &#8220;free&#8221; version of Sharepoint, has been available for download.</p>
<p>You can download the final version here and try it out for yourself: <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=49c79a8a-4612-4e7d-a0b4-3bb429b46595&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=49c79a8a-4612-4e7d-a0b4-3bb429b46595&amp;displaylang=en</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.uccorner.com/113/sharepoint/sharepoint-foundation-aka-wss-4-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharepoint naming best practise</title>
		<link>http://www.uccorner.com/97/sharepoint/sharepoint-naming-best-practise/</link>
		<comments>http://www.uccorner.com/97/sharepoint/sharepoint-naming-best-practise/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 17:40:04 +0000</pubDate>
		<dc:creator>Audun M. Solheim</dc:creator>
				<category><![CDATA[Foundation 2010]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint 2007]]></category>
		<category><![CDATA[Sharepoint 2010]]></category>
		<category><![CDATA[WSS 3.0]]></category>
		<category><![CDATA[best practise]]></category>
		<category><![CDATA[file name]]></category>
		<category><![CDATA[naming]]></category>

		<guid isPermaLink="false">http://www.uccorner.com/?p=97</guid>
		<description><![CDATA[<p>When naming your files, folders (but you usually don&#8217;t want folders anyway) and sites, avoid these characters:</p> <p>&#38; ~ # %  * ? / + &#124; &#8221; . _ { } \ : &#60; &#62;</p> <p>Underscore is to be avoided as the first character in the name, and multiple consecutive periods should be avoided. In [...]]]></description>
			<content:encoded><![CDATA[<p>When naming your files, folders (but you usually don&#8217;t want folders anyway) and sites, avoid these characters:</p>
<p>&amp; ~ # %  * ? / + | &#8221; . _ { } \ : &lt; &gt;</p>
<p>Underscore is to be avoided as the first character in the name, and multiple consecutive periods should be avoided. In columns and document library names I also prefer to avoid Norwegian letters like æ,ø and å, and spaces. I rather rename the column or document library afterwards, getting a nice looking name combined with a coder-friendly URL (I get no sleep when I see URL&#8217;s like bad%20url.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.uccorner.com/97/sharepoint/sharepoint-naming-best-practise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Activate Sharepoint 2010 Developer Dashboard the easy way</title>
		<link>http://www.uccorner.com/82/sharepoint/sharepoint2010/activate-sharepoint-2010-developer-dashboard-the-easy-way/</link>
		<comments>http://www.uccorner.com/82/sharepoint/sharepoint2010/activate-sharepoint-2010-developer-dashboard-the-easy-way/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 18:40:17 +0000</pubDate>
		<dc:creator>Audun M. Solheim</dc:creator>
				<category><![CDATA[Foundation 2010]]></category>
		<category><![CDATA[Sharepoint 2010]]></category>
		<category><![CDATA[stsadm]]></category>
		<category><![CDATA[developer dashboard]]></category>

		<guid isPermaLink="false">http://www.uccorner.com/?p=82</guid>
		<description><![CDATA[<p>Sharepoint 2010 has a very useful function called the Developer Dashboard. When you enable this, you see what kind of resources the different requests on the page uses, the different queries etc.</p> <p>The dashboard can be always on, off or on demand. The latest option is the most useful for most scenarios, and gives you [...]]]></description>
			<content:encoded><![CDATA[<p>Sharepoint 2010 has a very useful function called the Developer Dashboard. When you enable this, you see what kind of resources the different requests on the page uses, the different queries etc.</p>
<p>The dashboard can be always on, off or on demand. The latest option is the most useful for most scenarios, and gives you a button on the page that you can click on each page individually to view the dashboard. This way, you can even use it in a production environment (of course not for testing new functions, you have a development, testing and staging platforms for that, right?). To enable the dashboard all you have to do is run this simple stsadm command. You can also use Powershell if you prefer that.</p>
<p>stsadm -o setproperty -pn developer-dashboard -pv ondemand</p>
]]></content:encoded>
			<wfw:commentRss>http://www.uccorner.com/82/sharepoint/sharepoint2010/activate-sharepoint-2010-developer-dashboard-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

