<?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>SharePoint &#187; MOSS</title>
	<atom:link href="http://www.sharepointboris.net/category/moss/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sharepointboris.net</link>
	<description>and Boris Gomiunik</description>
	<lastBuildDate>Thu, 22 Dec 2011 11:45:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Interactive stsadm help</title>
		<link>http://www.sharepointboris.net/2009/06/interactive-stsadm/</link>
		<comments>http://www.sharepointboris.net/2009/06/interactive-stsadm/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 09:30:32 +0000</pubDate>
		<dc:creator>Boris Gomiunik</dc:creator>
				<category><![CDATA[MOSS]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint administration]]></category>

		<guid isPermaLink="false">http://boris.gomiunik.net/?p=311</guid>
		<description><![CDATA[At TehNet they&#8217;ve released a very nice silverlight interactive help for STSADM command which the SharePoint Admin almost can&#8217;t imagine living without. Straight to the point: stsadm for MOSS 2007 http://technet.microsoft.com/en-us/office/sharepointserver/cc948709.aspx stsadm for WSS http://technet.microsoft.com/en-us/windowsserver/sharepoint/dd418924.aspx]]></description>
			<content:encoded><![CDATA[<p>At TehNet they&#8217;ve released a very nice silverlight interactive help for STSADM command which the SharePoint Admin almost can&#8217;t imagine living without.</p>
<p>Straight to the point:</p>
<p>stsadm for MOSS 2007<br />
<a href="http://technet.microsoft.com/en-us/office/sharepointserver/cc948709.aspx">http://technet.microsoft.com/en-us/office/sharepointserver/cc948709.aspx</a></p>
<p>stsadm for WSS<br />
<a href="http://technet.microsoft.com/en-us/windowsserver/sharepoint/dd418924.aspx">http://technet.microsoft.com/en-us/windowsserver/sharepoint/dd418924.aspx</a><!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointboris.net/2009/06/interactive-stsadm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Limiting the People picker and profile import from AD to certain group</title>
		<link>http://www.sharepointboris.net/2009/06/limiting-the-people-picker-and-profile-import-from-ad-to-certain-group/</link>
		<comments>http://www.sharepointboris.net/2009/06/limiting-the-people-picker-and-profile-import-from-ad-to-certain-group/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 11:35:18 +0000</pubDate>
		<dc:creator>Boris Gomiunik</dc:creator>
				<category><![CDATA[MOSS]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint administration]]></category>

		<guid isPermaLink="false">http://boris.gomiunik.net/2009/06/limiting-the-people-picker-and-profile-import-from-ad-to-certain-group/</guid>
		<description><![CDATA[If you have a SharePoint environment which not every employee in the organization uses you’re stuck with two obsticles: How to limit that the person is not selected and/or added as a member of the site collection (because of licencing issues) How to stop MOSS from importing entire AD domain or forest. If you’re stuck [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a SharePoint environment which not every employee in the organization uses you’re stuck with two obsticles:</p>
<ol>
<li>How to limit that the person is not selected and/or added as a member of the site collection (because of licencing issues)</li>
<li>How to stop MOSS from importing entire AD domain or forest. If you’re stuck with 100 users from 1000 to enter information manually can be a pain.</li>
</ol>
<p><font face="Arial">The solution can be that SharePoint will not recognize other domains/forests than the ones specified and limit the people from those forests to only certain groups. </font></p>
<p><font face="Arial">Here’s what I did. Let’s say we have an AD domain called contosio.local. In this domain We’ve created OU called AccessGroups and in this OU we’ve created a security group called SharePoint. We want to do this for the site http://moss</font></p>
<p><font face="Arial"><strong>1. To limit People picker to certain group in AD domain</strong>      <br />a. limit the peoplepicker property only to specified domain by running the following command      <br /><strong>stsadm –o setproperty –pn &quot;peoplepicker-searchadforests” –pv “domain:contosio.local,contosioadministrator,adminPassword” –url http://moss</strong></font></p>
<p>Note in the example above you have to enter the account with the right to read from AD and its password. If you want to limit the access to multiple AD domains, separate the values in pv with semicolon.</p>
<p>b. limit the peoplepicker property to custom <a href="http://www.selfadsi.org/ldapfilter.htm" target="_blank">LDAP filter</a> by running the following command:    <br /><strong>stsadm –o setproperty –pn peoplepicker-searchadcustomfilter –pv “(memberOf=CN=SharePoint,OU=AccessGroups,DC=contosio,DC=local)” –url http://moss</strong></p>
<p>Now you’ll be able to add people only from the domain contosio.local – group SharePoint. Don’t forget to add users to security group.</p>
<p><font face="Arial"><strong>2. To limit profile import only to that same AD group (MOSS ONLY)</strong>      <br />a. Open <strong>SharePoint Central Administration</strong>      <br />b. Open <strong>Shared Services Administration</strong>      <br />c. Click <strong>User Profiles and Properties</strong>      <br />d. Click <strong>View Import Connections       <br /></strong>e. Edit the domain connection for the domain (if you don’t have one yet, you’ll have to create it manually)      <br />f. Change the default value of the field&#160; <strong>User filter</strong> from (&amp;(objectCategory=Person)(objectClass=User)) to       <br /><strong>(&amp;(objectCategory=Person)(objectClass=User)(memberOf=CN=SharePoint,OU=AccessGroups,DC=contosio,DC=local))</strong></font></p>
<p><font face="Arial"></font></p>
<p><font face="Arial">Like that you now control from AD who can access SharePoint and who’s profiles get imported.</font></p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:986148ea-d59c-41ac-a1b4-8e720c65a6c0" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/SharePoint" rel="tag">SharePoint</a>,<a href="http://technorati.com/tags/SharePoint+administration" rel="tag">SharePoint administration</a>,<a href="http://technorati.com/tags/User+management" rel="tag">User management</a>,<a href="http://technorati.com/tags/AD" rel="tag">AD</a>,<a href="http://technorati.com/tags/Active+Directory" rel="tag">Active Directory</a>,<a href="http://technorati.com/tags/LDAP" rel="tag">LDAP</a></div>
<p><!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointboris.net/2009/06/limiting-the-people-picker-and-profile-import-from-ad-to-certain-group/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Fixing / Reattaching / Changing the Lookup list</title>
		<link>http://www.sharepointboris.net/2009/05/fixing-reattaching-changing-the-lookup-list/</link>
		<comments>http://www.sharepointboris.net/2009/05/fixing-reattaching-changing-the-lookup-list/#comments</comments>
		<pubDate>Tue, 19 May 2009 13:24:08 +0000</pubDate>
		<dc:creator>Boris Gomiunik</dc:creator>
				<category><![CDATA[MOSS]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint administration]]></category>

		<guid isPermaLink="false">http://boris.gomiunik.net/2009/05/fixing-reattaching-changing-the-lookup-list/</guid>
		<description><![CDATA[Today the strangest thing happened. During the content migration suddenly the target list lost the proper destination. The result was ALL the lookup values missing and the dropdown empty when adding /editing. Horror! if this would have been a short list the first thing I’d do is to restore it from backup and recover the [...]]]></description>
			<content:encoded><![CDATA[<p>Today the strangest thing happened. During the content migration suddenly the target list lost the proper destination. The result was ALL the lookup values missing and the dropdown empty when adding /editing. Horror! if this would have been a short list the first thing I’d do is to restore it from backup and recover the lookup values. But this being the couple-thousand-records-and-growing-daily list I couldn’t afford that.</p>
<p>With a bit of research into Lookup Field Schema XML I’ve discovered that the LookupList and WebID properties (GUIDS) were wrong. Using SharePoint Manager I could correct the WebID but not the LookupList. </p>
<p>Fortunately after a short period of googling around I’ve discovered this post:</p>
<p><a href="http://blog.beckybertram.com/Lists/Posts/Post.aspx?ID=33" target="_blank">Reattaching LookupList Property to a new List</a></p>
<p>and that worked like a charm! All the values magically reappeared and lookup dropdowns are back in action.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:b7cdea05-3f07-4098-93d6-5a611421d18b" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/MOSS" rel="tag">MOSS</a>,<a href="http://technorati.com/tags/SharePoint" rel="tag">SharePoint</a>,<a href="http://technorati.com/tags/Lookup+Field" rel="tag">Lookup Field</a>,<a href="http://technorati.com/tags/Disaster+recovery" rel="tag">Disaster recovery</a>,<a href="http://technorati.com/tags/Restore" rel="tag">Restore</a></div>
<p><!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointboris.net/2009/05/fixing-reattaching-changing-the-lookup-list/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Inserting JavaScript into XSLT</title>
		<link>http://www.sharepointboris.net/2009/03/inserting-javascript-into-xslt/</link>
		<comments>http://www.sharepointboris.net/2009/03/inserting-javascript-into-xslt/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 13:28:15 +0000</pubDate>
		<dc:creator>Boris Gomiunik</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://boris.gomiunik.net/2009/03/inserting-javascript-into-xslt/</guid>
		<description><![CDATA[When inserting JavaScript code into XSLT dataForm webpart it can sometimes get tricky. Sometimes SharePoint designer messes up our code or we have huge trouble with &#38; signs,… the best way to insert the JavaScript code block into XSLT data view is to enclose it with xsl:text and cdata. Below is the sample: &#60;xsl:text disable-output-escaping=”yes”&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>When inserting JavaScript code into XSLT dataForm webpart it can sometimes get tricky. Sometimes SharePoint designer messes up our code or we have huge trouble with &amp; signs,… the best way to insert the JavaScript code block into XSLT data view is to enclose it with xsl:text and cdata. Below is the sample:</p>
<p><strong>&lt;xsl:text disable-output-escaping=”yes”&gt;     <br />&lt;![CDATA[      <br />&lt;script type=”text/javascript”&gt;      <br /></strong>(your JavaScript code here)    <br /><strong>&lt;/script&gt;     <br />]]&gt;      <br />&lt;/xsl:text&gt;</strong></p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:88f9b6d9-9b3e-41d0-b6b4-78207ca3a003" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/SharePoint" rel="tag">SharePoint</a>,<a href="http://technorati.com/tags/XSLT" rel="tag">XSLT</a>,<a href="http://technorati.com/tags/DataForm" rel="tag">DataForm</a>,<a href="http://technorati.com/tags/WebPart" rel="tag">WebPart</a>,<a href="http://technorati.com/tags/JavaScript" rel="tag">JavaScript</a>,<a href="http://technorati.com/tags/Data+View" rel="tag">Data View</a></div>
<p><!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointboris.net/2009/03/inserting-javascript-into-xslt/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Filtering by Current user CAML query</title>
		<link>http://www.sharepointboris.net/2009/03/filtering-by-current-user-caml-query/</link>
		<comments>http://www.sharepointboris.net/2009/03/filtering-by-current-user-caml-query/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 09:03:39 +0000</pubDate>
		<dc:creator>Boris Gomiunik</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://boris.gomiunik.net/2009/03/filtering-by-current-user-caml-query/</guid>
		<description><![CDATA[If you need custom CAML (for example in Content Query WebPart QueryOverride) and you need items filtered by Current User – the one that is currently logged in, you can setup the following filter (the example below references the field “Assigned To”: &#60;Where&#62; &#160; &#60;Eq&#62;&#60;FieldRef Name=&#8217;AssignedTo&#8217; LookupId=&#8217;TRUE&#8217;/&#62;&#60;Value Type=&#8217;Integer&#8217;&#62;&#60;UserID/&#62;&#60;/Value&#62;&#60;/Eq&#62; &#60;/Where&#62; In the example above what I [...]]]></description>
			<content:encoded><![CDATA[<p>If you need custom CAML (for example in <a href="http://blogs.msdn.com/ecm/archive/2006/10/25/configuring-and-customizing-the-content-query-web-part.aspx" target="_blank">Content Query WebPart</a> QueryOverride) and you need items filtered by Current User – the one that is currently logged in, you can setup the following filter (the example below references the field “Assigned To”: </p>
<p><strong>&lt;Where&gt;      <br />&#160; &lt;Eq&gt;&lt;FieldRef Name=&#8217;AssignedTo&#8217; LookupId=&#8217;TRUE&#8217;/&gt;&lt;Value Type=&#8217;Integer&#8217;&gt;&lt;UserID/&gt;&lt;/Value&gt;&lt;/Eq&gt;       <br />&lt;/Where&gt;</strong></p>
<p>In the example above what I did was change the value type to Integer and add a LookupId=’TRUE’ attribute to FieldRef node.</p>
<p>How to get the internal name of the field? Here’s one of the ways: In list settings click the name of the column / field for editing its properties</p>
<p><a href="http://boris.gomiunik.net/wp-content/uploads/2009/03/image.png" rel="lightbox[277]" title="image"><img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="56" alt="image" src="http://boris.gomiunik.net/wp-content/uploads/2009/03/image-thumb.png" width="244" border="0" /></a> </p>
<p>in the URL of the “Change Column” page look for the value of last parameter (Field=…)</p>
<p><a href="http://boris.gomiunik.net/wp-content/uploads/2009/03/image1.png" rel="lightbox[277]" title="image"><img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="32" alt="image" src="http://boris.gomiunik.net/wp-content/uploads/2009/03/image-thumb1.png" width="244" border="0" /></a> </p>
<p>If your column name doesn’t contain any special characters (like spaces or other, you have the value), otherwise you can use simple javascript to retrieve the field name. For example if the column name is Številka, the parameter in url will look weird:</p>
<p><a href="http://boris.gomiunik.net/wp-content/uploads/2009/03/image2.png" rel="lightbox[277]" title="image"><img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="59" alt="image" src="http://boris.gomiunik.net/wp-content/uploads/2009/03/image-thumb2.png" width="171" border="0" /></a> </p>
<p>To get the field name, copy the value and paste it into the following javascript which you can run from URL in your browser:</p>
<p><strong>javascript:alert(unescape(‘[paste_weird_field_code_here]’))</strong></p>
<p><a href="http://boris.gomiunik.net/wp-content/uploads/2009/03/image3.png" rel="lightbox[277]" title="image"><img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="130" alt="image" src="http://boris.gomiunik.net/wp-content/uploads/2009/03/image-thumb3.png" width="244" border="0" /></a> </p>
<p>and the alert box shows the SharePoint’s internal column name.</p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:58414d7c-e86b-4c17-b4a5-3a9c2af0f103" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/MOSS" rel="tag">MOSS</a>,<a href="http://technorati.com/tags/SharePoint" rel="tag">SharePoint</a>,<a href="http://technorati.com/tags/CAML" rel="tag">CAML</a>,<a href="http://technorati.com/tags/Content+Query+WebPart" rel="tag">Content Query WebPart</a></div>
<p><!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointboris.net/2009/03/filtering-by-current-user-caml-query/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>BDC, multiple choices for filters and wildcards</title>
		<link>http://www.sharepointboris.net/2009/02/bdc-multiple-choices-for-filters-and-wildcards/</link>
		<comments>http://www.sharepointboris.net/2009/02/bdc-multiple-choices-for-filters-and-wildcards/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 11:21:02 +0000</pubDate>
		<dc:creator>Boris Gomiunik</dc:creator>
				<category><![CDATA[MOSS]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://boris.gomiunik.net/2009/02/bdc-multiple-choices-for-filters-and-wildcards/</guid>
		<description><![CDATA[I’ve been looking a lot around to find an option to have multiple filters available on BDC that would not exclude each other out. The scenario is: we have a BDC connection to a SQL table with entity that contains company ID and Company name. Company ID is a primary key. Both ID and name [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been looking a lot around to find an option to have multiple filters available on BDC that would not exclude each other out. The scenario is:</p>
<ul>
<li>we have a BDC connection to a SQL table with entity that contains company ID and Company name. Company ID is a primary key. Both ID and name are strings. </li>
<li>we would like to filter either by company ID or by company name and use the wildcard option (to search by part of string or whole). </li>
</ul>
<p>The best way to set up your ADF is with BDC MetaMan. </p>
<p>1. Set up appropriate filters on getdbo method (the Finder method). The FilterDescriptors have to be of type <strong>wildcard</strong>. Put any value as default.</p>
<p><a href="http://boris.gomiunik.net/wp-content/uploads/2009/02/image5.png" rel="lightbox[257]" title="image"><img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="217" alt="image" src="http://boris.gomiunik.net/wp-content/uploads/2009/02/image-thumb5.png" width="244" border="0" /></a> </p>
<p>&#160;</p>
<p>2. Build the XML</p>
<p>3. Modify the XML:</p>
<p>a. The Select statement in RdbCommandText property of the finder method (Getdbo.[tableName]) – change the <strong>AND</strong> operator to <strong>OR</strong>.     <br />&#160; <br /><strong>Select [companyID],[companyName],[address],… From dbo.[companies] where([companyID] LIKE @CompanyID) <u>OR</u> ([companyName] LIKE @CompanyName)&lt;/Property&gt;       <br /></strong>(use your column names in the example above).</p>
<p>b. Delete or comment out default values for “In” parameters of that method.    <br />&#160; <br />&lt;Parameters&gt;     <br />&#160; &lt;Parameter Direction=&quot;In&quot; Name=&quot;@CompanyID&quot;&gt;     <br />&#160;&#160;&#160; &lt;TypeDescriptor TypeName=&quot;System.String&quot; Name=&quot;sifra&quot; AssociatedFilter=&quot;Šifra&quot; IdentifierName=&quot;[companyID]&quot;&gt;     <br />&#160;&#160;&#160;&#160; <strong><u>&lt;!&#8211;</u></strong>&lt;DefaultValues&gt;     <br />&#160;&#160;&#160;&#160; &lt;DefaultValue MethodInstanceName=&quot;dbo.[partnerji]Finder&quot; Type=&quot;System.String&quot;&gt;123&lt;/DefaultValue&gt;     <br />&#160;&#160;&#160;&#160;&#160; &lt;/DefaultValues&gt;<u>&#8211;<strong>&gt;</strong></u>     <br />&#160;&#160;&#160;&#160; &lt;/TypeDescriptor&gt;     <br />&lt;/Parameter&gt;</p>
<p>4. Publish the XML. If publishing the xml gives you version error, just increment the version number from 1.0.0.0 to 1.0.0.1</p>
<p>This did the trick for me. Below are the “before” and “after” parts of the code with highlighted changes. Click for a bit enlarged preview.</p>
<p><a href="http://boris.gomiunik.net/wp-content/uploads/2009/02/image8.png" rel="lightbox[257]" title="Code comparison"><img title="Code comparison" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="395" alt="Code comparison" src="http://boris.gomiunik.net/wp-content/uploads/2009/02/image-thumb8.png" width="1594" border="0" /></a> </p>
<p><strong></strong></p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:3f5f01ff-bbce-4597-97d2-174a73b4c829" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/MOSS" rel="tag">MOSS</a>,<a href="http://technorati.com/tags/SharePoint" rel="tag">SharePoint</a>,<a href="http://technorati.com/tags/BDC" rel="tag">BDC</a></div>
<p><!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointboris.net/2009/02/bdc-multiple-choices-for-filters-and-wildcards/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

