<?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; designer</title>
	<atom:link href="http://www.uccorner.com/tag/designer/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>Content Query Web Part &#8211; image on left with formatted date and description</title>
		<link>http://www.uccorner.com/231/sharepoint/content-query-web-part-image-on-left-with-formatted-date-and-description/</link>
		<comments>http://www.uccorner.com/231/sharepoint/content-query-web-part-image-on-left-with-formatted-date-and-description/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 18:38:19 +0000</pubDate>
		<dc:creator>Audun M. Solheim</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint 2007]]></category>
		<category><![CDATA[Sharepoint 2010]]></category>
		<category><![CDATA[cqwp]]></category>
		<category><![CDATA[designer]]></category>
		<category><![CDATA[itemstyle]]></category>
		<category><![CDATA[xsl]]></category>

		<guid isPermaLink="false">http://www.uccorner.com/?p=231</guid>
		<description><![CDATA[<p>There are tons of blog posts about using the Content Query Web Part to show for example news from an Announcement list. I myself learned a lot from this Heather Solomon post a couple of years ago.</p> <p>In this post I am going to show you step by step how to create an Item Style [...]]]></description>
			<content:encoded><![CDATA[<p>There are tons of blog posts about using the Content Query Web Part to show for example news from an Announcement list. I myself learned a lot from <a href="http://www.heathersolomon.com/blog/articles/CustomItemStyle.aspx" target="_blank">this </a>Heather Solomon post a couple of years ago.</p>
<p>In this post I am going to show you step by step how to create an Item Style for your CQWP that displays an announcements image, title, date and the first 250 characters of the description. This works for Sharepoint Server 2010, and unlike 2007 you don&#8217;t have to export the CQWP and change the code &#8211; no notepad this time!</p>
<p>&nbsp;</p>
<p>1. For best practise, I created my own Content Type inheriting from the Announcement Content Type. Lets call this <em>CompanyAnnoucement</em>. To <em>CompanyAnnoucement </em>I added an existing site colum: <em>Rollup Image</em>. Add <em>CompanyAnnoucement </em>to the list(s) you want. If lots of people needs direction on this step, I&#8217;ll make a blog post about it.</p>
<p><span id="more-231"></span></p>
<p>&nbsp;</p>
<p>2. Open your top-level site in Sharepoint Designer, click &#8220;All Files &#8211; Style Library &#8211; XSL Style Sheets &#8211; ItemStyle.xsl&#8221; and click <em>Edit </em>(Also, make a copy here before you make any changes, if you break this file, e.g. have a typo, none of your CQWP&#8217;s will work and display this error message:</p>
<p><em>Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.</em></p>
<p>&nbsp;</p>
<p>3. In the top of the file, add this line so we can format the date further down the road:</p>
<pre>xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"</pre>
<p>&nbsp;</p>
<p>4. Copy the Default Template (This is the &#8220;Image on Left&#8221; style).  Change the first line to</p>
<pre>&lt;xsl:template name="CompanyAnnouncement" match="Row[@Style='CompanyAnnouncement']" mode="itemstyle"&gt;</pre>
<p>&nbsp;</p>
<p>5.  Add this at the bottom of the variables section:</p>
<pre>&lt;xsl:variable name="Created"&gt; &lt;xsl:value-of select="ddwrt:FormatDateTime(string(@Created) ,1033 ,'dd.MM.yyyy')" /&gt;&lt;/xsl:variable&gt;</pre>
<p>&nbsp;</p>
<p>6. Change the title-part (the xsl:value-of select=&#8221;$DisplayTitle&#8221;-section to:</p>
<pre>&lt;strong&gt;&lt;xsl:value-of select="$DisplayTitle"/&gt; - &lt;xsl:value-of select="$Created"/&gt;&lt;/strong&gt;&lt;/a&gt;
&lt;div&gt; &lt;xsl:value-of select="substring(@Description,1,250)" disable-output-escaping="yes" /&gt;&lt;xsl:if test="string-length(@Description) &amp;gt; 250"&gt;...&lt;/xsl:if&gt;&lt;/div&gt;

<span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px; white-space: normal;">This displays the created-date in your previously specified format, and the first 250 characters of the description, and ... if there are more text in the description than being displayed.
</span><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px; white-space: normal;">Save and remember to publish ItemStyle.xsl!</span></pre>
<p>&nbsp;</p>
<p>7. Add a CQWP where you want it. In the CQWP settings, set the <em>Source </em>under <em>Query </em>as you like.</p>
<p>Under <em>Presentation &#8211; Styles &#8211; Item style</em>, choose <em>CompanyAnnouncement </em>that you should see here now.</p>
<p>Under <em>Fields to display</em>, set <em>Image </em>to <em>&#8220;Rollup Image;&#8221;</em>, <em>Title </em>to &#8220;<em>Title</em>&#8221; (both should already be set), and <em>Description </em>to &#8220;<em>Body</em>;&#8221;.</p>
<p>Click OK and you&#8217;re set to go:</p>
<p>&nbsp;</p>
<p>﻿<a href="http://www.uccorner.com/wp-content/uploads/2011/03/CQWP.png"><img class="alignnone size-full wp-image-232" title="CQWP" src="http://www.uccorner.com/wp-content/uploads/2011/03/CQWP.png" alt="" width="698" height="66" /></a></p>
<p>And yes &#8211; you are free to style this more beautiful than I can:)</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>If you don&#8217;t want to enter Sharepoint Designer and do this without code (and without being able to style the output yourself and including date, you can take a look at <a href="http://blogs.msdn.com/b/mvpawardprogram/archive/2011/05/23/mvps-for-sharepoint-2010-rolling-up-news-articles-in-sharepoint-server-2010-with-the-content-query-web-part.aspx" target="_blank">this</a> blog post.</p>
<p>&nbsp;</p>
<p><strong><em>Update: complete code below</em></strong></p>
<p>Here is the code in part 3), starting from the absolute top of ItemStyle.xsl:</p>
<p>&lt;xsl:stylesheet   version=&#8221;1.0&#8243;<br />
exclude-result-prefixes=&#8221;x d xsl msxsl cmswrt&#8221;<br />
xmlns:ddwrt=&#8221;http://schemas.microsoft.com/WebParts/v2/DataView/runtime&#8221;<br />
xmlns:x=&#8221;http://www.w3.org/2001/XMLSchema&#8221;<br />
xmlns:d=&#8221;http://schemas.microsoft.com/sharepoint/dsp&#8221;<br />
xmlns:cmswrt=&#8221;http://schemas.microsoft.com/WebParts/v3/Publishing/runtime&#8221;<br />
xmlns:xsl=&#8221;http://www.w3.org/1999/XSL/Transform&#8221;<br />
xmlns:msxsl=&#8221;urn:schemas-microsoft-com:xslt&#8221;&gt;</p>
<p>&nbsp;</p>
<p>And here is the code in part 4)-6), starting just below the closing tag of the Default template. In my ItemStyle this is line 82.</p>
<p>&lt;xsl:template name=&#8221;CompanyAnnouncement&#8221; match=&#8221;Row[@Style='CompanyAnnouncement']&#8221; mode=&#8221;itemstyle&#8221;&gt;<br />
&lt;xsl:variable name=&#8221;SafeLinkUrl&#8221;&gt;<br />
&lt;xsl:call-template name=&#8221;OuterTemplate.GetSafeLink&#8221;&gt;<br />
&lt;xsl:with-param name=&#8221;UrlColumnName&#8221; select=&#8221;&#8216;LinkUrl&#8217;&#8221;/&gt;<br />
&lt;/xsl:call-template&gt;<br />
&lt;/xsl:variable&gt;<br />
&lt;xsl:variable name=&#8221;SafeImageUrl&#8221;&gt;<br />
&lt;xsl:call-template name=&#8221;OuterTemplate.GetSafeStaticUrl&#8221;&gt;<br />
&lt;xsl:with-param name=&#8221;UrlColumnName&#8221; select=&#8221;&#8216;ImageUrl&#8217;&#8221;/&gt;<br />
&lt;/xsl:call-template&gt;        &lt;/xsl:variable&gt;        &lt;xsl:variable name=&#8221;DisplayTitle&#8221;&gt;<br />
&lt;xsl:call-template name=&#8221;OuterTemplate.GetTitle&#8221;&gt;<br />
&lt;xsl:with-param name=&#8221;Title&#8221; select=&#8221;@Title&#8221;/&gt;<br />
&lt;xsl:with-param name=&#8221;UrlColumnName&#8221; select=&#8221;&#8216;LinkUrl&#8217;&#8221;/&gt;<br />
&lt;/xsl:call-template&gt;<br />
&lt;/xsl:variable&gt;<br />
&lt;xsl:variable name=&#8221;Created&#8221;&gt;<br />
&lt;xsl:value-of select=&#8221;ddwrt:FormatDateTime(string(@Created) ,1044 ,&#8217;dd.MM.yyyy&#8217;)&#8221; /&gt;<br />
&lt;/xsl:variable&gt;<br />
&lt;div&gt;<br />
&lt;xsl:if test=&#8221;string-length($SafeImageUrl) != 0&#8243;&gt;<br />
&lt;div&gt;<br />
&lt;a href=&#8221;{$SafeLinkUrl}&#8221; onclick=&#8221;return OpenDialog(&#8216;{$SafeLinkUrl}&#8217;);&#8221;&gt;<br />
&lt;xsl:if test=&#8221;$ItemsHaveStreams = &#8216;True&#8217;&#8221;&gt;<br />
&lt;xsl:attribute name=&#8221;onclick&#8221;&gt;<br />
&lt;xsl:value-of select=&#8221;@OnClickForWebRendering&#8221;/&gt;<br />
&lt;/xsl:attribute&gt;<br />
&lt;/xsl:if&gt;<br />
&lt;xsl:if test=&#8221;$ItemsHaveStreams != &#8216;True&#8217; and @OpenInNewWindow = &#8216;True&#8217;&#8221;&gt;<br />
&lt;xsl:attribute name=&#8221;onclick&#8221;&gt;<br />
&lt;xsl:value-of disable-output-escaping=&#8221;yes&#8221; select=&#8221;$OnClickTargetAttribute&#8221;/&gt;<br />
&lt;/xsl:attribute&gt;<br />
&lt;/xsl:if&gt;<br />
&lt;img src=&#8221;{$SafeImageUrl}&#8221; title=&#8221;{@ImageUrlAltText}&#8221;&gt;<br />
&lt;xsl:if test=&#8221;$ImageWidth != &#8221;&#8221;&gt;<br />
&lt;xsl:attribute name=&#8221;width&#8221;&gt;<br />
&lt;xsl:value-of select=&#8221;$ImageWidth&#8221; /&gt;<br />
&lt;/xsl:attribute&gt;<br />
&lt;/xsl:if&gt;<br />
&lt;xsl:if test=&#8221;$ImageHeight != &#8221;&#8221;&gt;<br />
&lt;xsl:attribute name=&#8221;height&#8221;&gt;<br />
&lt;xsl:value-of select=&#8221;$ImageHeight&#8221; /&gt;<br />
&lt;/xsl:attribute&gt;<br />
&lt;/xsl:if&gt;<br />
&lt;/img&gt;<br />
&lt;/a&gt;<br />
&lt;/div&gt;<br />
&lt;/xsl:if&gt;<br />
&lt;div&gt;<br />
&lt;xsl:call-template name=&#8221;OuterTemplate.CallPresenceStatusIconTemplate&#8221;/&gt;<br />
&lt;a href=&#8221;{$SafeLinkUrl}&#8221; title=&#8221;{@LinkToolTip}&#8221; onclick=&#8221;return OpenDialog(&#8216;{$SafeLinkUrl}&#8217;);&#8221;&gt;<br />
&lt;xsl:if test=&#8221;$ItemsHaveStreams = &#8216;True&#8217;&#8221;&gt;<br />
&lt;xsl:attribute name=&#8221;onclick&#8221;&gt;<br />
&lt;xsl:value-of select=&#8221;@OnClickForWebRendering&#8221;/&gt;<br />
&lt;/xsl:attribute&gt;<br />
&lt;/xsl:if&gt;<br />
&lt;xsl:if test=&#8221;$ItemsHaveStreams != &#8216;True&#8217; and @OpenInNewWindow = &#8216;True&#8217;&#8221;&gt;<br />
&lt;xsl:attribute name=&#8221;onclick&#8221;&gt;<br />
&lt;xsl:value-of disable-output-escaping=&#8221;yes&#8221; select=&#8221;$OnClickTargetAttribute&#8221;/&gt;<br />
&lt;/xsl:attribute&gt;<br />
&lt;/xsl:if&gt;<br />
&lt;strong&gt;<br />
&lt;xsl:value-of select=&#8221;$DisplayTitle&#8221;/&gt; &#8211;  &lt;xsl:value-of select=&#8221;$Created&#8221;/&gt;&lt;/strong&gt; &lt;/a&gt;<br />
&lt;div&gt;<br />
&lt;xsl:value-of select=&#8221;substring(@Description,1,250)&#8221; disable-output-escaping=&#8221;yes&#8221; /&gt;<br />
&lt;xsl:if test=&#8221;string-length(@Description) &amp;gt; 250&#8243;&gt;&#8230;&lt;/xsl:if&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/xsl:template&gt;</p>
<p>In this complete version I have also added functionality to open the announcement in a modal dialogue, and I am using Nowegian Date formatting (1044) instead of English (1033).</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.uccorner.com/231/sharepoint/content-query-web-part-image-on-left-with-formatted-date-and-description/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<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>
		<item>
		<title>Sharepoint: Open links in new window</title>
		<link>http://www.uccorner.com/32/sharepoint/sharepoint-open-links-in-new-window/</link>
		<comments>http://www.uccorner.com/32/sharepoint/sharepoint-open-links-in-new-window/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 20:38: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[designer]]></category>
		<category><![CDATA[links]]></category>

		<guid isPermaLink="false">http://www.uccorner.com/?p=32</guid>
		<description><![CDATA[<p>Ok, this is a simple question really.You have a links list, and want the links to open in a new window. Not really best practise, but a common request for external links. (Best practise is of course to let the user decide &#8211; just hold down Shift while clicking the link and it opens in [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, this is a simple question really.You have a links list, and want the links to open in a new window. Not really best practise, but a common request for external links. (Best practise is of course to let the user decide &#8211; just hold down Shift while clicking the link and it opens in a new window). </p>
<p>The answer can be simple or a little more advanced, depending on how you solve it:</p>
<p><strong>1.#openinnewwindow</strong></p>
<p> To add #openinnewwindow to the end of the URL is a common suggestion, but it doesn&#8217;t work unless you make some JavaScript modifications.</p>
<p><strong>2. Summary Links Web Part</strong></p>
<p>Using MOSS, you say? Well, let the Summary Links Web Part come to the rescue. This web part is included in MOSS. Add this web part to a page and you can easily customze the links.</p>
<p><a href="http://www.uccorner.com/wp-content/uploads/2010/01/summarylinkwp.png"><img class="alignnone size-full wp-image-33" title="Summary Link Web Part" src="http://www.uccorner.com/wp-content/uploads/2010/01/summarylinkwp.png" alt="Summary Link Web Part" width="641" height="214" /></a></p>
<p>The drawback is that you add and edit the links in the web parts itself, it&#8217;s not connected to a list &#8211; not the Sharepoint way to do it if you ask me. You&#8217;ll have to have Design or Contribute permissions to add links that everyone can see.</p>
<p><strong>3. Convert to XSLT Data View</strong></p>
<p>OK, you only have WSS but you have Sharepoint Designer? Well, just open the page where you have a web part showing links from you links list in Sharepoint Designer.</p>
<p>Right-click &#8211; Convert to XSLT Data View.</p>
<p><a href="http://www.uccorner.com/wp-content/uploads/2010/01/converttodataview.png"><img class="alignnone size-full wp-image-40" title="Sharepoint Designer Convert to Data View" src="http://www.uccorner.com/wp-content/uploads/2010/01/converttodataview.png" alt="Convert to data view" width="304" height="363" /></a></p>
<p>Now you can right-click a link and set the target to a new window.</p>
<p><span id="more-32"></span></p>
<p>Right-click and choose Hyperlink Properties:</p>
<p><a href="http://www.uccorner.com/wp-content/uploads/2010/01/link_prop.png"><img class="alignnone size-full wp-image-41" title="Hyperlink properties" src="http://www.uccorner.com/wp-content/uploads/2010/01/link_prop.png" alt="Hyperlink properties" width="298" height="662" /></a></p>
<p>Click Target Frame:</p>
<p><a href="http://www.uccorner.com/wp-content/uploads/2010/01/edit_hyperlink.png"><img class="alignnone size-full wp-image-43" title="Edit hyperlink" src="http://www.uccorner.com/wp-content/uploads/2010/01/edit_hyperlink.png" alt="Edit hyperlink" width="655" height="337" /></a></p>
<p>Choose New Window:</p>
<p><a href="http://www.uccorner.com/wp-content/uploads/2010/01/target_frame.png"><img class="alignnone size-full wp-image-42" title="Target Frame" src="http://www.uccorner.com/wp-content/uploads/2010/01/target_frame.png" alt="Target Frame" width="367" height="337" /></a></p>
<p>That&#8217;s it! You can also set this as page default if you like.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.uccorner.com/32/sharepoint/sharepoint-open-links-in-new-window/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

