<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Andy's Blog</title>
	
	<link>http://blog.andy24db.com</link>
	<description>A blog mostly about Sharepoint</description>
	<pubDate>Fri, 23 Oct 2009 09:28:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/andy24db/dHjP" /><feedburner:info uri="andy24db/dhjp" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fandy24db%2FdHjP" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fandy24db%2FdHjP" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fandy24db%2FdHjP" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/andy24db/dHjP" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fandy24db%2FdHjP" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fandy24db%2FdHjP" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fandy24db%2FdHjP" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><item>
		<title>Installing SharePoint 2010 on Windows 7</title>
		<link>http://feedproxy.google.com/~r/andy24db/dHjP/~3/vziSsIBr40o/</link>
		<comments>http://blog.andy24db.com/2009/10/installing-sharepoint-2010-on-windows-7/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 09:28:13 +0000</pubDate>
		<dc:creator>Andy Diericks</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[SharePoint 2010]]></category>

		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://blog.andy24db.com/2009/10/installing-sharepoint-2010-on-windows-7/</guid>
		<description><![CDATA[A really great article on MSDN in order to install SharePoint 2010 on Windows 7, and really explicit.
http://msdn.microsoft.com/en-us/library/ee554869%28office.14%29.aspx
]]></description>
			<content:encoded><![CDATA[<p>A really great article on MSDN in order to install SharePoint 2010 on Windows 7, and really explicit.</p>
<p><a title="http://msdn.microsoft.com/en-us/library/ee554869%28office.14%29.aspx" href="http://msdn.microsoft.com/en-us/library/ee554869%28office.14%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ee554869%28office.14%29.aspx</a></p>
<img src="http://feeds.feedburner.com/~r/andy24db/dHjP/~4/vziSsIBr40o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.andy24db.com/2009/10/installing-sharepoint-2010-on-windows-7/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.andy24db.com/2009/10/installing-sharepoint-2010-on-windows-7/</feedburner:origLink></item>
		<item>
		<title>How to hide a OCS presence icon in a XSL</title>
		<link>http://feedproxy.google.com/~r/andy24db/dHjP/~3/ItMK_DSSTw0/</link>
		<comments>http://blog.andy24db.com/2009/09/how-to-hide-a-ocs-presence-icon-in-a-xsl/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 14:47:00 +0000</pubDate>
		<dc:creator>Andy Diericks</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[Tips and Tricks]]></category>

		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://blog.andy24db.com/2009/09/how-to-hide-a-ocs-presence-icon-in-a-xsl/</guid>
		<description><![CDATA[Again a little tip concerning SharePoint and XSL.
Add the following snippet in the xsl file, for example one of your custom style in the itemstyle.xsl file.
&#60;span class=&#34;presence-status-icon&#34;&#62;    &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; By: &#60;a href=&#34;http://[MySharePoint]/sites/intranetbelgium/_layouts/userdisp.aspx?ID={$AuthorID}&#34;&#62;     &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;xsl:value-of select=&#34;concat($AuthorName,&#8217; &#8216;)&#34; /&#62;     &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/a&#62;     &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;img [...]]]></description>
			<content:encoded><![CDATA[<p>Again a little tip concerning SharePoint and XSL.</p>
<p>Add the following snippet in the xsl file, for example one of your custom style in the itemstyle.xsl file.</p>
<p>&lt;span class=&quot;presence-status-icon&quot;&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; By: &lt;a href=&quot;<a href="http://[MySharePoint]/sites/intranetbelgium/_layouts/userdisp.aspx?ID={">http://[MySharePoint]/sites/intranetbelgium/_layouts/userdisp.aspx?ID={</a>$AuthorID}&quot;&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xsl:value-of select=&quot;concat($AuthorName,&#8217; &#8216;)&quot; /&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/a&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;img src=&quot;/_layouts/images/blank.gif&quot; onload=&quot;IMNRC(&#8217;{$AuthorEmail}&#8217;)&quot; alt=&quot;&quot; id=&quot;{concat(&#8217;MWP_pawn_&#8217;,$ClientId,&#8217;_',@ID,&#8217;type=sip&#8217;)}&quot; /&gt;&#160; <br />&#160; &lt;/span&gt;</p>
<p>Tips: you can add <strong>&quot;ShowOfflinePawn=1” </strong>before the add property in the img tag, this will show the offline picture of OCS if the “<strong>AuthorName</strong>” is offline. I personnally prefer to remove it, I found that cleaner.</p>
<img src="http://feeds.feedburner.com/~r/andy24db/dHjP/~4/ItMK_DSSTw0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.andy24db.com/2009/09/how-to-hide-a-ocs-presence-icon-in-a-xsl/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.andy24db.com/2009/09/how-to-hide-a-ocs-presence-icon-in-a-xsl/</feedburner:origLink></item>
		<item>
		<title>Add a header and/or footer to a style using itemstyle.xsl</title>
		<link>http://feedproxy.google.com/~r/andy24db/dHjP/~3/F0XDYKD2XXw/</link>
		<comments>http://blog.andy24db.com/2009/09/add-a-header-andor-footer-to-a-style-using-itemstylexsl/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 13:30:00 +0000</pubDate>
		<dc:creator>Andy Diericks</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[Tips and Tricks]]></category>

		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://blog.andy24db.com/2009/09/add-a-header-andor-footer-to-a-style-using-itemstylexsl/</guid>
		<description><![CDATA[&#160;
The problem: Microsoft provide a way to create custom headers using the file Header.xsl but doesn’t provide the same kind of file concerning the footer. So how to create a style containing a footer and a header? 
Inside your new style in the file itemstyle.xsl add the following snippet:
For a header add a test to [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>The problem: Microsoft provide a way to create custom headers using the file <strong>Header.xsl</strong> but doesn’t provide the same kind of file concerning the footer. So how to create a style containing a footer and a header? </p>
<p>Inside your new style in the file itemstyle.xsl add the following snippet:</p>
<p>For a header add a test to check if there is a preceding sibling:</p>
<p><strong>&lt;xsl:if test=&quot;count(preceding-sibling::*)=0&quot;&gt;      <br />This is the header !       <br />&lt;/xsl:if&gt;</strong></p>
<p>For a footer add a test to check if there is a following sibling:</p>
<p><strong>&lt;xsl:if test=&quot;count(following-sibling::*)=0&quot;&gt;      <br />&#160;&#160;&#160;&#160; This is the footer !       <br />&#160;&#160; &lt;/xsl:if&gt;</strong></p>
<p>That’s pretty easy to do and I hope it can help.</p>
<img src="http://feeds.feedburner.com/~r/andy24db/dHjP/~4/F0XDYKD2XXw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.andy24db.com/2009/09/add-a-header-andor-footer-to-a-style-using-itemstylexsl/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.andy24db.com/2009/09/add-a-header-andor-footer-to-a-style-using-itemstylexsl/</feedburner:origLink></item>
		<item>
		<title>Create a custom action</title>
		<link>http://feedproxy.google.com/~r/andy24db/dHjP/~3/lBNhW2rh64Q/</link>
		<comments>http://blog.andy24db.com/2009/04/create-a-custom-actions/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 17:44:17 +0000</pubDate>
		<dc:creator>Andy Diericks</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[Libraries and Lists]]></category>

		<guid isPermaLink="false">http://blog.andy24db.com/2009/04/create-a-custom-actions/</guid>
		<description><![CDATA[Hi, today I will fully explain how to create a “custom action”. For it I will use “Visual studio” and WSPBuilder, you can find it on codeplex.
Our action will appear on the display page of all the items of a custom list. By clicking on it, the user will be redirected to google. A custom [...]]]></description>
			<content:encoded><![CDATA[<p>Hi, today I will fully explain how to create a “custom action”. For it I will use “Visual studio” and WSPBuilder, you can find it on codeplex.</p>
<p>Our action will appear on the display page of all the items of a custom list. By clicking on it, the user will be redirected to google. A custom action has to be included in a feature, meaning, we will create a standard feature and add code in it to define that we want to create a custom action.</p>
<p>So now let’s get started, you will need to create a new WSPBuilder project (without workflow), when the new project is loaded, choose Add-&gt;WSPBuilder-&gt;Blank Feature. The system will ask you a name and to choose a scope, in my example the scope choosen is web (for website). If you have done a mistake about the name or the scope, that’ not a problem, you will be able to modify those directly in the XML files.</p>
<p>Now that you’ve created your new feature, you will have in the document explorer an hierarchy like the following picture.</p>
<p><a href="http://blog.andy24db.com/wp-content/uploads/2009/04/image5.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" src="http://blog.andy24db.com/wp-content/uploads/2009/04/image-thumb5.png" border="0" alt="image" width="227" height="191" /></a></p>
<p>Now you have all your structure done, here is the code to include.</p>
<p>The <strong>feature.xml</strong> file will contains all information about the feature (title, ID, scope,…), use the intellisense to check what is proposed. The important thing is the link to the manifest, in our case, “elements.xml”.</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; line-height: 12pt; background-color: #f4f4f4; width: 97.13%; font-family: consolas,'Courier New',courier,monospace; height: 229px; max-height: 200px; font-size: 8pt; cursor: text;">
<div style="border-style: none; padding: 0px; overflow: visible; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: white; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;"><span style="color: #0000ff;">&lt;?</span><span style="color: #800000;">xml</span> <span style="color: #ff0000;">version</span><span style="color: #0000ff;">="1.0"</span> <span style="color: #ff0000;">encoding</span><span style="color: #0000ff;">="utf-8"</span>?<span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">Feature</span>  <span style="color: #ff0000;">Id</span><span style="color: #0000ff;">="0FE81D03-6AE0-48a0-BBF7-88A1DAA9B04A"</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: white; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">          <span style="color: #ff0000;">Title</span><span style="color: #0000ff;">="Import UP"</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">          <span style="color: #ff0000;">Description</span><span style="color: #0000ff;">="Description for Import User Profiles"</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: white; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">          <span style="color: #ff0000;">Version</span><span style="color: #0000ff;">="12.0.0.0"</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">          <span style="color: #ff0000;">Hidden</span><span style="color: #0000ff;">="FALSE"</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: white; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">          <span style="color: #ff0000;">Scope</span><span style="color: #0000ff;">="Web"</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">          <span style="color: #ff0000;">xmlns</span><span style="color: #0000ff;">="http://schemas.microsoft.com/sharepoint/"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: white; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">    <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">ElementManifests</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">        <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">ElementManifest</span> <span style="color: #ff0000;">Location</span><span style="color: #0000ff;">="elements.xml"</span><span style="color: #0000ff;">/&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: white; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">    <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">ElementManifests</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;"><span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">Feature</span><span style="color: #0000ff;">&gt;</span></pre>
</div>
</div>
<p>The <strong>elements.xml</strong> file define the content of the feature, in our case a custom action. To find the required fields refer to that MSDN link: <a href="http://msdn.microsoft.com/en-us/library/ms460194.aspx" target="_blank">CustomAction Element (Custom Action)</a> . What is really interesting is the <strong>registrationtype</strong>, you can register to some different contents in our case the lists and the <strong>registrationID</strong> refers to the type of list (100=custom list) we want to add the action in. But you can choose a registration of type content type and give the name of it, so that action will be relevant only for that content type. An important thing is to define the location of the action, where it will appear. The <strong>URL</strong> define where the users will be redirected when clicking on it, it can be, and probably will be in the real life a custom ASPX page.</p>
<p>Refer to that MSDN link to find all the location and G<strong>roupID</strong> (in the comments too!):  <a href="http://msdn.microsoft.com/en-us/library/bb802730.aspx" target="_blank">Default Custom Action Locations and IDs</a></p>
<p>You will see the 2 first columns, location and <strong>GroupID</strong>, if the G<strong>roupID</strong> is not empty or not contains N/A, you will have to include it in your custom action element, an example is done at the end of the post.</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; line-height: 12pt; background-color: #f4f4f4; width: 97.5%; font-family: consolas,'Courier New',courier,monospace; height: 234px; max-height: 200px; font-size: 8pt; cursor: text;">
<div style="border-style: none; padding: 0px; overflow: visible; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: white; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;"><span style="color: #0000ff;">&lt;?</span><span style="color: #800000;">xml</span> <span style="color: #ff0000;">version</span><span style="color: #0000ff;">="1.0"</span> <span style="color: #ff0000;">encoding</span><span style="color: #0000ff;">="utf-8"</span> ?<span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">Elements</span> <span style="color: #ff0000;">xmlns</span><span style="color: #0000ff;">="http://schemas.microsoft.com/sharepoint/"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: white; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">    <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">CustomAction</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">        <span style="color: #ff0000;">Id</span><span style="color: #0000ff;">="CustomActionGetUerProfiles.CustomAction"</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: white; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">        <span style="color: #ff0000;">Location</span><span style="color: #0000ff;">="DisplayFormToolbar"</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">        <span style="color: #ff0000;">Title</span><span style="color: #0000ff;">="Import Users"</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: white; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">        <span style="color: #ff0000;">RegistrationType</span><span style="color: #0000ff;">="List"</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">        <span style="color: #ff0000;">RegistrationId</span><span style="color: #0000ff;">="100"</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: white; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">        <span style="color: #ff0000;">Sequence</span><span style="color: #0000ff;">="10"</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">         <span style="color: #ff0000;">Description</span><span style="color: #0000ff;">="The description"</span> <span style="color: #ff0000;">RequireSiteAdministrator</span><span style="color: #0000ff;">="FALSE"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: white; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">        <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">UrlAction</span> <span style="color: #ff0000;">Url</span><span style="color: #0000ff;">="http://www.google.com"</span><span style="color: #0000ff;">/&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: #f4f4f4; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;">    <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">CustomAction</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; line-height: 12pt; background-color: white; width: 100%; font-family: consolas,'Courier New',courier,monospace; color: black; font-size: 8pt;"><span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">Elements</span><span style="color: #0000ff;">&gt;</span></pre>
</div>
</div>
<p>Now that you have your two files, your custom action is ready to be deployed, using WSPBuilder, simply choose, “Deploy”. Refresh the page and go to a custom list, if everything goes well when you will click on the view item button, on the next page, above, you will see our “Import user” action. By clicking on it you will be redirected to google.</p>
<p><a href="http://blog.andy24db.com/wp-content/uploads/2009/04/image9.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" src="http://blog.andy24db.com/wp-content/uploads/2009/04/image-thumb9.png" border="0" alt="image" width="427" height="140" /></a></p>
<p><a href="http://blog.andy24db.com/wp-content/uploads/2009/04/image13.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" src="http://blog.andy24db.com/wp-content/uploads/2009/04/image-thumb10.png" border="0" alt="image" width="529" height="85" /></a></p>
<p>If in the elements.xml you change the location to <strong>Location=”Microsoft.SharePoint.StandardMenu”</strong> and include <strong>GroupID=”ActionsMenu”</strong>, your action will be now on the toolbar of the list in the Action menu and the click will redirect you again to google.</p>
<p><a href="http://blog.andy24db.com/wp-content/uploads/2009/04/image11.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" src="http://blog.andy24db.com/wp-content/uploads/2009/04/image-thumb11.png" border="0" alt="image" width="351" height="199" /></a></p>
<p>Have a nice day !</p>
<img src="http://feeds.feedburner.com/~r/andy24db/dHjP/~4/lBNhW2rh64Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.andy24db.com/2009/04/create-a-custom-actions/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.andy24db.com/2009/04/create-a-custom-actions/</feedburner:origLink></item>
		<item>
		<title>Things to know when updating a profile using API</title>
		<link>http://feedproxy.google.com/~r/andy24db/dHjP/~3/FKh9IOduZXk/</link>
		<comments>http://blog.andy24db.com/2009/04/things-to-know-when-updating-a-profile-using-api/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 23:22:46 +0000</pubDate>
		<dc:creator>Andy Diericks</dc:creator>
		
		<category><![CDATA[Security]]></category>

		<category><![CDATA[Tips and Tricks]]></category>

		<category><![CDATA[User Account]]></category>

		<guid isPermaLink="false">http://blog.andy24db.com/2009/04/things-to-know-when-updating-a-profile-using-api/</guid>
		<description><![CDATA[&#160;
&#160;

When updating a value of a profile your changes won&#8217;t be applied until you make a commit, it can be so frustrating when you forget it&#8230;..



   1: UserProfile u;
   2: u[property].Value = &#34;My string&#34;;
   3: u.Commit();



Maybe the user will not have the rights to edit profiles, the current user [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>&#160;</p>
<ul>
<li>When updating a value of a profile your changes won&#8217;t be applied until you make a commit, it can be so frustrating when you forget it&#8230;..</li>
</ul>
<div style="border-bottom: gray 1px solid; border-left: gray 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; border-top: gray 1px solid; cursor: text; border-right: gray 1px solid; padding-top: 4px">
<div style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   1:</span> UserProfile u;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   2:</span> u[property].Value = <span style="color: #006080">&quot;My string&quot;</span>;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   3:</span> u.Commit();</pre>
</p></div>
</div>
<ul>
<li>Maybe the user will not have the rights to edit profiles, the current user has to get the &quot;Manage user profiles&quot; right, you can set it up in the SSP.</li>
<li>If the users cannot have the rights to edit profiles and can&#8217;t have it through SSP, because of security or business reason you can run your code with elevated privileges using the object SPSecurity. In that case the user that will run the code will have the same rights as &quot;SYSTEM\Administrator&quot;, so be careful. I have to admit I&#8217;m not a big fan of it. More information on MSDN: <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx" target="_blank">SPSecurity.RunWithElevatedPrivileges Method</a> .You can use the impersonation too: a good post about it: <a href="http://www.sharepoint-tips.com/2007/03/impersonation-in-event-handlers.html" target="_blank">Impersonation in Event Handlers by Ishai Sagi</a></li>
</ul>
<div style="border-bottom: gray 1px solid; border-left: gray 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; border-top: gray 1px solid; cursor: text; border-right: gray 1px solid; padding-top: 4px">
<div style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   1:</span> SPSecurity.RunWithElevatedPrivileges(<span style="color: #0000ff">delegate</span>()</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   2:</span> {</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   3:</span>     <span style="color: #0000ff">using</span> (SPSite site = <span style="color: #0000ff">new</span> SPSite(web.Site.ID))</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   4:</span>     {</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   5:</span>     <span style="color: #008000">// your code</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   6:</span>     }</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   7:</span> });</pre>
</p></div>
</div>
<p>&#160;</p>
<ul>
<li>Like always use some safe code, like testing if your user exist if not you can raise an exception</li>
</ul>
<div style="border-bottom: gray 1px solid; border-left: gray 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; border-top: gray 1px solid; cursor: text; border-right: gray 1px solid; padding-top: 4px">
<div style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   1:</span> <span style="color: #0000ff">try</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   2:</span> {</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   3:</span>    <span style="color: #0000ff">if</span> (profileManager.UserExists(<span style="color: #006080">&quot;MOSS\\andy&quot;</span>))</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   4:</span>    {</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   5:</span>          <span style="color: #008000">//Do something</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   6:</span>    }</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   7:</span> }</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   8:</span> <span style="color: #0000ff">catch</span> (UserNotFoundException ex)</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   9:</span> {</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  10:</span>     <span style="color: #008000">//Do something                </span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  11:</span> }</pre>
</p></div>
</div>
<img src="http://feeds.feedburner.com/~r/andy24db/dHjP/~4/FKh9IOduZXk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.andy24db.com/2009/04/things-to-know-when-updating-a-profile-using-api/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.andy24db.com/2009/04/things-to-know-when-updating-a-profile-using-api/</feedburner:origLink></item>
		<item>
		<title>Nice Tool: SharePoint Search Services Tool</title>
		<link>http://feedproxy.google.com/~r/andy24db/dHjP/~3/_AVhCqzvSP0/</link>
		<comments>http://blog.andy24db.com/2009/04/nice-tool-sharepoint-search-services-tool/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 21:13:54 +0000</pubDate>
		<dc:creator>Andy Diericks</dc:creator>
		
		<category><![CDATA[Search]]></category>

		<category><![CDATA[Tools]]></category>

		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://blog.andy24db.com/2009/04/nice-tool-sharepoint-search-services-tool/</guid>
		<description><![CDATA[ 
For my current development, one of the requirements is to be able to make some search through the Moss API or web service, so after some search on the web I discovered a really nice tool.
The SharePoint Search Services Tool, which allow you to directly do your request on the web services.
That tool is [...]]]></description>
			<content:encoded><![CDATA[<p> 
<p>For my current development, one of the requirements is to be able to make some search through the Moss API or web service, so after some search on the web I discovered a really nice tool.</p>
<p>The <a href="http://www.codeplex.com/SharePointSearchServ" target="_blank">SharePoint Search Services Tool</a>, which allow you to directly do your request on the web services.</p>
<p>That tool is really awesome!</p>
<p><a href="http://blog.andy24db.com/wp-content/uploads/2009/04/image.png"><img style="border-right-width: 0px; margin: 0px 30px 0px 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" align="left" src="http://blog.andy24db.com/wp-content/uploads/2009/04/image-thumb.png" width="121" height="201" /></a> </p>
<p>Make a request on a web services consist on 4 steps:</p>
<p>Get the value and scope you want to search on, generate the &quot;Query Packet&quot;, which is simply create an XML formatted to be understood by the web service, make the request to it (via Query or QueryEx method), get the answer.</p>
<p>With that tool you will be able to:</p>
<ul>
<li>Define your query text </li>
<li>Define the sort method </li>
<li>Choose the properties to define in the XML answer </li>
<li>Query the Query or QueryEx methods </li>
<li>See the results in XML or in datagrid view </li>
<li>&#8230; </li>
</ul>
<p> <u><strong>The request window:</strong></u>
<p><a href="http://blog.andy24db.com/wp-content/uploads/2009/04/image1.png" target="_blank"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blog.andy24db.com/wp-content/uploads/2009/04/image-thumb1.png" width="590" height="419" /></a></p>
<p><u><strong></strong></u></p>
<p><u><strong>The Links</strong></u></p>
<p><a href="http://blog.andy24db.com/wp-content/uploads/2009/04/image4.png" target="_blank"></a></p>
<p>Download the SharePoint Search Services Tool from Codeplex: <a title="http://www.codeplex.com/SharePointSearchServ" href="http://www.codeplex.com/SharePointSearchServ">http://www.codeplex.com/SharePointSearchServ</a></p>
<p>Visual How-To access to the SharePoint wseb services: <a title="http://msdn.microsoft.com/en-us/library/bb625950.aspx" href="http://msdn.microsoft.com/en-us/library/bb625950.aspx">http://msdn.microsoft.com/en-us/library/bb625950.aspx</a></p>
<p>The QueryPacket element on MSDN: <a title="http://msdn.microsoft.com/en-us/library/ms451565.aspx" href="http://msdn.microsoft.com/en-us/library/ms451565.aspx">http://msdn.microsoft.com/en-us/library/ms451565.aspx</a></p>
<p>&#160;</p>
<p>&#160;</p>
<div></div>
<img src="http://feeds.feedburner.com/~r/andy24db/dHjP/~4/_AVhCqzvSP0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.andy24db.com/2009/04/nice-tool-sharepoint-search-services-tool/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.andy24db.com/2009/04/nice-tool-sharepoint-search-services-tool/</feedburner:origLink></item>
		<item>
		<title>Patent on the SharePoint query class</title>
		<link>http://feedproxy.google.com/~r/andy24db/dHjP/~3/mURk8mbARD4/</link>
		<comments>http://blog.andy24db.com/2009/04/patent-on-the-sharepoint-query-class/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 21:06:58 +0000</pubDate>
		<dc:creator>Andy Diericks</dc:creator>
		
		<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://blog.andy24db.com/2009/04/patent-on-the-sharepoint-query-class/</guid>
		<description><![CDATA[I&#8217;ve discovered a funny thing when I was searching some information about EnableUrlSmashing (I love the name), Microsoft created in 2006, published in 2008, a patent about the search API in SharePoint.
That patent (&#34;Simplified search interface for querying a relational database&#34;) covers the Query, KeyWordQuery class and more.
An extract from the abstract:
Methods and computer-readable media [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve discovered a funny thing when I was searching some information about <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.search.query.keywordquery.enableurlsmashing.aspx" target="_blank"><strong>EnableUrlSmashing</strong></a> (I love the name), Microsoft created in 2006, published in 2008, a patent about the search API in SharePoint.</p>
<p>That patent (&quot;<em>Simplified search interface for querying a relational database</em>&quot;) covers the Query, KeyWordQuery class and more.</p>
<p>An extract from the abstract:</p>
<blockquote><p><em>Methods and computer-readable media are provided for performing a search on a relational database. According to one method, a query class is provided that includes properties that specify how a query is to be performed and how results from the query are to be returned, and an execute method that is called to perform the actual query. A keyword query class derived from the query class is also provided that includes keyword query properties and an execute method for performing the keyword query.</em></p>
</blockquote>
<p>Link to the full patent: <a title="http://www.freepatentsonline.com/y2008/0114745.html" href="http://www.freepatentsonline.com/y2008/0114745.html" target="_blank">http://www.freepatentsonline.com/y2008/0114745.html</a></p>
<img src="http://feeds.feedburner.com/~r/andy24db/dHjP/~4/mURk8mbARD4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.andy24db.com/2009/04/patent-on-the-sharepoint-query-class/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.andy24db.com/2009/04/patent-on-the-sharepoint-query-class/</feedburner:origLink></item>
		<item>
		<title>Download SharePoint Designer 2007 for free !</title>
		<link>http://feedproxy.google.com/~r/andy24db/dHjP/~3/LwHjoCA7RHI/</link>
		<comments>http://blog.andy24db.com/2009/04/download-sharepoint-designer-2007-for-free/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 18:27:46 +0000</pubDate>
		<dc:creator>Andy Diericks</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[SharePoint Designer]]></category>

		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://blog.andy24db.com/2009/04/download-sharepoint-designer-2007-for-free/</guid>
		<description><![CDATA[No, the blog isn&#8217;t transformed into a warez board, that&#8217;s the real thing.  
Since the 03/31/2009, you can freely download it directly from the microsoft site, link is below.
After the news about setting a part of the BI stack of Microsoft, PerformancePoint, for free to the enterprise CAL customers, it&#8217;s now the turn of [...]]]></description>
			<content:encoded><![CDATA[<p>No, the blog isn&#8217;t transformed into a warez board, that&#8217;s the real thing. <img src='http://blog.andy24db.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Since the 03/31/2009, you can freely download it directly from the microsoft site, link is below.</p>
<p>After the news about setting a part of the BI stack of Microsoft, PerformancePoint, for free to the enterprise CAL customers, it&#8217;s now the turn of the SPD 2007 to be free.</p>
<p>That will probably leverage again a bit higher the reasons to go for SharePoint for the futures customers. </p>
<p><a href="http://blog.andy24db.com/wp-content/uploads/2009/04/licenkeyspd2007.jpg"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 10px 0px 30px; border-top: 0px; border-right: 0px" border="0" alt="LicenKeySPD2007" align="right" src="http://blog.andy24db.com/wp-content/uploads/2009/04/licenkeyspd2007-thumb.jpg" width="279" height="235" /></a></p>
<p>&#160;</p>
<p>For the time being saying to&#160; them:&quot;Ok you&#8217;ve bought an expensive piece of software even if it&#8217;s a killer-app, now you have to buy for each of you&#8217;re developers or designers a new office 2007 licence&quot;. </p>
<p>The answer is rather often:&quot;Oh, it&#8217;s not included in SharePoint or Visual Studio ?&quot;</p>
<p>&#160;</p>
<p>And now I&#8217;m waiting for Infopath for free <img src='http://blog.andy24db.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>The download link:</p>
<p><a title="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=baa3ad86-bfc1-4bd4-9812-d9e710d44f42" href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=baa3ad86-bfc1-4bd4-9812-d9e710d44f42" target="_blank">http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=baa3ad86-bfc1-4bd4-9812-d9e710d44f42</a></p>
<img src="http://feeds.feedburner.com/~r/andy24db/dHjP/~4/LwHjoCA7RHI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.andy24db.com/2009/04/download-sharepoint-designer-2007-for-free/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.andy24db.com/2009/04/download-sharepoint-designer-2007-for-free/</feedburner:origLink></item>
		<item>
		<title>Access Sharepoint webservices using javascript</title>
		<link>http://feedproxy.google.com/~r/andy24db/dHjP/~3/dQsz30mkhVI/</link>
		<comments>http://blog.andy24db.com/2008/11/access-sharepoint-webservices-using-javascript/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 22:50:38 +0000</pubDate>
		<dc:creator>Andy Diericks</dc:creator>
		
		<category><![CDATA[Administration]]></category>

		<category><![CDATA[Security]]></category>

		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://blog.andy24db.com/2008/11/access-sharepoint-webservices-using-javascript/</guid>
		<description><![CDATA[The code below will show you how to get all the groups which a user belongs to, through webservices using JavaScript.
That functionality isn&#8217;t provided OOB in Sharepoint 2007, but can be really useful when you get a lot of security groups and some issues about them. It can be used for auditing, debugging &#8230;
Here is [...]]]></description>
			<content:encoded><![CDATA[<p>The code below will show you how to get all the groups which a user belongs to, through webservices using JavaScript.</p>
<p>That functionality isn&#8217;t provided OOB in Sharepoint 2007, but can be really useful when you get a lot of security groups and some issues about them. It can be used for auditing, debugging &#8230;</p>
<p>Here is an example:</p>
<p>The user enter the account &quot;MYDOMAIN\MyAccount&quot; click on the link and get:</p>
<ul>
<li>Group Name: Group1 </li>
<li>Group Decription: Description of Group1 </li>
<li>Group Name:Group2 </li>
<li>Group Decription:Description of Group2 </li>
</ul>
<h3>&#160;</h3>
<h3><u>Implementation</u></h3>
<p>For doing it, I will use a JavaScript library, which is in fact a proxy class, which means that our code will be easier to write, maintain and debug, all the boring stuff are already done for you <img src='http://blog.andy24db.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Here is the link to the site of Darren which contain the library in the Download section. <a title="http://darrenjohnstone.net" href="http://darrenjohnstone.net">http://darrenjohnstone.net</a></p>
<p>Here is some examples <a title="http://darrenjohnstone.net/2008/07/22/examples-for-the-sharepoint-and-office-live-javascript-api/" href="http://darrenjohnstone.net/2008/07/22/examples-for-the-sharepoint-and-office-live-javascript-api/">http://darrenjohnstone.net/2008/07/22/examples-for-the-sharepoint-and-office-live-javascript-api/</a></p>
<p>To include the library in your Sharepoint site, please follow Darren&#8217;s advices:</p>
<blockquote><p>If you have full control of your server:</p>
<p>1) Locate the <code>C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS</code> folder.       <br />2) In there create a new folder called JSAPI.       <br />3) Place the extracted .js files in there.</p>
<p>If you don&#8217;t have full access:</p>
<p>1) Open SharePoint Designer and connect to your site.      <br />2) Create a new folder called JSAPI at the root of the site.       <br />3) Copy the extracted .js files to the folder by dragging them from Windows Explorer to SP Designer.</p>
</blockquote>
<p>Where to put code ?</p>
<ul>
<li>In a html file, and show it in a page viewer webpart or </li>
<li>Insert it in a page layout, or even master page. </li>
</ul>
<p>&#160;</p>
<h3><u>Coding</u></h3>
<p>First of all, you will need to make some include to be able to use the web proxy class:</p>
<div>
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   1:</span> &lt;script type=<span style="color: #006080">&quot;text/javascript&quot;</span> src=<span style="color: #006080">&quot;/_layouts/JSAPI/SPAPI_Core.js&quot;</span>&gt;&lt;/script&gt;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   2:</span> &lt;script type=<span style="color: #006080">&quot;text/javascript&quot;</span> src=<span style="color: #006080">&quot;/_layouts/JSAPI/SPAPI_Lists.js&quot;</span>&gt;&lt;/script&gt;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   3:</span> &lt;script type=<span style="color: #006080">&quot;text/javascript&quot;</span> src=<span style="color: #006080">&quot;/_layouts/JSAPI/SPAPI_UserGroup.js&quot;</span>&gt;&lt;/script&gt;</pre>
</p></div>
</div>
<p>&#160;</p>
<p>We need to create a simple form, containing </p>
<ul>
<li>A textbox: the user will type the username(with domain) in it. </li>
<li>A link: to start the job. </li>
</ul>
<div>
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   1:</span> &lt;form method=<span style="color: #006080">&quot;post&quot;</span> action=<span style="color: #006080">&quot;&quot;</span>&gt;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   2:</span> &lt;input id=<span style="color: #006080">&quot;Text1&quot;</span> type=<span style="color: #006080">&quot;text&quot;</span> /&gt;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   3:</span> &lt;a href=<span style="color: #006080">'#'</span> onclick=<span style="color: #006080">&quot;javascript:start()&quot;</span>&gt;Start the search&lt;/a&gt;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   4:</span> &lt;/form&gt;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   5:</span> &lt;div id=<span style="color: #006080">&quot;username_div&quot;</span>&gt;&lt;/div&gt;    </pre>
</p></div>
</div>
<p>&#160;</p>
<p>And now the interesting part, I will shortly explain the JavaScript methods below:</p>
<ul>
<li>Start: We get the user name from a textbox and call the getGroupCollection and Formatresult methods. </li>
<li>getGroupCollection: Receive the username by parameter. The method will use a SPAPI_UserGroup object and request the groups that the users belongs to, through the getGroupCollectionFromUser method. The result will be put in two arrays, the first containing the names of the groups, the second one containing the descriptions. </li>
<li>FormatResult: The arrays containing the groups names and descriptions are&#160; parsed. The content is formatted in a more friendly way. </li>
</ul>
<p>&#160;</p>
<div>
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   1:</span> &lt;script type=<span style="color: #006080">&quot;text/javascript&quot;</span> language=<span style="color: #006080">&quot;javascript&quot;</span>&gt;    </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   2:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   3:</span> <span style="color: #0000ff">function</span> getGroupCollection(userName)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   4:</span> {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   5:</span>     <span style="color: #0000ff">var</span> groupName = <span style="color: #0000ff">new</span> Array();</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   6:</span>     <span style="color: #0000ff">var</span> groupDescription = <span style="color: #0000ff">new</span> Array();</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   7:</span>     <span style="color: #0000ff">var</span> arrGroup = <span style="color: #0000ff">new</span> Array(groupName,groupDescription);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   8:</span>     </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   9:</span>     <span style="color: #0000ff">var</span> userGroup = <span style="color: #0000ff">new</span> SPAPI_UserGroup(<span style="color: #006080">''</span>);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  10:</span>     <span style="color: #0000ff">var</span> groupItems = userGroup.getGroupCollectionFromUser(userName)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  11:</span>     </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  12:</span>     <span style="color: #0000ff">if</span> (groupItems.status == 200)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  13:</span>     {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  14:</span>             <span style="color: #0000ff">var</span> groupTags = groupItems.responseXML.getElementsByTagName(<span style="color: #006080">'Group'</span>);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  15:</span>     </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  16:</span>             <span style="color: #0000ff">for</span>(<span style="color: #0000ff">var</span> i=0;i&lt;groupTags.length;i++)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  17:</span>             {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  18:</span>                 groupName.push(groupTags[i].getAttribute(<span style="color: #006080">&quot;Name&quot;</span>));        </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  19:</span>                 groupDescription.push(groupTags[i].getAttribute(<span style="color: #006080">&quot;Description&quot;</span>));        </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  20:</span>             }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  21:</span>     }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  22:</span>     <span style="color: #0000ff">return</span> arrGroup;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  23:</span> }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  24:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  25:</span> <span style="color: #0000ff">function</span> formatResult(groups,username)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  26:</span> {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  27:</span>     <span style="color: #0000ff">var</span> result=<span style="color: #006080">&quot;&quot;</span>; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  28:</span>     result = <span style="color: #006080">&quot;The user &quot;</span> + username + <span style="color: #006080">&quot; belongs to: &lt;/br&gt;&quot;</span>;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  29:</span>     <span style="color: #0000ff">for</span>(<span style="color: #0000ff">var</span> i=0;i&lt;groups.length;i++)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  30:</span>     {        </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  31:</span>         result+= <span style="color: #006080">&quot;&lt;b&gt;Group name: &lt;/b&gt;&quot;</span> + groups[0][i] + <span style="color: #006080">&quot;&lt;br /&gt;&quot;</span>;                       </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  32:</span>         result+= <span style="color: #006080">&quot;&lt;b&gt;Group Description: &lt;/b&gt;&quot;</span> + groups[1][i] + <span style="color: #006080">&quot;&lt;br /&gt; &lt;p&gt; &lt;/p&gt;&quot;</span>;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  33:</span>     }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  34:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  35:</span> <span style="color: #0000ff">return</span> result;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  36:</span> }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  37:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  38:</span> <span style="color: #0000ff">function</span> start()</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  39:</span> {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  40:</span>     <span style="color: #0000ff">var</span> userName = document.getElementById(<span style="color: #006080">'Text1'</span>).value;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  41:</span>     <span style="color: #0000ff">var</span> groups = getGroupCollection(userName);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  42:</span>     document.getElementById(<span style="color: #006080">'username_div'</span>).innerHTML = formatResult(groups,userName);     </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  43:</span>     </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  44:</span> }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  45:</span> &lt;/script&gt;            </pre>
</p></div>
</div>
<p>&#160;</p>
<p>If you have questions, please ask them!</p>
<img src="http://feeds.feedburner.com/~r/andy24db/dHjP/~4/dQsz30mkhVI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.andy24db.com/2008/11/access-sharepoint-webservices-using-javascript/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.andy24db.com/2008/11/access-sharepoint-webservices-using-javascript/</feedburner:origLink></item>
		<item>
		<title>Breadcrumb creating an error 500</title>
		<link>http://feedproxy.google.com/~r/andy24db/dHjP/~3/1bYW0rc7bmo/</link>
		<comments>http://blog.andy24db.com/2008/10/breadcrumb-create-error-500/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 14:15:38 +0000</pubDate>
		<dc:creator>Andy Diericks</dc:creator>
		
		<category><![CDATA[Error]]></category>

		<category><![CDATA[Sites]]></category>

		<guid isPermaLink="false">http://blog.andy24db.com/?p=105</guid>
		<description><![CDATA[I&#8217;ve found a nice error today on our Sharepoint implementation.
The error appear only on one site &#8220;SiteA&#8221;.
Description of the error:
By going on the Site settings on the top of the page you have a breadcrumb, by clicking on the over right site in it (SiteA), the destination was supposed to be(http://mysite/SiteAA/SiteA/), which in fact is [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve found a nice error today on our Sharepoint implementation.</p>
<p>The error appear only on one site &#8220;SiteA&#8221;.</p>
<p><span style="text-decoration: underline;">Description of the error:</span></p>
<p>By going on the Site settings on the top of the page you have a breadcrumb, by clicking on the over right site in it (SiteA), the destination was supposed to be(<a href="http://mysite/SiteAA/SiteA/">http://mysite/SiteAA/SiteA/</a>), which in fact is resolved by Sharepoint to <a href="http://mysite/SiteAA/SiteA/Pages/Home.aspx">http://mysite/SiteAA/SiteA/Pages/Home.aspx</a> but in our case the result was a nice error 500 page.</p>
<p><span style="text-decoration: underline;">Resolution:</span></p>
<p>No real solution because I didn&#8217;t get the real explaination on that error, the workaround was to go the site permission and to inherit the rights of the parent site and re-setup the rights after.</p>
<p>I don&#8217;t get the real reason on that error but a hotfix exist for that: <a href="http://support.microsoft.com/kb/936867">http://support.microsoft.com/kb/936867</a></p>
<img src="http://feeds.feedburner.com/~r/andy24db/dHjP/~4/1bYW0rc7bmo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.andy24db.com/2008/10/breadcrumb-create-error-500/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.andy24db.com/2008/10/breadcrumb-create-error-500/</feedburner:origLink></item>
	</channel>
</rss>
