<?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>Kit Menke&#039;s Blog &#187; WSS</title>
	<atom:link href="http://kitmenke.com/blog/tag/wss/feed/" rel="self" type="application/rss+xml" />
	<link>http://kitmenke.com/blog</link>
	<description>Experiences with SharePoint, web development, and programming</description>
	<lastBuildDate>Wed, 01 Feb 2012 17:28:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Wrap ListViewWebPart Column Headers</title>
		<link>http://kitmenke.com/blog/2010/07/08/wrap-listviewwebpart-colum-headers/</link>
		<comments>http://kitmenke.com/blog/2010/07/08/wrap-listviewwebpart-colum-headers/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 18:55:58 +0000</pubDate>
		<dc:creator>Kit</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Example]]></category>
		<category><![CDATA[MOSS2007]]></category>
		<category><![CDATA[WSS]]></category>

		<guid isPermaLink="false">http://kitmenke.com/blog/?p=258</guid>
		<description><![CDATA[I recently got asked if it was possible wrap the column headers in a list view web part. The user had a WebPart with quite a few columns with long names and was trying to prevent the page from scrolling left to right. What we needed to do was wrap the column header so that [...]]]></description>
			<content:encoded><![CDATA[<p>I recently got asked if it was possible wrap the column headers in a list view web part. The user had a WebPart with quite a few columns with long names and was trying to prevent the page from scrolling left to right.<br />
<span id="more-258"></span></p>
<p><a href="http://kitmenke.com/blog/wp-content/uploads/2010/07/2010-07-08-13-48-02.png"><img class="alignnone size-full wp-image-259" title="Column Header (nowrap)" src="http://kitmenke.com/blog/wp-content/uploads/2010/07/2010-07-08-13-48-02.png" alt="Column Header (nowrap)" width="600" height="165" /></a></p>
<p>What we needed to do was wrap the column header so that it fit more to the data in the grid.</p>
<p><a href="http://kitmenke.com/blog/wp-content/uploads/2010/07/2010-07-08-13-47-27.png"><img class="alignnone size-full wp-image-260" title="Column Header (wrapped)" src="http://kitmenke.com/blog/wp-content/uploads/2010/07/2010-07-08-13-47-27.png" alt="Column Header (wrapped)" width="600" height="165" /></a></p>
<p>The solution is relatively simple to implement; all you need is a Content Editor Webpart at the bottom of the page somewhere with the following JavaScript in it:</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span> <br />
<span style="color: #003366; font-weight: bold;">function</span> WrapColumnHeaderText<span style="color: #009900;">&#40;</span>columnName<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> tables <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;table&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> tables.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// find the table that is for the column we're looking for</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> attrItem <span style="color: #339933;">=</span> tables<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">attributes</span>.<span style="color: #660066;">getNamedItem</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;displayname&quot;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">null</span> <span style="color: #339933;">!=</span> attrItem <span style="color: #339933;">&amp;&amp;</span> attrItem.<span style="color: #660066;">nodeValue</span> <span style="color: #339933;">===</span> columnName<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> cells <span style="color: #339933;">=</span> tables<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;td&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>c <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> c <span style="color: #339933;">&lt;</span> cells.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> c<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">null</span> <span style="color: #339933;">!=</span> cells<span style="color: #009900;">&#91;</span>c<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">attributes</span>.<span style="color: #660066;">getNamedItem</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;nowrap&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cells<span style="color: #009900;">&#91;</span>c<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">attributes</span>.<span style="color: #660066;">removeNamedItem</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;nowrap&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// after removing nowrap, IE won't actually wrap the content</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// until it &quot;changes&quot;.. so we touch it to force it to wrap</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cells<span style="color: #009900;">&#91;</span>c<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> cells<span style="color: #009900;">&#91;</span>c<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span>ex<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>ex.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #003366; font-weight: bold;">function</span> WrapColumnHeaders<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// TODO: repeat the line below to wrap more columns</span><br />
&nbsp; &nbsp; WrapColumnHeaderText<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Company Product Code&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
_spBodyOnLoadFunctionNames.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;WrapColumnHeaders&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></div></div>
<img src="http://kitmenke.com/blog/?ak_action=api_record_view&id=258&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://kitmenke.com/blog/2010/07/08/wrap-listviewwebpart-colum-headers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Updating choice fields via SharePoint Web Services</title>
		<link>http://kitmenke.com/blog/2009/10/30/updating-choice-fields-via-sharepoint-web-services/</link>
		<comments>http://kitmenke.com/blog/2009/10/30/updating-choice-fields-via-sharepoint-web-services/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 16:06:40 +0000</pubDate>
		<dc:creator>Kit</dc:creator>
				<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[WSS]]></category>

		<guid isPermaLink="false">http://kitmenke.com/blog/?p=148</guid>
		<description><![CDATA[May 20, 2010 Update This post is about using a C# console app to update choice fields via SharePoint web services.  If you are looking for more information on how SharePoint web services can be called via JavaScript, check out my post on building a simple SharePoint AJAX app. My problem started with a simple change to a site [...]]]></description>
			<content:encoded><![CDATA[<p><strong>May 20, 2010 Update<br />
</strong>This post is about using a C# console app to update choice fields via SharePoint web services.  If you are looking for more information on how SharePoint web services can be called via JavaScript, check out my post on <a href="http://kitmenke.com/blog/2010/03/14/a-simple-ajax-app-using-sharepoint-web-services/">building a simple SharePoint AJAX app</a>.</p>
<hr />
<p>My problem started with a simple change to a site column. I had originally created a Country field with the following values:</p>
<ul>
<li>US</li>
<li>Canada</li>
</ul>
<p>After a change in requirements, the new values for the field were:</p>
<ul>
<li>Canada</li>
<li>Germany</li>
<li>Great Britain</li>
<li>Ireland</li>
<li>United States</li>
</ul>
<p>After updating the site column, I then needed to update the hundreds of items in the list to use &#8220;United States&#8221; instead of &#8220;US&#8221;. Instead of updating hundreds of items manually, I decided to write a small web services console app. (I was also not able to update it in datasheet&#8230; due to content approval maybe???)</p>
<p>However, I quickly ran into problems when attempting to update the multi-select choice field.</p>
<p><span id="more-148"></span></p>
<h2>The Setup:</h2>
<p>My site column was defined with each choice for Country in alphabetical order:<br />
<a href="http://kitmenke.com/blog/wp-content/uploads/2009/10/2009-10-30-10-24-59.png"><img title="2009-10-30 10 24 59" src="http://kitmenke.com/blog/wp-content/uploads/2009/10/2009-10-30-10-24-59.png" alt="2009-10-30 10 24 59" width="281" height="366" /></a></p>
<h2>Symptoms:</h2>
<p>The symptoms of my problem were very strange. After running my app successfully, it seemed as if my updates were simply ignored by the server.</p>
<ol>
<li>The item is <strong>successfully</strong> updated using the Lists.asmx (it even creates a new version!)</li>
<li>The item does not show the updated value for your multi-select choice field in the UI.</li>
</ol>
<h2>The Code:</h2>
<p>Here is the very simple code that is creating the update message:</p>
<div class="codecolorer-container csharp default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> AddCountryUpdate<span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">ref</span> StringBuilder sb, <span style="color: #6666cc; font-weight: bold;">int</span> count, <span style="color: #6666cc; font-weight: bold;">string</span> id, <span style="color: #6666cc; font-weight: bold;">string</span> newCountry<span style="color: #008000;">&#41;</span><br />
<span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; sb<span style="color: #008000;">.</span><span style="color: #0000FF;">AppendFormat</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;&lt;Method ID='{0}' Cmd='Update'&gt;&quot;</span>, count<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; sb<span style="color: #008000;">.</span><span style="color: #0000FF;">AppendFormat</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;&lt;Field Name='ID'&gt;{0}&lt;/Field&gt;&quot;</span>, id<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; sb<span style="color: #008000;">.</span><span style="color: #0000FF;">AppendFormat</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;&lt;Field Name='Country'&gt;{0}&lt;/Field&gt;&quot;</span>, newCountry<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; sb<span style="color: #008000;">.</span><span style="color: #0000FF;">Append</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;&lt;/Method&gt;&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
<span style="color: #008000;">&#125;</span></div></div>
<p>Calling the following code to update:</p>
<div class="codecolorer-container csharp default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">XmlDocument xmlDoc <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> <span style="color: #000000;">System.<span style="color: #0000FF;">Xml</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">XmlDocument</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
<span style="color: #000000;">System.<span style="color: #0000FF;">Xml</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">XmlElement</span> elBatch <span style="color: #008000;">=</span> xmlDoc<span style="color: #008000;">.</span><span style="color: #0000FF;">CreateElement</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Batch&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
elBatch<span style="color: #008000;">.</span><span style="color: #0000FF;">InnerXml</span> <span style="color: #008000;">=</span> sb<span style="color: #008000;">.</span><span style="color: #0000FF;">ToString</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
XmlNode ndReturn <span style="color: #008000;">=</span> list<span style="color: #008000;">.</span><span style="color: #0000FF;">ListWebSvc</span><span style="color: #008000;">.</span><span style="color: #0000FF;">UpdateListItems</span><span style="color: #008000;">&#40;</span>listName, elBatch<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></div>
<h2>The Results:</h2>
<p>Attempting to update Country to be &#8220;;#United States;#Canada;#&#8221; resulted in a &#8221;success&#8221; response (error code of 0&#215;00000000) even when the update was NOT successful:</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Result</span> <span style="color: #000066;">ID</span>=<span style="color: #ff0000;">&quot;373,Update&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ErrorCode<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>0x00000000<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ErrorCode<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;z:row</span> <span style="color: #000066;">ows_ID</span>=<span style="color: #ff0000;">&quot;1311&quot;</span> <span style="color: #000066;">ows_Country</span>=<span style="color: #ff0000;">&quot;;#United States;#Canada;#&quot;</span> <span style="color: #000066;">ows_Modified</span>=<span style="color: #ff0000;">&quot;2009-10-29 16:01:05&quot;</span> <span style="color: #000066;">ows__UIVersionString</span>=<span style="color: #ff0000;">&quot;6.0&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Result<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>Viewing this in the UI still shows the old value:</p>
<p><a href="http://kitmenke.com/blog/wp-content/uploads/2009/10/2009-10-30-09-03-47.png"><img class="alignnone size-full wp-image-152" title="Country - Old Value" src="http://kitmenke.com/blog/wp-content/uploads/2009/10/2009-10-30-09-03-47.png" alt="Country - Old Value" width="300" height="30" /></a></p>
<p>However, only after the values are in order, &#8220;;#Canada;#United States;#&#8221;, will the update actually happen.</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Result</span> <span style="color: #000066;">ID</span>=<span style="color: #ff0000;">&quot;223,Update&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ErrorCode<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>0x00000000<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ErrorCode<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;z:row</span> <span style="color: #000066;">ows_ID</span>=<span style="color: #ff0000;">&quot;1311&quot;</span> <span style="color: #000066;">ows_Country</span>=<span style="color: #ff0000;">&quot;;#Canada;#United States;#&quot;</span> <span style="color: #000066;">ows_Modified</span>=<span style="color: #ff0000;">&quot;2009-10-30 08:51:45&quot;</span> <span style="color: #000066;">ows__UIVersionString</span>=<span style="color: #ff0000;">&quot;7.0&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Result<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>Viewing this in the UI shows the updated value:</p>
<p><a href="http://kitmenke.com/blog/wp-content/uploads/2009/10/2009-10-30-09-04-02.png"><img class="alignnone size-full wp-image-153" title="Country - Correct" src="http://kitmenke.com/blog/wp-content/uploads/2009/10/2009-10-30-09-04-02.png" alt="Country - Correct" width="350" height="30" /></a></p>
<p>Notice it still created a version 6.0 and 7.0:</p>
<p><a href="http://kitmenke.com/blog/wp-content/uploads/2009/10/2009-10-30-11-01-24.png"><img class="alignnone size-full wp-image-161" title="Version History" src="http://kitmenke.com/blog/wp-content/uploads/2009/10/2009-10-30-11-01-24.png" alt="Version History" width="295" height="201" /></a></p>
<h2>Conclusion:</h2>
<p>When updating a multi-select choice field using SharePoint&#8217;s Lists.asmx web service, <strong><span style="color: #ff0000;">the order of the choices in the update message are important</span></strong>. If they are out of order, it will not update.</p>
<img src="http://kitmenke.com/blog/?ak_action=api_record_view&id=148&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://kitmenke.com/blog/2009/10/30/updating-choice-fields-via-sharepoint-web-services/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Selected tab in the Top Link Bar</title>
		<link>http://kitmenke.com/blog/2009/06/18/selected-tab-in-the-top-link-bar/</link>
		<comments>http://kitmenke.com/blog/2009/06/18/selected-tab-in-the-top-link-bar/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 00:30:17 +0000</pubDate>
		<dc:creator>Kit</dc:creator>
				<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[WSS]]></category>

		<guid isPermaLink="false">http://kitmenke.com/blog/?p=70</guid>
		<description><![CDATA[The problem started after creating multiple aspx pages within my site and then setting up a tab for each page by editing the Top Link Bar (also known as the top navigation) under Site Settings. Each of the tabs worked correctly, but after clicking a tab that tab would not be highlighted and the home tab would stay selected.]]></description>
			<content:encoded><![CDATA[<p>I recently ran into the weird issue of not having my tabs highlighted correctly. After consulting Uncle Google, it seems <a href="http://www.novolocus.com/2009/04/07/highlighting-tabs-in-the-top-navigation/">Andy Burns</a> ran into this same issue.</p>
<p>The problem started after creating multiple aspx pages within my site and then setting up a tab for each page by editing the Top Link Bar (also known as the top navigation) under Site Settings. Each of the tabs worked correctly, but after clicking a tab that tab would not be highlighted and the home tab would stay selected.</p>
<p>The fix, as Andy mentions, is to change your URLs to be relative. After the change, your tabs work as you would expect.</p>
<img src="http://kitmenke.com/blog/?ak_action=api_record_view&id=70&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://kitmenke.com/blog/2009/06/18/selected-tab-in-the-top-link-bar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

