<?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; drop down</title>
	<atom:link href="http://www.uccorner.com/tag/drop-down/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 &#8211; multiple select</title>
		<link>http://www.uccorner.com/75/sharepoint/cascading-drop-down-multiple-select/</link>
		<comments>http://www.uccorner.com/75/sharepoint/cascading-drop-down-multiple-select/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 16:00:26 +0000</pubDate>
		<dc:creator>Audun M. Solheim</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint 2007]]></category>
		<category><![CDATA[WSS 3.0]]></category>
		<category><![CDATA[cascading]]></category>
		<category><![CDATA[designer]]></category>
		<category><![CDATA[drop down]]></category>
		<category><![CDATA[filter]]></category>

		<guid isPermaLink="false">http://www.uccorner.com/?p=75</guid>
		<description><![CDATA[<p>Update: Marc D. Anderson has now updated the Jquery files, so if you use the latest version this won&#8217;t be an issue anymore and you can disregard this post.</p> <p>I have previously written a walk-through about how to implement a relationship between two columns:</p> <p>http://www.uccorner.com/54/sharepoint/cascading-drop-down/</p> <p>My friend and excellent SharePoint-er Jasmine Garry found ut that under [...]]]></description>
			<content:encoded><![CDATA[<p><em>Update: Marc D. Anderson has now updated the Jquery files, so if you use the latest version this won&#8217;t be an issue anymore and you can disregard this post.</em></p>
<p>I have previously written a walk-through about how to implement a relationship between two columns:</p>
<p><a href="http://www.uccorner.com/54/sharepoint/cascading-drop-down/">http://www.uccorner.com/54/sharepoint/cascading-drop-down/</a></p>
<p>My friend and excellent SharePoint-er Jasmine Garry found ut that under certain circumstances, this approach did not work. To be more precise, if your site is in another language than English, and your column in the list where the relationship is (i.e. &#8220;Vacation Plans&#8221;) allows for multiple select, you get this error:</p>
<pre>Message: Column not found on page</pre>
<p>The reason for this is that the Jquery file uses hard-coded English terms to create a string that works with multiple select.</p>
<h3>Solution:</h3>
<p>First, in the code for your custom NewForm (the page where you are getting the actual error), look for a select tag and find the one where title=&#8221;City possible values&#8221;. Possible values will be in your own language. Now open the jquery.SPServices-0.4.8.min.js-file (or the version you are using), replace all occurrences (there are several) of possible values with the equivalent from your own language that you just found in the source code for the page.</p>
<p>Now, do the same procedure for &#8220;selected values&#8221; and you are good to go.</p>
<p>This is a workaround, and is expected to be fixed in a later release of the Jquery file by Marc D. Anderson.</p>
<p>Thanks to Jasmine Garry and Marc D. Anderson for figuring this out: <a href="http://spservices.codeplex.com/Thread/View.aspx?ThreadId=85478">http://spservices.codeplex.com/Thread/View.aspx?ThreadId=85478</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.uccorner.com/75/sharepoint/cascading-drop-down-multiple-select/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cascading Drop Down</title>
		<link>http://www.uccorner.com/54/sharepoint/cascading-drop-down/</link>
		<comments>http://www.uccorner.com/54/sharepoint/cascading-drop-down/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 16:02:18 +0000</pubDate>
		<dc:creator>Audun M. Solheim</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint 2007]]></category>
		<category><![CDATA[WSS 3.0]]></category>
		<category><![CDATA[cascading]]></category>
		<category><![CDATA[designer]]></category>
		<category><![CDATA[drop down]]></category>
		<category><![CDATA[filter]]></category>

		<guid isPermaLink="false">http://www.uccorner.com/?p=54</guid>
		<description><![CDATA[<p>The request for Cascading Drop Down, filtered drop down, dependent drop down or what you call them is one of the most common requirements from customers. This rather basic functionality is surprisingly not implemented in either WSS 3.0 or MOSS 2007.</p> <p>Update: This also works in Sharepoint Foundation (2010). I have created a new post for 2010 here.</p> [...]]]></description>
			<content:encoded><![CDATA[<p>The request for Cascading Drop Down, filtered drop down, dependent drop down or what you call them is one of the most common requirements from customers. This rather basic functionality is surprisingly not implemented in either WSS 3.0 or MOSS 2007.</p>
<p><em>Update: This also works in Sharepoint Foundation (2010). I have created a new post for 2010 <a href="http://www.uccorner.com/253/sharepoint/cascading-drop-down-sharepoint-foundation-2010/">here</a>.</em></p>
<p><strong>What is Cascading Drop Down?<br />
</strong>You have two columns in your Sharepoint list, Country and City. Both are lookup/drop down columns. When you choose a country in the Country Drop Down, you only want to see the cities in this country available in the City Drop Down column. This of course makes life easier for the end user, and improves data quality.</p>
<p><strong>Solutions en masse</strong><br />
There are however lots of solutions for this. <a title="Datacogs" href="http://datacogs.com/datablogs/archive/2007/08/26/641.aspx" target="_blank">Datacogs&#8217; Cascading Drop Down </a>is well-known, and various improved versions like <a href="http://cascddlistwithfilter.codeplex.com/" target="_blank">SharePoint Cascading Drop Down List (With Filter) Field Type</a> and <a title="Custom Field control" href="http://customfieldcontrols.codeplex.com/" target="_blank">Query Based Lookup Field Control (Custom field controls), </a>both on Codeplex. These are all free, you can also find solutions out there you have to pay for. I have tried several of these, however good work these guys are doing making this for free, there are some issues that keeps me from using them, like annoying page refresh, creating lots of versions of the list element and the general problems you can get with restore/moving/upgrading data that is not standard Sharepoint.</p>
<p><strong>The solution<br />
</strong>Instead, I have used this solution with success. 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. I have used this solution both in document libraries and in regular Sharepoint lists.<span id="more-54"></span></p>
<p><em>1. Add the Jacascript</em><br />
Download the Jquery file <a href="http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2.min.js" target="_blank">jquery-1.3.2.min.js</a> by Jquery.com. Download <a title="jquery" href="http://spservices.codeplex.com/" target="_blank">jquery.SPServices-0.4.8.zip</a> from the Jquery Library for Sharepoint Codeplex site (newer version is probably also OK). Upload jquery-1.3.2.min.js and jquery.SPServices-0.4.8.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/2010/01/countries.png"><img class="alignnone size-full wp-image-55" title="countries" src="http://www.uccorner.com/wp-content/uploads/2010/01/countries.png" alt="" width="183" height="92" /></a></p>
<p>Cities list:<br />
<a href="http://www.uccorner.com/wp-content/uploads/2010/01/cities.png"><img class="alignnone size-medium wp-image-56" title="cities" src="http://www.uccorner.com/wp-content/uploads/2010/01/cities-300x150.png" alt="" width="300" height="150" /></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. 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 using the Drop Down</em></p>
<p>Vacation Plans list:<br />
<a href="http://www.uccorner.com/wp-content/uploads/2010/01/vacation.png"><img class="alignnone size-medium wp-image-57" title="vacation" src="http://www.uccorner.com/wp-content/uploads/2010/01/vacation-300x56.png" alt="" width="300" height="56" /></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). If you don&#8217;t know how to do this, I&#8217;ll probably post a tutorial later. Tip: don&#8217;t edit the existing forms, but copy them and assign them as default forms.</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.3.2.min.js"&gt;&lt;/script&gt;
&lt;script language="javascript" type="text/javascript" src="/address to document library/jquery.SPServices-0.4.8.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/2010/01/holiday.png"><img class="alignnone size-full wp-image-59" title="holiday" src="http://www.uccorner.com/wp-content/uploads/2010/01/holiday.png" alt="" width="623" height="251" /></a><br />
Voila!</p>
<p><em> 5.Explained</em>:<br />
relationshipList: &#8220;Cities&#8221; : this is the name of the relationsship 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>Updated: The Jquery files is now updated by Marc D. Anderson to support also multiple select in non-english languages without having to tweak anything. Thanks  to Jasmine Garry and Marc D. Anderson for this update.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.uccorner.com/54/sharepoint/cascading-drop-down/feed/</wfw:commentRss>
		<slash:comments>83</slash:comments>
		</item>
	</channel>
</rss>

