<?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.Sharon &#187; technical</title>
	<atom:link href="http://www.sharepointsharon.com/archive/technical/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sharepointsharon.com</link>
	<description>news and tips about SharePoint and friends</description>
	<lastBuildDate>Tue, 24 Jan 2012 12:03:41 +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>Problems opening PDFs in SharePoint 2010</title>
		<link>http://www.sharepointsharon.com/2011/07/problems-opening-pdfs-in-sharepoint-2010/</link>
		<comments>http://www.sharepointsharon.com/2011/07/problems-opening-pdfs-in-sharepoint-2010/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 15:55:17 +0000</pubDate>
		<dc:creator>Sharon Richardson</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[install & config]]></category>
		<category><![CDATA[adobe]]></category>

		<guid isPermaLink="false">http://www.sharepointsharon.com/?p=2458</guid>
		<description><![CDATA[This one has been stuck in my drafts pile for longer than planned. It shouldn&#8217;t still be a problem because it was addressed in the December 2010 Cumulative Update. But if you do have problems opening PDFs from SharePoint 2010, the first step should be to apply Cumulative Updates. But here&#8217;s the hack that worked [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointsharon.com%2F2011%2F07%2Fproblems-opening-pdfs-in-sharepoint-2010%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointsharon.com%2F2011%2F07%2Fproblems-opening-pdfs-in-sharepoint-2010%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This one has been stuck in my drafts pile for longer than planned. It shouldn&#8217;t still be a problem because it was addressed in the December 2010 Cumulative Update. But if you do have problems opening PDFs from SharePoint 2010, the first step should be to apply Cumulative Updates. But here&#8217;s the hack that worked before the fix was issued:</p>
<p>Problem: Can&#8217;t open PDF files from SharePoint 2010</p>
<p>Reason: Looks like Microsoft got heavy with the default security settings.</p>
<p>Solution:</p>
<ul>
<li>In the DOCICON.XML file*, edit the mapping key for PDF files to include the OpenControl parameter<br />
e.g. &lt;Mapping Key=&#8221;pdf&#8221; value=&#8221;pdficon.gif&#8221; OpenControl=&#8221;" /&gt;</li>
<li>In Central Administration, go to Manage Web Applications. For each web application that may contain PDF files, under General Settings, change File Handling from Strict to Permissive &lt;- by all means read the explanation about Strict vs Permissive in the dialogue first, it does have security implications.</li>
</ul>
<p>Note this fix only applies to new libraries. See referneces for a Powershell hack to fix existing libraries.  Otherwise PDFs in existing libraries will still have the problem, whether accessed by navigating to the library or from within search results.</p>
<p>* If you&#8217;re wondering what the DOCICON.XML file is, you need to configure SharePoint to recognise PDF files. See related blog post: <a href="http://www.sharepointsharon.com/2010/03/sharepoint-2010-and-adobe-pdf/">SharePoint 2010 and Adobe PDF</a></p>
<h4>References:</h4>
<ul>
<li><a href="http://social.technet.microsoft.com/Forums/en/sharepoint2010setup/thread/80365b88-937a-4188-85ef-45cbdc2cd10d">SharePoint 2010 won&#8217;t open PDFs</a> &#8211; MS Technet discussion</li>
<li><a href="http://blogs.kma-llc.net/microknowledge/2011/01/powershell-and-pdf-document-handling-in-sharepoint-2010-keeping-docs-in-the-browser.html">Powershell script to amend existing document libraries</a> &#8211; KM Associates, Jan 2011</li>
<li><a href="http://support.microsoft.com/kb/2459257">December 2010 Cumulative Update details</a> &#8211; Microsoft, Dec 2010</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointsharon.com/2011/07/problems-opening-pdfs-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Service Pack 1 for SharePoint 2010</title>
		<link>http://www.sharepointsharon.com/2011/05/service-pack-1-for-sharepoint-2010/</link>
		<comments>http://www.sharepointsharon.com/2011/05/service-pack-1-for-sharepoint-2010/#comments</comments>
		<pubDate>Tue, 17 May 2011 15:57:14 +0000</pubDate>
		<dc:creator>Sharon Richardson</dc:creator>
				<category><![CDATA[install & config]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[service pack]]></category>

		<guid isPermaLink="false">http://www.sharepointsharon.com/?p=2504</guid>
		<description><![CDATA[Microsoft have announced the upcoming planned release of SharePoint 2010&#8242;s first service pack. Due to arrive in late June 2011. Full details in their blog. Short version here for my memory as much anything else Introducing the Site Recycle Bin &#8211; self-service recovery of site collections and sites! Shallow Copy &#8211; improved method for managing [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointsharon.com%2F2011%2F05%2Fservice-pack-1-for-sharepoint-2010%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointsharon.com%2F2011%2F05%2Fservice-pack-1-for-sharepoint-2010%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Microsoft have announced the upcoming planned release of SharePoint 2010&#8242;s first service pack. Due to arrive in late June 2011.</p>
<p><a href="http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=973">Full details</a> in their blog. Short version here for my memory as much anything else <img src='http://www.sharepointsharon.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<ul>
<li>Introducing the Site Recycle Bin &#8211; self-service recovery of site collections and sites!</li>
<li>Shallow Copy &#8211; improved method for managing Remote BLOB Storage &#8211; can now move site collections to new content databases without moving the underlying files (used to be uploaded and then downloaded again, waste of resources). Now the references stay intact by simply updating the pointers instead.</li>
<li>The return of StorMan.aspx &#8211; reporting on site quotas (top docs, library size etc.) for site owners to manage their stuff.</li>
<li>Some work on browser support for IE9 (phew, should be more stable) and Google Chrome</li>
<li>Plus all the usual bug fixes and will include all Cumulative Update packs through to April 2011.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointsharon.com/2011/05/service-pack-1-for-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>User Profile Tips and Tricks</title>
		<link>http://www.sharepointsharon.com/2011/04/user-profile-tips-and-tricks/</link>
		<comments>http://www.sharepointsharon.com/2011/04/user-profile-tips-and-tricks/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 13:32:02 +0000</pubDate>
		<dc:creator>Sharon Richardson</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[install & config]]></category>

		<guid isPermaLink="false">http://www.sharepointsharon.com/?p=2437</guid>
		<description><![CDATA[Here are a few tips and tricks to use when working with user profiles in SharePoint 2010. Note: Most also apply to SharePoint 2007. 1. Displaying all profiles in the service application When you go to edit user profiles in the User Profile service application, you will see a blank screen with a search box [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointsharon.com%2F2011%2F04%2Fuser-profile-tips-and-tricks%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointsharon.com%2F2011%2F04%2Fuser-profile-tips-and-tricks%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Here are a few tips and tricks to use when working with user profiles in SharePoint 2010. Note: Most also apply to SharePoint 2007.</p>
<h3>1. Displaying all profiles in the service application</h3>
<p>When you go to edit user profiles in the User Profile service application, you will see a blank screen with a search box to find profiles. If you enter a letter, it will list all names beginning with that letter. If you simply want to list all profiles, enter the first letter or your domain.  All user profiles begin with the domain name&#8230; <img src='http://www.sharepointsharon.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h3>2. Adding properties to user profiles</h3>
<p>User profiles come with a whole bunch of properties to fill out. Some are automatically mapped to your domain if you are syncing profiles with Active Diretory. You can also add your own properties. They can be set to be filled in by users or be synchronised with another data source.  You can also remove the properties you don&#8217;t need.</p>
<p>If you want a property to be visible on the Profile page, simply check the appropriate boxes. You can choose to display it on the user profile page, display it on the Edit Details page (so that users can fill in the property themselves) and include updates to the field in newsfeeds (see item 6).</p>
<p>By the way, if you edit a profile from Central Admin, don&#8217;t worry about red asterisks that suggest certain properties are mandatory. They aren&#8217;t.</p>
<h3>3. Synchronising user profiles with Active Directory</h3>
<p>&#8230;is a lot trickier to achieve in SharePoint 2010 than it was in SharePoint 2007.  I&#8217;ve included a bunch of links that worked for me in the handbook on this site, see: <a title="Shared Services in the SharePoint 2010 Handbook" href="http://www.sharepointsharon.com/resources/handbook-2010/install/services/">Shared Services</a>. Follow the instructions very carefully.</p>
<h3>4. Know how search works</h3>
<p>People search is built-in to SharePoint. When you search for information, user profiles will be included in the results. If you are specifically searching for people, the results can be less accurate. SharePoint includes phonetic search &#8211; if you don&#8217;t know how to spell a name, spell it how it sounds and the search engine should find a match. But what SharePoint does not include is partial search. A search for &#8216;Dan&#8217; won&#8217;t find &#8216;Daniel&#8217;. And results aren&#8217;t displayed alphabetically by default &#8211; you have to change the sort order in the search results. If you want search to behave like an address book, you have to do some work. The following post provides a walkthrough: <a href="../2011/03/staffdirectory-sp2010/">Setting up Staff Directory Search in SharePoint 2010.</a></p>
<h3>5. Creating audiences</h3>
<p>The Audience feature has been in SharePoint for a while but doesn&#8217;t always get used much. But if you are trying to create a more social intranet, audiences are a great tool. Audiences can be used to target navigation and web parts (so that items only appear for certain groups). Audiences are created using rules that match user profile content. For example, you could create a user profile property called Newsletters with a dropdown menu to pick from. You could then create an audience for each type of newsletter. When people select the newsletter in their profile, they will be added to the audience and can receive targeted content.</p>
<p>Final tip on audiences: don&#8217;t forget to setup a schedule to update them, preferably inline with when user profiles are synced.</p>
<h3>6. Enable the Activity Feed Timer Job for Newsfeeds to update</h3>
<p>New to SharePoint 2010 is the Newsfeed feature within user profiles. The newsfeed contains all updates of interest to a user &#8211; based on changes made by their colleagues or updates that match items in the &#8216;Interests&#8217; section of their profile. For example, if I register an interest in XBox 360, I&#8217;ll see updates in my newsfeed regardless of who made them (i.e. they don&#8217;t need to be in my social network).</p>
<p>But for newsfeeds to populate, the activity timer needs to be enabled (it&#8217;s disabled by default). The default name for the Timer Job Definition is ‘User Profile  Service Application – Activity Feed Job’.</p>
<h3>7. Extend the time out on Farm Search Settings</h3>
<p>If you have ever seen your user profiles disappear from search, it can be caused by a timeout. The issue normally occurs on an incremental crawl. Increase the timeout from 60 to 120, then perform a full crawl. After that, everything should be working.  To increase the time out, go into the Search Application service page, and click on Farm Search Administration (it&#8217;s a few links above Content Sources).</p>
<p>That&#8217;s all for now. If you&#8217;re interested in more details on any of these topics, leave a comment.</p>
<p>This post is filed in the SharePoint 2010 handbook under: <a href="http://www.sharepointsharon.com/resources/handbook-2010/install/services/">Shared Services</a> and <a href="http://www.sharepointsharon.com/resources/handbook-2010/features/social-computing/">Social Computing</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointsharon.com/2011/04/user-profile-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Staff Directory Search in SharePoint 2010</title>
		<link>http://www.sharepointsharon.com/2011/03/staffdirectory-sp2010/</link>
		<comments>http://www.sharepointsharon.com/2011/03/staffdirectory-sp2010/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 11:28:46 +0000</pubDate>
		<dc:creator>Sharon Richardson</dc:creator>
				<category><![CDATA[add-ons]]></category>
		<category><![CDATA[articles]]></category>
		<category><![CDATA[solutions]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[social]]></category>

		<guid isPermaLink="false">http://www.sharepointsharon.com/?p=2340</guid>
		<description><![CDATA[[Update] Please note that this solution does not quite get to a full address book search. When Microsoft says &#8216;Sort by name&#8217;, they actually only sort by first name. Daft I know but go complain to them.  The best approach is to add a note for people &#8211; add at least the first letter of [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointsharon.com%2F2011%2F03%2Fstaffdirectory-sp2010%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointsharon.com%2F2011%2F03%2Fstaffdirectory-sp2010%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>[Update] Please note that this solution does not quite get to a full address book search. When Microsoft says &#8216;Sort by name&#8217;, they actually only sort by first name. Daft I know but go complain to them.  The best approach is to add a note for people &#8211; add at least the first letter of each name if possible, e.g. search for First name: Cla, Last name: P. That usually ensures all possible matches are listed on the first page.  I did have a workaround for SharePoint 2007 that also sorted by last name, but it only worked per page, i.e. per 50 results which also is not ideal.</p>
<p>&#8212;-</p>
<p>This post applies to: SharePoint Server 2010, Standard or Enterprise edition. (Requires User Profile Service). It does not apply to SharePoint Foundation Service or FAST.</p>
<p>SharePoint Server includes people in search results. This is great if you&#8217;re looking for expertise in a given subject. Results are based on the content of user profiles, which can be a mix of formal information &#8211; organisation hierarchy, name, contact details etc. and informal stuff &#8211; skills, hobbies, interests etc.</p>
<p>However, what SharePoint does not do straight out of the box is provide address book style staff directory searches. If you are searching specifically for a person, you have to spell their name precisely or phonetically. This post will walk through setting up staff search where you can enter all or part of a name (e.g. show me names beginning &#8216;Sm&#8217;) with results displayed alphabetically.</p>
<h3>Preparation</h3>
<p>To set-up staff directory search, you first need to have configured a search site using one of the built-in Search site templates available with SharePoint Server 2010 Standard and Enterprise edition. I recommend the Enterprise Search Center site template, it&#8217;s available in SharePoint Server Standard and Enterprise edtions (yes, Microsoft has habit of mixing up what the word Enterprise applies to).</p>
<p>For help with setting up the search site, see the following blog post: <a title="SharePoint 2010 Search Set-up" href="http://www.sharepointsharon.com/2010/11/search-set-up/">SharePoint 2010 Search Set-up</a></p>
<h3>Create the Staff Directory search tabs and results page</h3>
<p>Instead of using the standard People results page that comes with the Enterprise Search site, we&#8217;re going to add an additional tab and results page called Staff Directory. Note: you could just modify the People page, I prefer to use a separate one and leave People for finding expertise.</p>
<p>First we need to create the page we are going to display staff directory search results:</p>
<ol>
<li>Navigate to the search site</li>
<li>Go to Site Actions &#8211; View All Site Content</li>
<li>In All Site Content, under Document Libraries, click on Pages</li>
<li>In the Pages library, click on the Documents tab at the top of the page, click on New Document and select Welcome Page<br />
<a href="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearch1.jpg"><img class="aligncenter size-full wp-image-2367" title="staffsearch1" src="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearch1.jpg" alt="Staff Search image 1" width="340" height="310" /></a></li>
<li>To create the page:<br />
- Enter a title: Staff Directory<br />
- URL: staffresults<br />
- Select the page layout: (Welcome Page) People Search results, and click Create<br />
<a href="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearcg2a.jpg"><img class="aligncenter size-full wp-image-2378" title="staffsearch2a" src="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearcg2a.jpg" alt="Staff Search Image 2" width="525" height="260" /></a></li>
<li>The page will be checked out, check it in and publish as a major version (1.0). There&#8217;s still some work to do but we&#8217;ll be editing it later&#8230;</li>
</ol>
<p>Second, we need to create tabs to make it easy to navigate to the page:</p>
<ol>
<li>Go back to Site Actions &#8211; View All Site Content</li>
<li>In All Site Content, under Lists, click on Tabs in Search Pages</li>
<li>Click Add New Item and enter the Tab Name: Staff Directory and Page: staffresults.aspx<br />
<a href="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearch3.jpg"><img class="aligncenter size-full wp-image-2370" title="staffsearch3" src="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearch3.jpg" alt="Staff Search image 3" width="403" height="298" /></a>You must use the same page name that you just created. You don&#8217;t need to enter the full URL, just the page name, the list points directly at the Pages library.</li>
<li>Repeate steps 1 &#8211; 3, but this time select the list Tabs in Search Results</li>
</ol>
<p>The end result: Your search site now has a dedicated tab and search results page for your staff directory:</p>
<p style="text-align: center;"><a href="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearch41.jpg"><img class="aligncenter size-full wp-image-2380" title="staffsearch4" src="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearch41.jpg" alt="Staff Search 4" width="400" height="62" /></a></p>
<h3>Create the Staff Directory Search Box</h3>
<p>The following can be done on any page on any site but let&#8217;s assume you want it on the Intranet home page.</p>
<ol>
<li>Add a Content Editor web part to the page</li>
<li>Edit the web part to change it&#8217;s title to Staff Search</li>
<li>Click inside the web part, then in the menu ribbon, click on the HTML icon and choose Edit HTML Source<br />
<a href="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearch5.jpg"><img class="aligncenter size-full wp-image-2387" title="staffsearch5" src="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearch5.jpg" alt="Staff Search Image 5" width="560" height="173" /></a>Note: You must do this inside a web part and using the HTML Source box for it to work. Otherwise SharePoint will remove the JavaScript when you save the page</li>
<li>Insert the following code* inside the HTML Source box:  Replace the URLs to point to your search site and page name. You may want to include the full path, e.g. http://server/&#8230; Change the table settings if you want a different size or style of layout.
<pre>&lt;script language="javascript"&gt;</pre>
<pre>//function for enter on keyboard and apostrophes in search strings</pre>
<pre>function txtWildPeopleFinder_KeyDown(e)</pre>
<pre>{
if (e.keyCode == 13 || e.keyCode==10)
{
e.returnValue=false;
DoWildPeopleSearch();
return false;
}
else
return true;</pre>
<pre>}</pre>
<pre>function escapestr(str)</pre>
<pre>{
return str.replace("'","%22");
}</pre>
<pre>//staff search</pre>
<pre>function DoWildPeopleSearch()</pre>
<pre>{
var firstname = escapestr(document.all["firstname"].value);
var lastname = escapestr(document.all["lastname"].value);
var url;</pre>
<pre>//search on last name onnly (first name is empty)</pre>
<pre>if(firstname == "")</pre>
<pre>{
url = "/search/Pages/staffresults.aspx?k=LastName%3A" + lastname;
window.location=url;
return;
}</pre>
<pre>//search on first name only (last name is empty)</pre>
<pre>if(lastname == "")</pre>
<pre>{
url = "/search/Pages/staffresults.aspx?k=FirstName%3A" + firstname;
window.location=url;
return;
}</pre>
<pre>//search on first and last
url = "/search/Pages/staffresults.aspx?k=lastname%3A" + lastname +
"%20FirstName%3A" + firstname;
window.location=url;
return;
}
&lt;/script&gt;

&lt;table width="100%" id="StaffSearchTable" border="0" cellspacing="0"
cellpadding="4"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td width="80" nowrap="nowrap"&gt;First Name:&lt;/td&gt;
&lt;td width="100%"&gt;&lt;input name="firstname" id="firstname"
onkeydown="txtWildPeopleFinder_KeyDown(event)" type="text" size="25"
maxlength="55"/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td width="80" nowrap="nowrap"&gt;Last Name:&lt;/td&gt;
&lt;td&gt;&lt;input name="lastname" id="lastname"
onkeydown="txtWildPeopleFinder_KeyDown(event)"
type="text" size="25" maxlength="55"/&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;input onclick="DoWildPeopleSearch()" type="button" value="Search"/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Enter all or part of a name&lt;br/&gt;e.g. A will find all names beginning with A&lt;/p&gt;</pre>
</li>
<li>Click OK. If you are confident you&#8217;ve got the code right, now woud be a good time to export this web part. SharePoint is very fussy about using JavaScript and if you try to edit it at a later date, it may break. Export and then import to the web part gallery to make it easy to just add it back in at a later date. If you&#8217;ve made an error, delete the web part and start again from scratch.</li>
<li>Once done, save the page and you should now have a web part that looks something like this:<br />
<a href="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearch6.jpg"><img class="aligncenter size-full wp-image-2388" title="staffsearch6" src="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearch6.jpg" alt="Staff Search Image 6" width="300" height="127" /></a></li>
<li>Test the web part to make sure you entered the correct URLs for the search page. Assuming you did, stay on the Staff Directory results page, ready for the next step.</li>
</ol>
<p>Note. The code creates a layout using a table. If this offends your design sensabilities, by all means insert DIVs and appropriate HTML code to create a properly formatted AAA-compliant box. (p.s. it still won&#8217;t be compliant if you&#8217;re using a web part zone because the zones use tables in the page layout&#8230;)</p>
<p>* I&#8217;d love to take full credit for this code but somebody else wrote the original. I&#8217;ve had it for years and can&#8217;t remember if I got one of the Devs to help or found it via Google. There&#8217;s quite possibly a better way of writing it.</p>
<h3>Modifying the Staff Directory results page</h3>
<p>The final step is to edit the Staff Directory results page. If you&#8217;re not already looking at the page, navigate to it now.</p>
<p style="text-align: center;"><a href="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearch7.jpg"><img class="aligncenter size-full wp-image-2389" title="staffsearch7" src="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearch7.jpg" alt="Staff Search Image 7" width="480" height="182" /></a></p>
<p>The image above shows the default People search results page. You can see the search parameters in the search box &#8211; I searched for everyone with a last name beginnning G. But look at the results. They are not in alpahebetical order. We&#8217;re going to replace the default search box with our staff directory search and change the way the results are displayed.</p>
<ol>
<li>Edit the staffresults.aspx page</li>
<li>Delete the web part called People Search Box</li>
<li>If you exported/imported your Staff Search web part earlier, now add it to the Top Zone of the page</li>
<li>Edit the web part settings and under Appearance, change the Chrome to None (to hide the title and borders)</li>
<li>Click inside the web part content and click the HTML icon to Edit HTML Source. The code is identical to the before but we are going to use a different table layout. Replace your TABLE section with the following:
<pre>&lt;table id="StaffSearch" border="0" cellspacing="0" cellpadding="3"&gt;
&lt;tbody&gt;&lt;tr&gt;&lt;td width="80" nowrap="nowrap"&gt;First Name:&lt;/td&gt;
&lt;td width="180"&gt;&lt;input name="firstname" id="firstname"
onkeydown="txtWildPeopleFinder_KeyDown(event)" type="text" size="20"
maxlength="100"/&gt; &lt;/td&gt;
&lt;td width="80" nowrap="nowrap"&gt;Last Name:&lt;/td&gt;
&lt;td width="180"&gt;&lt;input name="lastname" id="lastname"
onkeydown="txtWildPeopleFinder_KeyDown(event)" type="text" size="20"
maxlength="100"/&gt; &lt;/td&gt;
&lt;td&gt;&lt;input onclick="DoWildPeopleSearch()" type="button" value="Search"/&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</pre>
</li>
<li>Click OK and save the page. Then click Edit to edit it again.</li>
<li>Find the People Search Core Results web part and edit the web part settings<br />
- Expand the Display Properties section<br />
- Under Default Results Sorting, change it from &#8216;Default&#8217; to &#8216;Name<br />
- You can also modify other settings, such as number of results per page, size of summary and URL<br />
- Click Apply/OK to save the changes to the web part settings. Save and publish the page</li>
</ol>
<p>And there you have it, staff directory search in an address book format with results listed alphabetically by surname.</p>
<p style="text-align: center;"><a href="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearch8.jpg"><img class="aligncenter size-full wp-image-2390" title="staffsearch8" src="http://www.sharepointsharon.com/wp-content/uploads/2011/03/staffsearch8.jpg" alt="Staff Search Image 8" width="560" height="232" /></a></p>
<p>There are some other tweaks that I often do, such as adding department to the search box as a dropdown list (requires very accurate data in your AD &#8211; i.e. consistent department names) and adding additional properties to the search results such as mobile phone, alternate contact (again, is dependent on the data being available in the profile). But this should get you started.</p>
<p>Final note: It is possible to use the code here and create a staff directory search in SharePoint Server 2007. The complication comes from not having a built-in capability to display results by name. You can set-it up but with a huge limitation &#8211; it sorts alphabetically by results page and you can&#8217;t have more than 50 items per page. Also, the people results in SharePoint 2007 look terrible. You can make them look more like a business-card style results layout but it takes quite a bit of tweaking using XML. If there&#8217;s demand in the comments for it, I&#8217;ll dig out my old notes&#8230;</p>
<p>This post is part of the SharePoint 2010 Handbook: <a href="http://www.sharepointsharon.com/resources/handbook-2010/features/enterprise-search/">Enterprise Search</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointsharon.com/2011/03/staffdirectory-sp2010/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>SharePoint 2010 Search Set-up</title>
		<link>http://www.sharepointsharon.com/2010/11/search-set-up/</link>
		<comments>http://www.sharepointsharon.com/2010/11/search-set-up/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 10:44:15 +0000</pubDate>
		<dc:creator>Sharon Richardson</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[install & config]]></category>
		<category><![CDATA[solutions]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[social networks]]></category>

		<guid isPermaLink="false">http://www.sharepointsharon.com/?p=2179</guid>
		<description><![CDATA[[Update] Following comments to this post, please note that this refers to using the Enterprise Wiki template when creating a site collection. The Enterprise Wiki template is the only one that will create a root site with all features available. All other templates limit the features for the site collection and the Publishing Portal template [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointsharon.com%2F2010%2F11%2Fsearch-set-up%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointsharon.com%2F2010%2F11%2Fsearch-set-up%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>[Update] Following comments to this post, please note that this refers to using the Enterprise Wiki template when creating a site collection. The Enterprise Wiki template is the only one that will create a root site with all features available. All other templates limit the features for the site collection and the Publishing Portal template is the worst of all.  Within a site collection, you can use any site templates you want for sub-sites.</p>
<p>[Update 2] You must be a Site Collection Administrator to perform these steps. Being added to the Site Owners group (Full Control permission) is not enough.  The search settings are under Site Collection Administration. If you can&#8217;t see them, you&#8217;re not a Site Collection Administrator.</p>
<p>&#8212;- Original Post &#8212;-</p>
<p>In SharePoint 2007, if you created a new site collection using the &#8216;Collaboration Portal&#8217; template, it would come with a number of sites, including the Search Center. In SharePoint 2010, this is no longer the case. There isn&#8217;t a Collaboration Portal template for starters, the nearest you&#8217;ll find is the Enterprise Wiki template which is my recommended starting point for Intranets, KM and Collaborative Sites. (Side note: Another example of poor usability on Microsoft&#8217;s part. The Enterprise Wiki template is available in both the Standard and Enterprise editions of SharePoint 2010. When you read about features with &#8216;Enterprise&#8217; in the title, don&#8217;t assume they are limited to the Enterprise Edition, in most cases they are also available in Standard.)</p>
<p>In SharePoint 2010, the clue is in the search box:</p>
<p style="text-align: center;"><a href="http://www.sharepointsharon.com/wp-content/uploads/2010/11/social11.jpg"><img class="aligncenter size-full wp-image-2183" title="Default search settings" src="http://www.sharepointsharon.com/wp-content/uploads/2010/11/social11.jpg" alt="Default search settings" width="470" height="147" /></a><a href="http://www.sharepointsharon.com/wp-content/uploads/2010/11/social1.jpg"></a></p>
<p>When you create a new site collection, the default search settings limit search to within the current site only and uses built-in search pages. If you want to search across multiple sites (a fairly normal requirement for most internal SharePoint deployments), use search scopes and configure different types of results pages, you will be wanting a dedicated search site. Here&#8217;s what to do:</p>
<h4>Create a Search site</h4>
<ol>
<li>At the root of the site collection where you want the Search site to live, click Site Actions and select &#8216;New Site&#8217;</li>
<li>Select the search site template you want to use</li>
<li>Enter a title and URL (Search works for me&#8230;) and create the site</li>
</ol>
<p>There are up to three search site templates to choose from (and you should use a search template if you don&#8217;t want to create a lot of extra work for yourself setting up search query and results pages):</p>
<ul>
<li>Basic Search &#8211; available with all versions of SharePoint</li>
<li>Enterprise Search &#8211; requires SharePoint 2010 Server: Standard or Enterprise edition (yes, another of those &#8216;Enterprise&#8217; features also available in Standard)</li>
<li>FAST Search &#8211; requires SharePoint 2010 Server Enterprise Edition (or FAST add-on/dedicated)</li>
</ul>
<p>The search query box is automatically integrated every SharePoint site within the global navigation bar (as shown in the first image above). Unless you particularly want to also have the Search site listed in navigation, go into the Navigation settings and hide it.</p>
<h4>Configure Search Settings</h4>
<p>Once you&#8217;ve got your search site, you can now configure the search settings to use it. This step needs to be repeated for each site collection that you want to point to the Search site.</p>
<ol>
<li>At the root of the site collection, go to Site Actions &#8211; Site Settings.</li>
<li>Under Site Collection Administration, click on Search Settings</li>
<li>Within Search Settings:
<ul>
<li>For the Site Collection Search Center, enter the URL to your search site in the format /search/Pages (replace the word &#8216;search&#8217; with the site URL for your search site, if different))</li>
<li>In Site Collection Search Scopes dropdown mode, select &#8216;Show search scopes&#8217;<br />
The image below shows the settings for my demo machine:<br />
<a href="http://www.sharepointsharon.com/wp-content/uploads/2010/12/sp2010-search2.jpg"><img title="SharePoint 2010 Search Settings" src="http://www.sharepointsharon.com/wp-content/uploads/2010/12/sp2010-search2.jpg" alt="SharePoint 2010 Search Settings" width="560" height="321" /><br />
</a></li>
</ul>
</li>
<li>Click OK and you&#8217;re done.</li>
</ol>
<p>Once the search settings are configured, the search box will show scopes with the default set to search across all sites instead of just the current site:</p>
<p style="text-align: center;"><a href="http://www.sharepointsharon.com/wp-content/uploads/2010/12/sp2010-search-3.jpg"><img class="aligncenter size-full wp-image-2194" title="SharePoint 2010 search settings configured" src="http://www.sharepointsharon.com/wp-content/uploads/2010/12/sp2010-search-3.jpg" alt="SharePoint 2010 search settings configured" width="480" height="141" /></a></p>
<p>Don&#8217;t forget, you&#8217;ll need to configure search settings for each site collection that you want to point to the Search site. Whilst the URL will be relative for the site collection where the search site is located, for all other site collections you will need to enter the full path (for example, on my demo the URL is http://sp2010/search/ for all other site collections)</p>
<p>Enter a search query in the new search box and you will be routed to the Search site to display results:</p>
<p style="text-align: center;"><a href="http://www.sharepointsharon.com/wp-content/uploads/2010/12/sp2010-search4.jpg"><img class="aligncenter size-full wp-image-2195" title="SharePoint 2010 Search Results" src="http://www.sharepointsharon.com/wp-content/uploads/2010/12/sp2010-search4.jpg" alt="SharePoint 2010 Search Results" width="560" height="309" /></a></p>
<p>In the image above, I&#8217;ve configured the default results page in the Search site to also include federated search results. When I enter the query &#8216;SharePoint&#8217; I can see documents and items on the Intranet (along with refiners on the left to filter results), people who have SharePoint in their profile and federated results YouTube.</p>
<p>I&#8217;ve also modified my Search site to include 2 additional tabs &#8211; Staff Directory and Internet. The Staff Directory is discussed in a follow-up post (see links at the end of this page). The Internet tab shows more federated search results from sites such as Twitter, MSDN, TechNet and Google News. I&#8217;ve even got a page for querying Facebook but haven&#8217;t managed to federate that one yet. Federated results are great for finding relevant information inside and outside your organisation using a single query.</p>
<p>This post is filed in the <a href="http://www.sharepointsharon.com/resources/handbook-2010/">SharePoint 2010 Handbook</a> under <a href="http://www.sharepointsharon.com/resources/handbook-2010/install/">Install &amp; Configuration</a> and <a href="http://www.sharepointsharon.com/resources/handbook-2010/features/enterprise-search/">Enterprise Search</a>.</p>
<h4>Related blog posts</h4>
<ul>
<li><a href="http://www.sharepointsharon.com/2010/03/sharepoint-2010-and-adobe-pdf/">Configure Adobe PDF indexing</a></li>
<li><a href="http://www.sharepointsharon.com/2010/06/sharepoint-2010-vs-with-fast-for-search/">SharePoint 2010 vs FAST for Search</a></li>
<li><a href="http://www.sharepointsharon.com/2011/03/staffdirectory-sp2010/">Staff Directory Search in SharePoint 2010</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointsharon.com/2010/11/search-set-up/feed/</wfw:commentRss>
		<slash:comments>49</slash:comments>
		</item>
		<item>
		<title>Configure PerformancePoint and Excel Services</title>
		<link>http://www.sharepointsharon.com/2010/10/configure-performancepoint-and-excel-services/</link>
		<comments>http://www.sharepointsharon.com/2010/10/configure-performancepoint-and-excel-services/#comments</comments>
		<pubDate>Sun, 31 Oct 2010 21:27:50 +0000</pubDate>
		<dc:creator>Sharon Richardson</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[install & config]]></category>
		<category><![CDATA[PerformancePoint]]></category>

		<guid isPermaLink="false">http://www.sharepointsharon.com/?p=2102</guid>
		<description><![CDATA[In SharePoint 2010, PerformancePoint runs as a service application. Having been configuring it recently for a demo, I stumbled across a couple of steps that needed to be completed to get the demo up and running. The environment is a single server virtual machine running Windows Server 2008 R2, SQL Server 2008 R2 Enterprise, SharePoint [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointsharon.com%2F2010%2F10%2Fconfigure-performancepoint-and-excel-services%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointsharon.com%2F2010%2F10%2Fconfigure-performancepoint-and-excel-services%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>In SharePoint 2010, PerformancePoint runs as a service application. Having been configuring it recently for a demo, I stumbled across a couple of steps that needed to be completed to get the demo up and running. The environment is a single server virtual machine running Windows Server 2008 R2, SQL Server 2008 R2 Enterprise, SharePoint Server 2010 Enterprise, Office 2010 (plus Visio and Project).</p>
<h3>Configure the unattended account</h3>
<p>PerformancePoint now delegates security to SharePoint and connections are made using an unattended account. To configure that account:</p>
<ol>
<li>Go to the Secure Store Service Application (Central Admin &#8211; Manage Service Applications)</li>
<li>Click &#8216;Generate New Key&#8217; in the ribbon, then click &#8216;Refresh Key&#8217; in the  same ribbon</li>
<li>Go to the PerformancePoint Service Application and then click on PerformancePoint Service Application Settings</li>
<li>The Secure Store Service Application field should be populated with the name of your Secure Store Service</li>
<li>Enter the user name that is run as the unattended service account (I created a &#8216;ppsadmin&#8217; account for this purpose)</li>
</ol>
<p>All connections between Dashboard Designer and SharePoint now use the unattended account, which means you no longer have to configure manual permissions when creating dashboards and their elements.</p>
<p>The account will be given the appropriate SQL Server permissions. However, if you are planning to use Excel Services for data sources, don&#8217;t forget to give this account permission to access the SharePoint sites where Excel workbooks will be published to. If you try to set up a new data source and point to the SharePoint site and document library but can&#8217;t see any workbooks, chances are the unattended account doesn&#8217;t have permissions to access the document library.</p>
<h3>Using Excel as a data source</h3>
<p>Whilst most proper dashboards will use cubes as their data sources (accessed via SQL Server 2008 Analysis Services), you can also create dashboards based on data stored in Excel workbooks. There are two options for Excel workbooks:</p>
<ul>
<li>Connect to the data source using Excel Services</li>
<li>Import that data from an Excel workbook</li>
</ul>
<p>The latter approach will literally copy the data from Excel into Dashboard Designer. I had a hiccup on my demo machine because I&#8217;ve installed 32-bit Office on a 64-bit OS. Dashboard Designer requires Excel to match the OS, 64-bit OS means 64-bit Office. (One possible workaround is to dump the data into a SharePoint list, which can also be used as a data source. I prefer to use Excel Services.)</p>
<p>Excel Services requires an additional step compared to previous versions of SharePoint and PerformancePoint. When you publish the Excel workbook to SharePoint, you have to specifically publish the named range (item) you plan to use as a data source:</p>
<ol>
<li>The spreadsheet must be saved using the new file format &#8211; .xslx</li>
<li>Name the range that contains the data to be used in your dashboard (select the cells and &#8216;Define Name&#8217; in the Formulas area of the ribbon</li>
<li>Save and send to SharePoint:<br />
- Click Publish Options and instead of &#8216;Entire Workbook&#8217; (the default) select &#8216;Items in the workbook&#8217;</li>
</ol>
<p style="text-align: center;"><a href="http://www.sharepointsharon.com/wp-content/uploads/2010/10/ExcelSvcs1.jpg"><img class="aligncenter size-large wp-image-2109" title="Excel Services" src="http://www.sharepointsharon.com/wp-content/uploads/2010/10/ExcelSvcs1-1024x431.jpg" alt="Publishing an Excel workbook to SharePoint" width="574" height="242" /></a></p>
<p>You&#8217;ll now be able to use the workbook as an Excel Services data source in the Dashboard Designer. Without publishing the items individually, if you try to set up a new Excel Services data source, you&#8217;ll be able to point to the SharePoint site, document library and Excel workbook but won&#8217;t see any items to select.</p>
<h4>References</h4>
<ul>
<li><a href="http://technet.microsoft.com/en-us/library/ee748643.aspx">Set up and configure PerformancePoint Service</a> &#8211; TechNet</li>
</ul>
<h4>Related blog posts</h4>
<ul>
<li><a href="http://www.sharepointsharon.com/2010/10/performancepoint-a-brief-history/">PerformancePoint &#8211; A brief history</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointsharon.com/2010/10/configure-performancepoint-and-excel-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

