<?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>mylifeinaminute.com &#187; InfoPath</title>
	<atom:link href="http://www.mylifeinaminute.com/tag/infopath/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mylifeinaminute.com</link>
	<description>You can learn a lot in a minute</description>
	<lastBuildDate>Wed, 08 Sep 2010 01:14:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>InfoPath 2007 Contact Selector &#8211; Require a selection</title>
		<link>http://www.mylifeinaminute.com/2010/05/11/infopath-2007-contact-selector-require-a-selection/</link>
		<comments>http://www.mylifeinaminute.com/2010/05/11/infopath-2007-contact-selector-require-a-selection/#comments</comments>
		<pubDate>Tue, 11 May 2010 19:47:24 +0000</pubDate>
		<dc:creator>liquidpooled</dc:creator>
				<category><![CDATA[InfoPath]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=431</guid>
		<description><![CDATA[Updated: Click here for an example of how to achieve the same functionality without any code. The following solution will require a Full Trust form with code, but will allow for a Contact Selector to be placed on a browser-based InfoPath form which will consistently validate, requiring the selection of a user as well as allowing for [...]]]></description>
			<content:encoded><![CDATA[<p>Updated: Click <a title="Validate the Contact Selector in InfoPath" href="http://www.myriadtech.com.au/blog/Alana/Lists/Posts/Post.aspx?ID=13">here </a>for an example of how to achieve the same functionality without any code.</p>
<p>The following solution will require a Full Trust form with code, but will allow for a Contact Selector to be placed on a browser-based InfoPath form which will consistently validate, requiring the selection of a user as well as allowing for only one selection.</p>
<p>The code:</p>
<pre class="brush: csharp;">
public void supervisorEmployeeID_Changed(object sender, XmlEventArgs e)
{
     try
     {
          int supervisorCount = e.Site.SelectChildren(XPathNodeType.Element).Count;

          if (this.Errors.GetErrors(&quot;_supervisorCountError&quot;).Length &gt; 0)
               this.Errors.Delete(&quot;_supervisorCountError&quot;);

          if (supervisorCount &gt; 1)
               this.Errors.Add(e.Site, &quot;_supervisorCountError&quot;, &quot;You can only select one Manager&quot;);
          else if (supervisorCount &lt; 1)
               this.Errors.Add(e.Site, &quot;_supervisorCountError&quot;, &quot;You must select a Manager&quot;);
     }
     catch { }
}
</pre>
<p>The above is meant to serve as a reference and should be self-explanatory.</p>
<p><map name='google_ad_map_431_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/431?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_431_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=431&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2010%2F05%2F11%2Finfopath-2007-contact-selector-require-a-selection%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2010/05/11/infopath-2007-contact-selector-require-a-selection/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Exception: The content type is in use</title>
		<link>http://www.mylifeinaminute.com/2009/03/17/exception-the-content-type-is-in-use/</link>
		<comments>http://www.mylifeinaminute.com/2009/03/17/exception-the-content-type-is-in-use/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 13:53:14 +0000</pubDate>
		<dc:creator>liquidpooled</dc:creator>
				<category><![CDATA[InfoPath]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[Windows SharePoint Services]]></category>
		<category><![CDATA[Content Types]]></category>
		<category><![CDATA[moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=344</guid>
		<description><![CDATA[I&#8217;ve found that working with InfoPath is becoming more and more of a chore.  A form I&#8217;ve been working on has had its promoted columns changed a number of times (Side note: I would just love to have a defined specification). Today when I attempted to completely retract my form (inlcuding manually deleting the content [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve found that working with InfoPath is becoming more and more of a chore.  A form I&#8217;ve been working on has had its promoted columns changed a number of times (Side note: I would just love to have a defined specification).</p>
<p>Today when I attempted to completely retract my form (inlcuding manually deleting the content type associated with the form), I was presented with the always helpful error &#8220;<span style="color: red;"><em>The content type is in use</em></span>&#8220;.  This is by far one of the more helpful errors you will ever see from SharePoint.  Unfortunately it isn&#8217;t clear how to discover where the content type is actually in use.  A quick trip to the content database for the site collection you are working in can show us:</p>
<pre>
<pre class="brush: sql;">
DECLARE @ContentTypeName nvarchar(128)

SET @ContentTypeName='Content Type Name Here'

SELECT w.Title AS [Web Site], w.FullUrl AS [Web Url], al.tp_Title AS [List Title],
	ct2.*
FROM ContentTypes ct1
	JOIN ContentTypes ct2 ON LEFT(ct2.ContentTypeId, Len(ct1.ContentTypeId))=ct1.ContentTypeId
	LEFT OUTER JOIN dbo.ContentTypeUsage ctu ON LEFT(ctu.ContentTypeId, Len(ct2.ContentTypeId)) = ct2.ContentTypeId
	LEFT OUTER JOIN dbo.AllLists al ON ctu.ListId = al.tp_Id AND ctu.WebId=al.tp_WebId
	LEFT OUTER JOIN dbo.Webs w ON al.tp_WebId = w.Id WHERE ct1.ResourceDir=@ContentTypeName
</pre>
</pre>
<p>[Credit to <a href="http://social.msdn.microsoft.com/en-US/profile/?user=Curtis%20Ruppe%20_MicroStaff%20IT_&#038;referrer=http%3A//social.msdn.microsoft.com/Forums/en-US/sharepointadmin/thread/0a558f4f-cd1e-4432-85bb-caaa3a3b57ae/#sort=recent&#038;page=0&#038;filter=allcontent" target="_blank">Curtis Ruppe</a>]</p>
<p>Once we know where the content type is in use, deleting it through the GUI is a trivial matter.</p>
<p><map name='google_ad_map_344_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/344?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_344_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=344&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2009%2F03%2F17%2Fexception-the-content-type-is-in-use%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2009/03/17/exception-the-content-type-is-in-use/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>InfoPath Custom Initiation Form &#8220;stuck&#8221; on &#8220;Installing&#8221;</title>
		<link>http://www.mylifeinaminute.com/2009/03/09/infopath-custom-initiation-form-stuck-on-installing/</link>
		<comments>http://www.mylifeinaminute.com/2009/03/09/infopath-custom-initiation-form-stuck-on-installing/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 13:32:22 +0000</pubDate>
		<dc:creator>liquidpooled</dc:creator>
				<category><![CDATA[InfoPath]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[Windows SharePoint Services]]></category>
		<category><![CDATA[moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Windows Workflow Foundation]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=336</guid>
		<description><![CDATA[When developing custom InfoPath initiation forms for my workflows, I sometimes forget a crucial step when publishing the forms. If you enter an alternate location when publishing your form, the form state will become stuck on &#8220;Installing&#8221;. The moral of the story? When publishing a custom initiation form, be sure to leave the &#8220;Alternate&#8221; publishing [...]]]></description>
			<content:encoded><![CDATA[<p>When developing custom InfoPath initiation forms for my workflows, I sometimes forget a crucial step when publishing the forms. If you enter an alternate location when publishing your form, the form state will become stuck on &#8220;Installing&#8221;.</p>
<p>The moral of the story? When publishing a custom initiation form, be sure to leave the &#8220;Alternate&#8221; publishing location empty.</p>
<p><map name='google_ad_map_336_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/336?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_336_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=336&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2009%2F03%2F09%2Finfopath-custom-initiation-form-stuck-on-installing%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2009/03/09/infopath-custom-initiation-form-stuck-on-installing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
