<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>On3 On SharePoint.</title>
	<atom:link href="http://on3onsharepoint.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://on3onsharepoint.wordpress.com</link>
	<description>Sharing, Learning on MOSS 2007, WSS 3.0.</description>
	<lastBuildDate>Mon, 25 Aug 2008 14:56:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='on3onsharepoint.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>On3 On SharePoint.</title>
		<link>http://on3onsharepoint.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://on3onsharepoint.wordpress.com/osd.xml" title="On3 On SharePoint." />
	<atom:link rel='hub' href='http://on3onsharepoint.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How-to Insert ListItem with Object-Model from Infopath Form Services</title>
		<link>http://on3onsharepoint.wordpress.com/2008/08/25/how-to-insert-listitem-with-object-model-from-infopath-form-services/</link>
		<comments>http://on3onsharepoint.wordpress.com/2008/08/25/how-to-insert-listitem-with-object-model-from-infopath-form-services/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 14:46:11 +0000</pubDate>
		<dc:creator>on3cool</dc:creator>
				<category><![CDATA[InfoPath]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[InfoPath Form]]></category>
		<category><![CDATA[InfoPathForm Services]]></category>
		<category><![CDATA[MOSS 2007]]></category>

		<guid isPermaLink="false">http://on3onsharepoint.wordpress.com/?p=35</guid>
		<description><![CDATA[There are two methods we can use to insert a list-item out-of-the box. Those methods are using the web-service and using the object model. The consideration when to use the method is whether the form will be executed within SharePoint context or it will be executed outside SharePoint. If you are going to use within [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=on3onsharepoint.wordpress.com&amp;blog=4524463&amp;post=35&amp;subd=on3onsharepoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are two methods we can use to insert a list-item out-of-the box. Those methods are using the web-service and using the object model.<br />
The consideration when to use the method is whether the form will be executed within SharePoint context or it will be executed outside SharePoint.<br />
If you are going to use within the SharePoint context, you can use Object-Model or Web-service otherwise.</p>
<p>Today, I&#8217;ll show on how to insert a list-item to a list in SharePoint using the object model.</p>
<p>STEP 1: CREATE A BLANK FORM IN INFOPATH FORM.</p>
<p>STEP 2: CREATE A CUSTOM LIST WITH THE FOLLOWING FIELDS. (<strong><em>Employee Details</em></strong>)</p>
<div>
<table style="border-collapse:collapse;" border="0">
<col span="1"></col>
<col span="1"></col>
<col span="1"></col>
<col span="1"></col>
<col span="1"></col>
<tbody>
<tr>
<td style="background:black;padding-left:7px;padding-right:7px;border-top:solid white 1pt;border-left:solid white 1pt;border-bottom:solid white 3pt;border-right:solid white 1pt;"><span style="color:#ffffff;"><strong>FIELD&#8217;S NAME</strong></span> </td>
<td style="background:black;padding-left:7px;padding-right:7px;border-top:solid white 1pt;border-left:none;border-bottom:solid white 3pt;border-right:solid white 1pt;"><span style="color:#ffffff;"><strong>TYPE</strong></span> </td>
<td style="background:#17365d;padding-left:7px;padding-right:7px;border-top:solid white 1pt;border-left:none;border-bottom:solid white 3pt;border-right:solid white 1pt;"> </td>
<td style="background:black;padding-left:7px;padding-right:7px;border-top:solid white 1pt;border-left:none;border-bottom:solid white 3pt;border-right:solid white 1pt;"><span style="color:#ffffff;"><strong>InfoPath Field&#8217;s name</strong></span> </td>
<td style="background:black;padding-left:7px;padding-right:7px;border-top:solid white 1pt;border-left:none;border-bottom:solid white 3pt;border-right:solid white 1pt;"><span style="color:#ffffff;"><strong>Data Source&#8217;s type</strong></span> </td>
</tr>
<tr>
<td style="background:black;padding-left:7px;padding-right:7px;border-top:none;border-left:solid white 1pt;border-bottom:solid white 0.75pt;border-right:solid white 3pt;"><span style="color:#ffffff;"><strong>First_Name</strong></span> </td>
<td style="background:gray;padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid white 1pt;border-right:solid white 1pt;">Single Text </td>
<td style="background:#17365d;padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid white 1pt;border-right:solid white 1pt;"> </td>
<td style="background:gray;padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid white 1pt;border-right:solid white 1pt;">Txt_FirstName </td>
<td style="background:gray;padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid white 1pt;border-right:solid white 1pt;">Textbox </td>
</tr>
<tr>
<td style="background:black;padding-left:7px;padding-right:7px;border-top:none;border-left:solid white 1pt;border-bottom:solid white 1pt;border-right:solid white 3pt;"><span style="color:#ffffff;"><strong>Last_Name</strong></span> </td>
<td style="background:silver;padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid white 0.75pt;border-right:solid white 0.75pt;">Single Text </td>
<td style="background:#17365d;padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid white 0.75pt;border-right:solid white 0.75pt;"> </td>
<td style="background:silver;padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid white 0.75pt;border-right:solid white 0.75pt;">Txt_LastName </td>
<td style="background:silver;padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid white 0.75pt;border-right:solid white 1pt;">Textbox </td>
</tr>
<tr>
<td style="background:black;padding-left:7px;padding-right:7px;border-top:none;border-left:solid white 1pt;border-bottom:solid white 0.75pt;border-right:solid white 3pt;"><span style="color:#ffffff;"><strong>Mobile_Number</strong></span> </td>
<td style="background:gray;padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid white 1pt;border-right:solid white 1pt;">Single Text </td>
<td style="background:#17365d;padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid white 1pt;border-right:solid white 1pt;"> </td>
<td style="background:gray;padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid white 1pt;border-right:solid white 1pt;">Txt_MobileNum </td>
<td style="background:gray;padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid white 1pt;border-right:solid white 1pt;">Textbox </td>
</tr>
<tr>
<td style="background:#632423;padding-left:7px;padding-right:7px;border-top:none;border-left:solid white 1pt;border-bottom:solid white 1pt;border-right:solid white 3pt;" colspan="2"><span style="color:#ffffff;"><strong>List Name: Employee Details</strong></span></td>
<td style="background:#17365d;padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid white 1pt;border-right:solid white 0.75pt;"> </td>
<td style="background:#632423;padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid white 1pt;border-right:solid white 1pt;" colspan="2">InfoPath form&#8217;s detail </td>
</tr>
</tbody>
</table>
</div>
<p> </p>
<p>STEP 3: CREATE A DATA CONNECTION FROM INFOPATH.</p>
<ol>
<li>Create an InfoPath 2007&#8242;s form as the following picture.</li>
</ol>
<div style="margin-left:36pt;">
<table style="border-collapse:collapse;" border="0">
<col span="1"></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;"><img src="http://on3onsharepoint.files.wordpress.com/2008/08/082508-1440-howtoinsert1.png?w=413&#038;h=121" alt="" width="413" height="121" /></td>
</tr>
</tbody>
</table>
</div>
<p> </p>
<ol>
<li>Click <strong>Tools – Programming – Microsoft Visual Studio Tools for Applications</strong></li>
</ol>
<div style="margin-left:36pt;">
<table style="border-collapse:collapse;" border="0">
<col span="1"></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;"><img src="http://on3onsharepoint.files.wordpress.com/2008/08/082508-1440-howtoinsert2.png?w=418&#038;h=335" alt="" width="418" height="335" /></td>
</tr>
</tbody>
</table>
</div>
<p> </p>
<ol>
<li>
<div>We need to reference <strong>Microsoft.SharePoint.dll </strong>to our VSTA. It can be found under:<br />
<strong><em>C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI</em></strong></div>
<p> </li>
</ol>
<div style="margin-left:36pt;">
<table style="border-collapse:collapse;" border="0">
<col span="1"></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;"><img src="http://on3onsharepoint.files.wordpress.com/2008/08/082508-1440-howtoinsert3.png?w=75&#038;h=65" alt="" width="75" height="65" /></td>
</tr>
</tbody>
</table>
</div>
<p> </p>
<ol>
<li>
<div>Click <strong>Tools – Form Options – Security and Trust.</strong></div>
<p><strong>Tick off &#8220;automatically determined security level (recommended)&#8221; and change it to Full Trust.<br />
</strong></p>
<p><strong>Tick on &#8220;Sign this form template&#8221; – Create Certificate if you haven&#8217;t got a certificate yet.</strong></li>
</ol>
<div style="margin-left:36pt;">
<table style="border-collapse:collapse;" border="0">
<col span="1"></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;"><img src="http://on3onsharepoint.files.wordpress.com/2008/08/082508-1440-howtoinsert4.png?w=455&#038;h=401" alt="" width="455" height="401" /></td>
</tr>
</tbody>
</table>
</div>
<p style="margin-left:36pt;"> </p>
<ol>
<li>Now let&#8217;s start the fun part. <strong>Right-Click – Properties</strong> on the submit button. Add the following function underneath the CTRL<strong>X</strong>_<strong>X_Clicked</strong>&#8216;s event.</li>
</ol>
<div style="margin-left:36pt;">
<table style="border-collapse:collapse;background:#ddd9c3;" border="0">
<col span="1"></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;">private void InsertListItem(string FirstName, string LastName, string MobNum){</p>
<p style="margin-left:36pt;">SPSite Myportal = new SPSite(&#8220;http://your_servername&#8221;);</p>
<p style="margin-left:36pt;">SPWeb myWeb = Myportal.OpenWeb();</p>
<p style="margin-left:36pt;">SPListCollection ListCollection = myWeb.Lists;</p>
<p style="margin-left:36pt;">SPList EmployeeDetails = ListCollection["Employee Details"];</p>
<p style="margin-left:36pt;"> </p>
<p style="margin-left:36pt;">SPListItem newItem = EmployeeDetails.Items.Add();</p>
<p style="margin-left:36pt;">newItem["First_Name"] = FirstName;</p>
<p style="margin-left:36pt;">newItem["Last_Name"] = LastName;</p>
<p style="margin-left:36pt;">newItem["Mobile_Number"] = MobNum;</p>
<p style="margin-left:36pt;">newItem.Update();</p>
<p style="margin-left:36pt;"> </p>
<p style="margin-left:36pt;">//Disposing unused objects.</p>
<p style="margin-left:36pt;">Myportal.Dispose();</p>
<p style="margin-left:36pt;">myWeb.Dispose();</p>
<p>} </td>
</tr>
</tbody>
</table>
</div>
<p style="margin-left:36pt;"> </p>
<ol>
<li>Then add the following code inside the clicked&#8217;s event</li>
</ol>
<div style="margin-left:36pt;">
<table style="border-collapse:collapse;" border="0">
<col span="1"></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;">XPathNavigator main = MainDataSource.CreateNavigator();string _firstname = main.SelectSingleNode(&#8220;/my:myFields/my:txt_FirstName&#8221;, this.NamespaceManager).Value;</p>
<p style="margin-left:36pt;"> </p>
<p>string _lastname = main.SelectSingleNode(&#8220;/my:myFields/my:txt_LastName&#8221;, this.NamespaceManager).Value;</p>
<p style="margin-left:36pt;"> </p>
<p>string _mobNum = main.SelectSingleNode(&#8220;/my:myFields/my:txt_MobPhone&#8221;, this.NamespaceManager).Value;</p>
<p style="margin-left:36pt;"> </p>
<p>InsertListItem(_firstname, _lastname, _mobNum); </td>
</tr>
</tbody>
</table>
</div>
<p style="margin-left:36pt;"> </p>
<ol>
<li>That&#8217;s it.</li>
</ol>
<p> </p>
<p>Try to run the code by pressing the green arrow button. When the blank form is displayed, fill in the form and click Submit button.<br />
Since we haven&#8217;t implemented any successful / unsuccessful method, then it will not show anything. To find out if you have successfully submitted<br />
the item, please open up the list. You should be seeing the entry. For my scenario it shows:</p>
<div>
<table style="border-collapse:collapse;" border="0">
<col span="1"></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;"><img src="http://on3onsharepoint.files.wordpress.com/2008/08/082508-1440-howtoinsert5.png?w=521&#038;h=110" alt="" width="521" height="110" /></td>
</tr>
</tbody>
</table>
</div>
<p> </p>
<p>Tomorrow I will show you on how to upload the infopath form to the document library as the InfoPath Form services.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/on3onsharepoint.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/on3onsharepoint.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/on3onsharepoint.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/on3onsharepoint.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/on3onsharepoint.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/on3onsharepoint.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/on3onsharepoint.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/on3onsharepoint.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/on3onsharepoint.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/on3onsharepoint.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/on3onsharepoint.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/on3onsharepoint.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/on3onsharepoint.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/on3onsharepoint.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/on3onsharepoint.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/on3onsharepoint.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=on3onsharepoint.wordpress.com&amp;blog=4524463&amp;post=35&amp;subd=on3onsharepoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://on3onsharepoint.wordpress.com/2008/08/25/how-to-insert-listitem-with-object-model-from-infopath-form-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4161380575f64f74de6128a168a671cb?s=96&#38;d=identicon" medium="image">
			<media:title type="html">on3cool</media:title>
		</media:content>

		<media:content url="http://on3onsharepoint.files.wordpress.com/2008/08/082508-1440-howtoinsert1.png" medium="image" />

		<media:content url="http://on3onsharepoint.files.wordpress.com/2008/08/082508-1440-howtoinsert2.png" medium="image" />

		<media:content url="http://on3onsharepoint.files.wordpress.com/2008/08/082508-1440-howtoinsert3.png" medium="image" />

		<media:content url="http://on3onsharepoint.files.wordpress.com/2008/08/082508-1440-howtoinsert4.png" medium="image" />

		<media:content url="http://on3onsharepoint.files.wordpress.com/2008/08/082508-1440-howtoinsert5.png" medium="image" />
	</item>
		<item>
		<title>Create a friendly URL when creating a site Collection</title>
		<link>http://on3onsharepoint.wordpress.com/2008/08/18/create-a-friendly-url-when-creating-a-site-collection/</link>
		<comments>http://on3onsharepoint.wordpress.com/2008/08/18/create-a-friendly-url-when-creating-a-site-collection/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 12:53:29 +0000</pubDate>
		<dc:creator>on3cool</dc:creator>
				<category><![CDATA[Setup]]></category>
		<category><![CDATA[AAM]]></category>
		<category><![CDATA[Alternate Access Mapping]]></category>
		<category><![CDATA[Friendly URL]]></category>
		<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Site Collection]]></category>

		<guid isPermaLink="false">http://on3onsharepoint.wordpress.com/2008/08/18/create-a-friendly-url-when-creating-a-site-collection/</guid>
		<description><![CDATA[Today I&#8217;ve got a task from my client to &#8220;simplify&#8221; a long, ugly, hard to remember URL to a user friendly URL. His URL was: http://big_company/sites/headoffice/it/projects/oracle/phase1 , and now it has become similar like: http://phase-1.it.projects. If we would like to have an alternate access mapping per web application, it is quite straight forward, but how [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=on3onsharepoint.wordpress.com&amp;blog=4524463&amp;post=23&amp;subd=on3onsharepoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<table style="border-collapse:collapse;background:#eeece1;" border="0">
<col></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;">
<p style="text-align:justify;">
<p style="text-align:justify;">Today I&#8217;ve got a task from my client to &#8220;simplify&#8221; a long, ugly, hard to remember URL to a user friendly URL.</p>
<p>His URL was: <a href="http://big_company/sites/headoffice/it/projects/oracle/phase1">http://big_company/sites/headoffice/it/projects/oracle/phase1</a> , and now it has become similar like: <a href="http://phase-1.it.projects">http://phase-1.it.projects</a>.</p>
<p>If we would like to have an alternate access mapping per web application, it is quite straight forward, but how can we get an alternate access mapping on site collection&#8217;s level?</p>
<p>That is easy. Just follow these 3 simple steps.</p>
<p>For example, you would like to have a friendly URL from</p>
<p><a href="http://server_name/sites/projects/accessrequest">http://server_name/sites/projects/accessrequest</a> into <a href="http://accessrequest.projects">http://accessrequest.projects</a></p>
<p><strong>STEP 1: CREATE THE SITE COLLECTION<br />
</strong></p>
<div>
<table style="border-collapse:collapse;background:#ddd9c3;" border="0">
<col></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;">stsadm -o createsite -url http://accessrequest.projects :80</p>
<p>-ownerlogin on3OnSharePoint\administrator</p>
<p>-owneremail administrator@on3onsharepoint.com</p>
<p>-hhurl http://on3onsharepoint:80</p>
<p>-sitetemplate STS#1</p>
<p>-title &#8220;Access Request &#8220;</td>
</tr>
</tbody>
</table>
</div>
<p style="text-align:justify;">
<p style="text-align:justify;">You don&#8217;t need to specify the port number if you are using port 80, I put the port number just in case you guys get confuse whether if we can create on another web application or not.</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong>STEP 2: IMPORT YOUR OLD CONTENTS (OPTIONAL)<br />
</strong></p>
<p style="text-align:justify;">If you are moving from your old long URL into this new site collection, then you should move all your contents to this new home. You can use SPContentDeploymentWizard from <a href="http://www.codeplex">www.codeplex</a> to help you migrating all your contents.</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong>STEP 3: CREATE A DNS ENTRY<br />
</strong></p>
<p style="text-align:justify;">You must create a host (A) record&#8217;s DNS entry in your DNS server which should be pointing at <a href="http://accessrequest.projects">http://accessrequest.projects</a> and your sharepoint&#8217;s server.</p>
<p style="text-align:justify;">
<p style="text-align:justify;">That&#8217;s it. Easy nice simple. Hopefully helps you guys.</p>
</td>
</tr>
</tbody>
</table>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/on3onsharepoint.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/on3onsharepoint.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/on3onsharepoint.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/on3onsharepoint.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/on3onsharepoint.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/on3onsharepoint.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/on3onsharepoint.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/on3onsharepoint.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/on3onsharepoint.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/on3onsharepoint.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/on3onsharepoint.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/on3onsharepoint.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/on3onsharepoint.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/on3onsharepoint.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/on3onsharepoint.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/on3onsharepoint.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=on3onsharepoint.wordpress.com&amp;blog=4524463&amp;post=23&amp;subd=on3onsharepoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://on3onsharepoint.wordpress.com/2008/08/18/create-a-friendly-url-when-creating-a-site-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4161380575f64f74de6128a168a671cb?s=96&#38;d=identicon" medium="image">
			<media:title type="html">on3cool</media:title>
		</media:content>
	</item>
		<item>
		<title>Customize People Search Result Page</title>
		<link>http://on3onsharepoint.wordpress.com/2008/08/16/customize-people-search-result-page/</link>
		<comments>http://on3onsharepoint.wordpress.com/2008/08/16/customize-people-search-result-page/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 08:38:33 +0000</pubDate>
		<dc:creator>on3cool</dc:creator>
				<category><![CDATA[Search]]></category>
		<category><![CDATA[People Search]]></category>
		<category><![CDATA[Result]]></category>
		<category><![CDATA[SharePoint Designer]]></category>

		<guid isPermaLink="false">http://on3onsharepoint.wordpress.com/?p=7</guid>
		<description><![CDATA[Have you ever wondered on how to customize The People Search&#8217;s result? I spent almost a day to find out and get this working as expected, and now i put this on my blog, hopefully other people can use this and not spend as much time as I did Let&#8217;s start &#8230; What you need [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=on3onsharepoint.wordpress.com&amp;blog=4524463&amp;post=7&amp;subd=on3onsharepoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:12pt;font-family:Times New Roman;"><br />
Have you ever wondered on how to customize The People Search&#8217;s result?<br />
</span></p>
<p><span style="font-size:12pt;font-family:Times New Roman;">I spent almost a day to find out and get this working as expected, and now i put this on my blog, hopefully other people can use this and not spend as much time as I did <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Let&#8217;s start &#8230;</span></p>
<p>What you need to accomplish this walkthrough are:<br />
a. Microsoft SharePoint Designer 2007.<br />
b. MOSS 2007 with People Search enabled.<br />
c. Administrator access on the site collection.<br />
d. For this walk-through, I am using Active Directory Properties that i have imported from the<br />
Central Administration, but you can use other properties which are available in your Farm.<br />
I will customize the search result that will display</p>
<ul>
<li><span style="font-size:12pt;font-family:Times New Roman;">Preferred Name (Default)<br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">Job Title (Default)<br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">Phone Number, Mobile Number, Fax Number (add them manually)<br />
</span></li>
</ul>
<p><span style="font-size:12pt;font-family:Times New Roman;"><strong>Step By Steps:</strong><br />
</span></p>
<ul>
<li><span style="font-size:12pt;font-family:Times New Roman;">Open up your Search Centre site.<br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">Search one of your friend or maybe search yourself.<br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">When the search result is displayed, Click Settings &#8211; Edit Page.<br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">In <strong>People Search Core Result</strong>, Click <strong>Edit</strong> &#8211; <strong>Modify Shared WebPart</strong><br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">In<strong> Results Query Options</strong> there is a textbox named&#8221;<strong>Selected Column</strong>&#8220;, Click on that textbox, the it will show its elipsis [ ... ] next to it.<br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">Add <strong>&#8220;&lt;Column Name=&#8221;[Metadata mapping]&#8221; /&gt;</strong> before the &#8220;<strong>&lt;/Columns&gt;</strong>&#8220;<br />
For this example, my Selected columns are:<br />
</span></li>
</ul>
<div style="margin-left:36pt;">
<table style="border-collapse:collapse;background:#ddd9c3;" border="0">
<col></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;"><span style="font-size:12pt;font-family:Times New Roman;">&lt;root xmlns:xsi=&#8221;http://www.w3.org/2001/XMLSchema-instance&#8221;&gt;<br />
</span></p>
<p style="margin-left:29pt;"><span style="font-size:12pt;font-family:Times New Roman;">&lt;Columns&gt;<br />
&lt;Column Name=&#8221;AccountName&#8221;/&gt;<br />
&lt;Column Name=&#8221;UserProfile_GUID&#8221;/&gt;<br />
&lt;Column Name=&#8221;PreferredName&#8221;/&gt;<br />
&lt;Column Name=&#8221;JobTitle&#8221;/&gt;<br />
&lt;Column Name=&#8221;Department&#8221;/&gt;<br />
&lt;Column Name=&#8221;<strong>WorkPhone</strong>&#8220;/&gt;<br />
&lt;Column Name=&#8221;PictureURL&#8221;/&gt;<br />
&lt;Column Name=&#8221;WorkEmail&#8221;/&gt;<br />
&lt;Column Name=&#8221;<strong>MobilePhone</strong>&#8221; /&gt;<br />
&lt;Column Name=&#8221;<strong>Fax</strong>&#8221; /&gt;<br />
&lt;Column Name=&#8221;OfficeStreetAddress&#8221; /&gt;<br />
&lt;Column Name=&#8221;OfficeSubUrbLocation&#8221; /&gt;<br />
&lt;Column Name=&#8221;OfficePostalCode&#8221;/&gt;<br />
&lt;Column Name=&#8221;OfficeCountry&#8221;/&gt;<br />
</span></p>
<p style="margin-left:29pt;"><span style="font-size:12pt;font-family:Times New Roman;">&lt;/Columns&gt;<br />
</span></p>
<p style="margin-left:29pt;"><span style="font-size:12pt;font-family:Times New Roman;">&lt;/root&gt;</span></p>
</td>
</tr>
</tbody>
</table>
</div>
<ul>
<li><span style="font-size:12pt;font-family:Times New Roman;">If you scroll down a little bit, you&#8217;ll see &#8220;<strong>Data View Properties</strong>&#8220;, Click the &#8220;<strong>XSL Editor</strong>&#8220;.<br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">Change the code with:<br />
</span></li>
</ul>
<div style="margin-left:36pt;">
<table style="border-collapse:collapse;background:#ddd9c3;" border="0">
<col></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;"><span style="font-size:10pt;background-color:#e6e6e6;font-family:Courier New;">&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;</span><span style="font-size:12pt;font-family:Times New Roman;"><br />
</span></p>
<p><span style="font-size:10pt;background-color:#e6e6e6;font-family:Courier New;">&lt;xsl:stylesheet version=&#8221;1.0&#8243; xmlns:xsl=&#8221;http://www.w3.org/1999/XSL/Transform&#8221;&gt;</span><span style="font-size:12pt;font-family:Times New Roman;"><br />
</span></p>
<p><span style="font-size:10pt;background-color:#e6e6e6;font-family:Courier New;">&lt;xsl:output method=&#8221;xml&#8221; version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243; indent=&#8221;yes&#8221;/&gt;</span><span style="font-size:12pt;font-family:Times New Roman;"><br />
</span></p>
<p><span style="font-size:10pt;background-color:#e6e6e6;font-family:Courier New;">&lt;xsl:template match=&#8221;/&#8221;&gt;</span><span style="font-size:12pt;font-family:Times New Roman;"><br />
</span></p>
<p><span style="font-size:10pt;background-color:#e6e6e6;font-family:Courier New;">&lt;xmp&gt;&lt;xsl:copy-of select=&#8221;*&#8221;/&gt;&lt;/xmp&gt;</span><span style="font-size:12pt;font-family:Times New Roman;"><br />
</span></p>
<p><span style="font-size:10pt;background-color:#e6e6e6;font-family:Courier New;">&lt;/xsl:template&gt;</span><span style="font-size:12pt;font-family:Times New Roman;"><br />
</span></p>
<p><span style="font-size:10pt;background-color:#e6e6e6;font-family:Courier New;">&lt;/xsl:stylesheet&gt;</span></td>
</tr>
</tbody>
</table>
</div>
<ul>
<li><span style="font-size:12pt;font-family:Times New Roman;">Click OK.<br />
</span></li>
</ul>
<div style="margin-left:36pt;">
<table style="border-collapse:collapse;" border="0">
<col></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;"><img src="http://on3onsharepoint.files.wordpress.com/2008/08/081608-0833-customizepe1.png?w=368&#038;h=69" alt="" width="368" height="69" /></td>
</tr>
</tbody>
</table>
</div>
<ul>
<li><span style="font-size:12pt;font-family:Times New Roman;">Don&#8217;t <strong>PANIC<br />
</strong></span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">Click – <strong>Edit</strong> – <strong>Modify Shared WebPart, </strong>then you will see similar like the picture below. Copy All of them and save them as<strong><br />
<em>SearchCore.xml </em></strong>locally in your hard-drive.<strong><br />
</strong></span></li>
</ul>
<div style="margin-left:36pt;">
<table style="border-collapse:collapse;" border="0">
<col></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;"><img src="http://on3onsharepoint.files.wordpress.com/2008/08/081608-0833-customizepe2.png?w=364&#038;h=138" alt="" width="364" height="138" /></td>
</tr>
</tbody>
</table>
</div>
<ul>
<li><span style="font-size:12pt;font-family:Times New Roman;">Open up your site (any site) with Microsoft SharePoint Designer 2007.<br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">Click <strong>File</strong> – <strong>New</strong>. Choose <strong>ASPX.</strong><br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">Click <strong>Task Panes</strong> – <strong>Data Source Library.</strong><br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">Click &#8220;<strong>Add an XML File</strong>&#8221; under&#8221; <strong>XML Files</strong>&#8220;, Select the <strong>SearchCore.Xml</strong> that we created in Step 11.<br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">In the <em>Context-Menu</em> associated with <strong>SearchCore.xml</strong>, choose &#8220;<strong>Show Data</strong>&#8220;<br />
</span></li>
</ul>
<div style="margin-left:36pt;">
<table style="border-collapse:collapse;" border="0">
<col></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;"><img src="http://on3onsharepoint.files.wordpress.com/2008/08/081608-0833-customizepe3.png?w=155&#038;h=290" alt="" width="155" height="290" /></td>
</tr>
</tbody>
</table>
</div>
<ul>
<li><span style="font-size:12pt;font-family:Times New Roman;"><strong><em>Choose all fields</em></strong> you would like to show in the search&#8217;s result – click <strong>Insert Selected Field as</strong> … &#8211; Choose &#8220;<strong>Single item view</strong>&#8220;<br />
</span></li>
</ul>
<div style="margin-left:36pt;">
<table style="border-collapse:collapse;" border="0">
<col></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;"><img src="http://on3onsharepoint.files.wordpress.com/2008/08/081608-0833-customizepe4.png?w=439&#038;h=185" alt="" width="439" height="185" /></td>
</tr>
</tbody>
</table>
</div>
<ul>
<li><span style="font-size:12pt;font-family:Times New Roman;">Now you can use your HTML &amp; CSS Skills to edit the look and feel.<br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">Once you have done that, Click &#8220;<strong>Code</strong>&#8221; at the bottom.<br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">Copy Paste the code from:<br />
</span></li>
</ul>
<div style="margin-left:36pt;">
<table style="border-collapse:collapse;" border="0">
<col></col>
<tbody>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:solid black 0.5pt;border-left:solid black 0.5pt;border-bottom:solid black 0.5pt;border-right:solid black 0.5pt;"><span style="font-size:12pt;font-family:Times New Roman;">&lt;xsl:stylesheet version=&#8221;1.0&#8243; exclude-result-prefixes=&#8221;xsl msxsl ddwrt&#8221; ….  xmlns:ddwrt2=&#8221;urn:frontpage:internal&#8221;&gt;</span></td>
</tr>
</tbody>
</table>
</div>
<p style="margin-left:36pt;"><span style="font-size:12pt;font-family:Times New Roman;">Until you find the end of the tag. [<strong>&lt;/xsl:Stylesheet&gt;]</strong><br />
</span></p>
<ul>
<li><span style="font-size:12pt;font-family:Times New Roman;">Now go-back to 7, Find the &#8220;<strong>XSL Editor</strong>&#8221; and change the code with the one you have just copied.<br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">Click OK.<br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">You will see one error similar to step 9, re-do the steps until step 11.<br />
</span></li>
<li><span style="font-size:12pt;font-family:Times New Roman;">Publish the page.<br />
</span></li>
</ul>
<p><span style="font-size:12pt;font-family:Times New Roman;">You should see your customized result&#8217;s page.<br />
</span></p>
<p><span style="font-size:12pt;font-family:Times New Roman;">Hopefully it will help you.<br />
</span></p>
<p><span style="font-size:12pt;font-family:Times New Roman;">Feel free to comment on my blog.<br />
</span></p>
<p><span style="font-size:12pt;font-family:Times New Roman;">Thanks.</span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/on3onsharepoint.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/on3onsharepoint.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/on3onsharepoint.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/on3onsharepoint.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/on3onsharepoint.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/on3onsharepoint.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/on3onsharepoint.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/on3onsharepoint.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/on3onsharepoint.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/on3onsharepoint.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/on3onsharepoint.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/on3onsharepoint.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/on3onsharepoint.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/on3onsharepoint.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/on3onsharepoint.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/on3onsharepoint.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=on3onsharepoint.wordpress.com&amp;blog=4524463&amp;post=7&amp;subd=on3onsharepoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://on3onsharepoint.wordpress.com/2008/08/16/customize-people-search-result-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4161380575f64f74de6128a168a671cb?s=96&#38;d=identicon" medium="image">
			<media:title type="html">on3cool</media:title>
		</media:content>

		<media:content url="http://on3onsharepoint.files.wordpress.com/2008/08/081608-0833-customizepe1.png" medium="image" />

		<media:content url="http://on3onsharepoint.files.wordpress.com/2008/08/081608-0833-customizepe2.png" medium="image" />

		<media:content url="http://on3onsharepoint.files.wordpress.com/2008/08/081608-0833-customizepe3.png" medium="image" />

		<media:content url="http://on3onsharepoint.files.wordpress.com/2008/08/081608-0833-customizepe4.png" medium="image" />
	</item>
	</channel>
</rss>
