<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cassy Blog &#187; ICT</title>
	<atom:link href="http://blog.cassy.be/category/ict/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cassy.be</link>
	<description>Cassy's Personal Weblog</description>
	<lastBuildDate>Tue, 24 Jan 2012 11:09:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How To Reset the Default EditFormUrl, NewFormUrl and DispFormUrl of a SharePoint ContentType</title>
		<link>http://blog.cassy.be/how-to-reset-the-default-editformurl-newformurl-and-dispformurl-of-a-sharepoint-contenttype/</link>
		<comments>http://blog.cassy.be/how-to-reset-the-default-editformurl-newformurl-and-dispformurl-of-a-sharepoint-contenttype/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 11:01:11 +0000</pubDate>
		<dc:creator>Cassy</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[ICT]]></category>

		<guid isPermaLink="false">http://blog.cassy.be/?p=507</guid>
		<description><![CDATA[When you want to change the EditFormUrl, NewFormUrl and DispFormUrl of a SharePoint ContentType, you can do this by including a section in your ContentType Xml Declaration or do it in code (recommended). It is also possible to reset those Urls so that the default SharePoint form is loaded when editing, creating or displaying a [...]]]></description>
			<content:encoded><![CDATA[<p>When you want to change the EditFormUrl, NewFormUrl and DispFormUrl of a SharePoint ContentType, you can do this by including a section in your ContentType Xml Declaration or do it in code (recommended). It is also possible to reset those Urls so that the default SharePoint form is loaded when editing, creating or displaying a listitem of that content type.</p>
<p><span id="more-507"></span>If you want  to change the EditForm, NewForm and DispForm Urls of a content type, you could do it as follows:</p>
<pre class="brush: xml; highlight: [12,13,14]; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;Elements xmlns=&quot;http://schemas.microsoft.com/sharepoint/&quot;&gt;
  &lt;!--Some defined fields--&gt;
  &lt;!-- Example: Parent ContentType: Item (0x01) --&gt;
  &lt;ContentType ID=&quot;0x0100...&quot;  Name=&quot;ProductContentType&quot; Group=&quot;Custom Content Types&quot;  Description=&quot;My Content Type&quot; Inherits=&quot;false&quot; Version=&quot;0&quot;&gt;
    &lt;FieldRefs&gt;
      &lt;!--Some references to the fields used in your content type--&gt;
    &lt;/FieldRefs&gt;
    &lt;XmlDocuments&gt;
      &lt;XmlDocument NamespaceURI=&quot;http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url&quot;&gt;
        &lt;FormUrls xmlns=&quot;http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url&quot;&gt;
          &lt;Display&gt;_layouts/MyProjectName/Product.aspx?mode=display&lt;/Display&gt;
          &lt;Edit&gt;_layouts/MyProjectName/Product.aspx?mode=edit&lt;/Edit&gt;
          &lt;New&gt;_layouts/MyProjectName/Product.aspx?mode=new&lt;/New&gt;
        &lt;/FormUrls&gt;
      &lt;/XmlDocument&gt;
    &lt;/XmlDocuments&gt;
  &lt;/ContentType&gt;
&lt;/Elements&gt;
</pre>
<p>However after reading the <a title="Jopx Blog Post: Sharepoint 2007 Watch out for formurls" href="http://jopx.blogspot.com/2007/06/sharepoint-2007-watch-out-for-formurls.html" target="_blank">JOPX Blog post</a> about this, it is better to do this in code and to make an extra feature for this. If you want to clean up (reset) your Custom Urls to the default ones used by SharePoint when de-activating that feature, also that code is included:</p>
<pre class="brush: csharp; title: ; notranslate">
private void changeFormUrls(SPSite currentSite, string offerteContentTypeName, bool reset)
{
  foreach (SPWeb currentWeb in currentSite.AllWebs)
  {
    foreach (SPList currentList in currentWeb.Lists)
    {
      foreach (SPContentType currentCT in currentList.ContentTypes)
      {
        if (currentCT.Name.Equals(offerteContentTypeName, StringComparison.CurrentCultureIgnoreCase))
        {
          try
          {
            currentWeb.AllowUnsafeUpdates = true;
            //Change the Form Urls
            if (reset)
            {
              currentCT.NewFormUrl = &quot;NewForm.aspx&quot;;
              currentCT.EditFormUrl = &quot;EditForm.aspx&quot;;
              currentCT.DisplayFormUrl = &quot;DispForm.aspx&quot;;
            }
            else
            {
              currentCT.NewFormUrl = @&quot;_layouts/MyProjectName/Product.aspx?mode=new&quot;;
              currentCT.EditFormUrl = @&quot;_layouts/MyProjectName/Product.aspx?mode=edit&quot;;
              currentCT.DisplayFormUrl = @&quot;_layouts/MyProjectName/Product.aspx?mode=display&quot;;
            }
            currentCT.Update();
            currentList.Update();
          }
          catch (Exception ex)
          {
            //ToDo: Add some logging...
          }
          finally
          {
            currentWeb.AllowUnsafeUpdates = false;
          }
        }
      }
    }
  }
}
</pre>
<p>Off course you&#8217;ll have to pass the name of the content type to this function.</p>
<p>Happy coding <img src='http://blog.cassy.be/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cassy.be/how-to-reset-the-default-editformurl-newformurl-and-dispformurl-of-a-sharepoint-contenttype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring SmarterMail on VPC for SharePoint (POP3 + SMTP)</title>
		<link>http://blog.cassy.be/configuring-smartermail-on-vpc-for-sharepoint-pop3-smtp/</link>
		<comments>http://blog.cassy.be/configuring-smartermail-on-vpc-for-sharepoint-pop3-smtp/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 10:22:41 +0000</pubDate>
		<dc:creator>Cassy</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[ICT]]></category>

		<guid isPermaLink="false">http://blog.cassy.be/?p=444</guid>
		<description><![CDATA[When developing for MS SharePoint, especially on a development VPC, you might want to configure SharePoint to send emails, and you might want to configure your VPC environment so that it can Receive (POP3) the emails. This is a guide how to configure your environment with the free edition from SmarterMail. Environment / Prerequisites Operating [...]]]></description>
			<content:encoded><![CDATA[<p>When developing for MS SharePoint, especially on a development <abbr title="Virtual PC">VPC</abbr>, you might want to configure SharePoint to send emails, and you might want to configure your <abbr title="Virtual PC">VPC</abbr> environment so that it can Receive (POP3) the emails. This is a guide how to configure your environment with the free edition from <a href="http://www.smartertools.com/" target="_&quot;blank&quot;">SmarterMail</a>.<br />
<span id="more-444"></span><br />
<strong><span style="text-decoration: underline;">Environment / Prerequisites</span></strong></p>
<ul>
<li>Operating system VPC: Microsoft Windows Server 2008 Enterprise (32-bit)</li>
<li>SmarterMail version 7.2.3925 : latest version can be downloaded <a href="http://www.smartertools.com/smartermail/free-mail-server.aspx" target="_blank">here</a>.</li>
<li><abbr title="Microsoft Office SharePoint Server 2007">MOSS 2007</abbr> (but can be used for <abbr title="SharePoint Portal Server 2010">SPS 2010</abbr> also)</li>
</ul>
<p><strong><span style="text-decoration: underline;">Installation</span></strong><br />
<br />
<strong>Step 1/8:  Installation of SmarterMail</strong><br />
1) Launch the Setup file after downloading the latest version of SmarterMail (free edition).<br />
<img src="http://blog.cassy.be/wp-content/uploads/2010/10/01_smartermail_setupfile.jpg" alt="" title="01_smartermail_setupfile" width="99" height="96" class="alignnone size-full wp-image-457" /><br />
2) Perform a default installation, don&#8217;t fill in a licence key. When you get the screen asking for the system information. Fill in the right information:<br />
<img src="http://blog.cassy.be/wp-content/uploads/2010/10/02_smartermail_systeminfo1.jpg" alt="" title="02_smartermail_systeminfo" width="262" height="136" class="alignnone size-full wp-image-461" /><br />
In the next screen, leave the DNS details blank, finish the wizard by <u>not</u> activating SPAM checking functionality. Automatically you will receive the configuration screen of SmarterMail.</p>
<p><strong>Step 2/8:  Configuration of SmarterMail</strong><br />
1) Skip Activation of SmarterMail. This is not necessary.<br />
2) Add a domain. With the free version of SmarterMail, you can only add one domain. I choose to use [<vpcname>.com] as a domain name. I add &#8220;.com&#8221; intentionally, because MS Outlook will only allow to send emails which are normally formatted (name@domain.extension)&#8230;<br />
So add a domain by clicking the Manage icon, in the navigation pane, click New > New Domain:<br />
<img src="http://blog.cassy.be/wp-content/uploads/2010/10/03_smartermail_adddomain.jpg" alt="" title="03_smartermail_adddomain" width="456" height="139" class="alignnone size-full wp-image-463" /><br />
Fill in the necessary details. Make sure you select 127.0.0.1 as ip-address for the domain:<br />
<a href="http://blog.cassy.be/wp-content/uploads/2010/10/04_smartermail_adddomaindetails.jpg"><img src="http://blog.cassy.be/wp-content/uploads/2010/10/04_smartermail_adddomaindetails.jpg" alt="" title="04_smartermail_adddomaindetails" width="379" height="217" class="alignnone size-full wp-image-465" /></a><br />
3) Adding necessary POP3 users: Select the domain you have just created, and click on &#8220;manage&#8221;. A new screen will open. In the left navigation of this popup, browse to &#8220;Users&#8221;. Add a user:<br />
<img src="http://blog.cassy.be/wp-content/uploads/2010/10/05_smartermail_addusers.jpg" alt="" title="05_smartermail_addusers" width="491" height="402" class="alignnone size-full wp-image-467" /><br />
Repeat adding users for all POP3 accounts you want to create.</p>
<p><strong>Step 3/7:  Creating Domain in Hosts file</strong><br />
As explained in step 2, I have created a domain with name </vpcname><vpcname>.com. Now we will have to perform a small changes in the VPC Host file so that this domain can be found.<br />
On the VPC, navigate (Start > Run) to the %systemroot%/system32/drivers/etc/ directory. Open the hosts file with notepad and add the entry of </vpcname><vpcname>.com. It will point to 127.0.0.1, which is the localhost.<br />
<img src="http://blog.cassy.be/wp-content/uploads/2010/10/06_hostfile.jpg" alt="" title="06_hostfile" width="283" height="324" class="alignnone size-full wp-image-469" /><br />
Save the file and exit Notepad.</p>
<p><strong>Step 4/7:  Configuring MS Outlook</strong><br />
With these steps performed, it should be able now to test our configuration in MS Outlook (if installed on the VPC off course).<br />
Add the necessary POP3 account, for example:<br />
<img src="http://blog.cassy.be/wp-content/uploads/2010/10/07_outlook.jpg" alt="" title="07_outlook" width="495" height="272" class="alignnone size-full wp-image-471" /><br />
Test the account by pressing &#8220;Test Account Settings &#8230;&#8221;, you should have green &#8220;ok&#8221; marks <img src='http://blog.cassy.be/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><strong>Step 5/7:  Configuring IIS</strong><br />
1) Make sure the SMTP service is installed on your VPC Server. If not, you can add it as a feature. (Start > Settings > Control Panel > Programs and Features > Turn Windows Features On / off > Features > Add Features):<br />
<img src="http://blog.cassy.be/wp-content/uploads/2010/10/08_smtpservice.jpg" alt="" title="08_smtpservice" width="557" height="354" class="alignnone size-full wp-image-473" /></p>
<p>2) Configure the relay correctly: Open the IIS 6.0 Manager (Start > Settings > Control Panel > Administrative Tools > Internet Information Services (IIS) 6.0 Manager). Right-click the SMTP Virtual Server in the left navigation (start it if necessary) and select &#8220;Properties&#8221;.<br />
Navigate to the &#8220;Access&#8221; tab and click on the Relay button. Make sure the settings are set correctly:<br />
<img src="http://blog.cassy.be/wp-content/uploads/2010/10/09_relay.jpg" alt="" title="09_relay" width="386" height="376" class="alignnone size-full wp-image-474" /></p>
<p><strong>Step 6/7: Configuring SharePoint</strong><br />
In SharePoint Central Administration, navigate to the &#8220;Operations&#8221; Tab, and click on &#8220;Outgoing e-mail settings&#8221;. Fill in the correct details, for example:<br />
<img src="http://blog.cassy.be/wp-content/uploads/2010/10/10_moss.jpg" alt="" title="10_moss" width="390" height="236" class="alignnone size-full wp-image-475" /></p>
<p><strong>Step 7/7: Testing!</strong></vpcname><br />
You now should be up &#038; running.<br />
<u>Note:</u> make sure your SharePoint profiles contain the correct e-mail addresses. (You can set this manually also by navigating to the SharePoint Central Administration Shared Service provider > User profiles and properties)<br />
For testing, you can also download the <a href="http://rodneyviana.codeplex.com/releases/view/19103" target="_blank">Test Sharepoint Send e-mail configuration</a> from <a href="http://blogs.msdn.com/b/rodneyviana/" target="_blank">Rodney Viana</a>. More information can be found <a href="http://blogs.msdn.com/b/rodneyviana/archive/2008/11/06/how-to-test-the-mail-settings-for-a-sharepoint-web-application.aspx" target="_blank">here</a>.</p>
<p>Good Luck!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cassy.be/configuring-smartermail-on-vpc-for-sharepoint-pop3-smtp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharepoint and UrlScan Tool don&#8217;t mix!</title>
		<link>http://blog.cassy.be/sharepoint-and-urlscan-tool-dont-mix/</link>
		<comments>http://blog.cassy.be/sharepoint-and-urlscan-tool-dont-mix/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 11:35:34 +0000</pubDate>
		<dc:creator>Cassy</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[ICT]]></category>

		<guid isPermaLink="false">http://blog.cassy.be/?p=442</guid>
		<description><![CDATA[Today, after 3 weeks of (well deserved ) holiday, I noticed that I couldn&#8217;t reach my custom developped SharePoint webservice anymore on a test-environment. After searching some time, I discovered the MS UrlScan Security Tool had been installed which blocked all calls to the webservice and simply returned a 404 because the url contained a [...]]]></description>
			<content:encoded><![CDATA[<p>Today, after 3 weeks of (well deserved <img src='http://blog.cassy.be/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> ) holiday, I noticed that I couldn&#8217;t reach my custom developped SharePoint webservice anymore on a test-environment. </p>
<p>After searching some time, I discovered the <a href="http://technet.microsoft.com/en-us/security/cc242650.aspx" target="_blank">MS UrlScan Security Tool</a> had been installed which blocked all calls to the webservice and simply returned a 404 because the url contained a &#8220;.&#8221; character in the path to the webservice asmx.</p>
<p>You&#8217;ll find numerous posts online about difficulties with UrlScan and SharePoint installed together, just don&#8217;t mix them <img src='http://blog.cassy.be/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cassy.be/sharepoint-and-urlscan-tool-dont-mix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>InfoPath: Making fields editable in SharePoint (Property Promotion/Demotion)</title>
		<link>http://blog.cassy.be/infopath-making-fields-editable-in-sharepoint-property-promotiondemotion/</link>
		<comments>http://blog.cassy.be/infopath-making-fields-editable-in-sharepoint-property-promotiondemotion/#comments</comments>
		<pubDate>Tue, 25 May 2010 08:46:36 +0000</pubDate>
		<dc:creator>Cassy</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[ICT]]></category>

		<guid isPermaLink="false">http://blog.cassy.be/?p=428</guid>
		<description><![CDATA[After 2 InfoPath projects together with MOSS 2007, I noticed that I overlooked an important checkbox in the InfoPath publishing routine: By checking it, you make the column editable in SharePoint&#8230;]]></description>
			<content:encoded><![CDATA[<p>After 2 InfoPath projects together with <abbr title="Microsoft Office SharePoint Server">MOSS</abbr> 2007, I noticed that I overlooked an important checkbox in the InfoPath publishing routine:<br />
<a href="http://blog.cassy.be/wp-content/uploads/2010/05/infopathPropertyPromotion.jpg" target="_blank"><img src="http://blog.cassy.be/wp-content/uploads/2010/05/infopathPropertyPromotion.jpg" alt="InfoPath Property Promotion / Demotion" title="InfoPath Property Promotion / Demotion" width="600" height="461" class="aligncenter size-full wp-image-429" /></a><br />
By checking it, you make the column editable in SharePoint&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cassy.be/infopath-making-fields-editable-in-sharepoint-property-promotiondemotion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PointFire and InfoPath are no friends</title>
		<link>http://blog.cassy.be/pointfire-and-infopath-are-no-friends/</link>
		<comments>http://blog.cassy.be/pointfire-and-infopath-are-no-friends/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 15:03:07 +0000</pubDate>
		<dc:creator>Cassy</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[ICT]]></category>

		<guid isPermaLink="false">http://blog.cassy.be/?p=374</guid>
		<description><![CDATA[Really, I spend the last 4 days searching why specific InfoPath 2007 web enabled forms would not work. When suddenly a colleague of mine decided to turn off PointFire translations on SharePoint, suddenly all forms work as they were designed to. Also the calender picker did it&#8217;s work. The error I received was: &#8220;There has [...]]]></description>
			<content:encoded><![CDATA[<p>Really, I spend the last 4 days searching why specific InfoPath 2007 web enabled forms would not work. When suddenly a colleague of mine decided to turn off PointFire translations on SharePoint, suddenly all forms work as they were designed to. Also the calender picker did it&#8217;s work.</p>
<p>The error I received was:<br />
&#8220;<strong>There has been an error while loading the form. A required resource could not be downloaded. To try to resume the download, refresh the page.</strong>&#8221;</p>
<p>These issues should be fixed in the newest (V2) release of PointFire, but yet &#8230;</p>
<p>&#8230; a good lesson to keep in mind: When developing in SharePoint, try to switch off Pointfire once in a while. (And try to avoid InfoPath as much as possible in your solutions).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cassy.be/pointfire-and-infopath-are-no-friends/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

