<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>InfoPath Blog</title>
	<atom:link href="http://blueinfopath.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blueinfopath.wordpress.com</link>
	<description>by Silversands Associates</description>
	<lastBuildDate>Fri, 01 Apr 2011 07:27:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blueinfopath.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/c13803087a13bf688ec2fb706e090803?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>InfoPath Blog</title>
		<link>http://blueinfopath.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blueinfopath.wordpress.com/osd.xml" title="InfoPath Blog" />
	<atom:link rel='hub' href='http://blueinfopath.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to sum a field in a repeating table?</title>
		<link>http://blueinfopath.wordpress.com/2009/12/03/how-to-sum-a-field-in-a-repeating-table/</link>
		<comments>http://blueinfopath.wordpress.com/2009/12/03/how-to-sum-a-field-in-a-repeating-table/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 12:33:43 +0000</pubDate>
		<dc:creator>Frederik Van Lierde</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Repeating]]></category>
		<category><![CDATA[Repeating Table]]></category>
		<category><![CDATA[sum]]></category>

		<guid isPermaLink="false">http://blueinfopath.wordpress.com/?p=154</guid>
		<description><![CDATA[This question popuped on a forum, how to sum a field Total within a rpeating Table (So every row has a field Total and we want to total of it) This is pure 100% InfoPath and I post it as a reference. Solution Add a expressionbox (or textbox) outside the Repeating Table and set as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=154&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This question popuped on a forum, how to sum a field Total within a rpeating Table (So every row has a field Total and we want to total of it)</p>
<p>This is pure 100% InfoPath and I post it as a reference.</p>
<p><strong><span style="color:#993300;">Solution</span><br />
</strong>Add a expressionbox (or textbox) outside the Repeating Table and set as default value<br />
sum(my:group1/my:group2/my:Total)</p>
<p><a href="http://blueinfopath.files.wordpress.com/2009/12/infopath_sum_repeatingtable.jpg"><img class="alignnone size-full wp-image-156" title="InfoPath_Sum_RepeatingTable" src="http://blueinfopath.files.wordpress.com/2009/12/infopath_sum_repeatingtable.jpg?w=500&#038;h=375" alt="" width="500" height="375" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blueinfopath.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blueinfopath.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blueinfopath.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blueinfopath.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blueinfopath.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blueinfopath.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blueinfopath.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blueinfopath.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blueinfopath.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blueinfopath.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blueinfopath.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blueinfopath.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blueinfopath.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blueinfopath.wordpress.com/154/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=154&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blueinfopath.wordpress.com/2009/12/03/how-to-sum-a-field-in-a-repeating-table/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/057cba1b52bdc483039a13354e7ddb94?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Frederik Van Lierde</media:title>
		</media:content>

		<media:content url="http://blueinfopath.files.wordpress.com/2009/12/infopath_sum_repeatingtable.jpg" medium="image">
			<media:title type="html">InfoPath_Sum_RepeatingTable</media:title>
		</media:content>
	</item>
		<item>
		<title>InfoPath Resources example, Cascading dropdowns</title>
		<link>http://blueinfopath.wordpress.com/2009/11/30/infopath-resources-example-cascading-dropdowns/</link>
		<comments>http://blueinfopath.wordpress.com/2009/11/30/infopath-resources-example-cascading-dropdowns/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 19:29:51 +0000</pubDate>
		<dc:creator>Frederik Van Lierde</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blueinfopath.wordpress.com/?p=148</guid>
		<description><![CDATA[Sometimes you need cascading dropdown boxes with predefined values, ofcourse it would be great to add this to a database or link it to a webservice, but it is not always possible. A solution to this is to use Resources in InfoPath. Example The example is use here is coming from Darrin E. (otherwhise I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=148&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://blueinfopath.files.wordpress.com/2009/11/resources_1.jpg"><img class="alignnone size-full wp-image-149" title="Resources_1" src="http://blueinfopath.files.wordpress.com/2009/11/resources_1.jpg?w=450&#038;h=579" alt="" width="450" height="579" /></a><a href="http://blueinfopath.files.wordpress.com/2009/11/resources_2.jpg"><img class="alignnone size-full wp-image-150" title="Resources_2" src="http://blueinfopath.files.wordpress.com/2009/11/resources_2.jpg?w=500&#038;h=334" alt="" width="500" height="334" /></a>Sometimes you need cascading dropdown boxes with predefined values, ofcourse it would be great to add this to a database or link it to a webservice, but it is not always possible.</p>
<p>A solution to this is to use Resources in InfoPath.</p>
<p><strong>Example<br />
</strong>The example is use here is coming from Darrin E. (otherwhise I had to invent some case myself)</p>
<p>Combo1 will be filled in with some predefined values (Dairy, Meats, Cans), depending on the value selected in this combo 1, predefined values in combo 2 will be showed.  No external webservice, no database connection, no sharepoint. Ex. when Dairy is selected, combo 2 should contain Lowfat, 2% and whole milk, if meat is selected, beef..pork&#8230; should be showed in combo 2 etc.</p>
<p>The problem is not to create cascading dropdown boxes, many people explain this on the internet., but we are going to explain how to do this with resources</p>
<p>1. Create an xml with the data<br />
     &lt;root&gt;<br />
  &lt;group1&gt;<br />
    &lt;combo1&gt;Dairy&lt;/combo1&gt;<br />
    &lt;combo2&gt;Lowfat, 2%&lt;/combo2&gt;<br />
  &lt;/group1&gt;<br />
  &lt;group1&gt;<br />
    &lt;combo1&gt;Dairy&lt;/combo1&gt;<br />
    &lt;combo2&gt;whole milk&lt;/combo2&gt;<br />
  &lt;/group1&gt;<br />
  &lt;group1&gt;<br />
    &lt;combo1&gt;Meats&lt;/combo1&gt;<br />
    &lt;combo2&gt;beef&lt;/combo2&gt;<br />
  &lt;/group1&gt;<br />
  &lt;group1&gt;<br />
    &lt;combo1&gt;Meats&lt;/combo1&gt;<br />
    &lt;combo2&gt;Pork&lt;/combo2&gt;<br />
  &lt;/group1&gt;<br />
  &lt;group1&gt;<br />
    &lt;combo1&gt;Cans&lt;/combo1&gt;<br />
    &lt;combo2&gt;large&lt;/combo2&gt;<br />
  &lt;/group1&gt;<br />
&lt;/root&gt;</p>
<p>&nbsp;</p>
<p>2. Create a new InfoPath template, add 2 combo boxex.  Combo1 and Combo2<br />
3. Click on the menu Tools -&gt; <strong>Resource Files</strong><br />
4. Click <strong>Add</strong> and select the previous created Xml file<br />
5. Click <strong>Ok</strong> to close the popup box<br />
6. Click on Tools -&gt; <strong>Data Connections</strong><br />
7. Click <strong>Add</strong><br />
8. Click Receive <strong>Data</strong> + <strong>Next</strong><br />
9. Select<strong> Xml Document</strong> + <strong>Next</strong><br />
10.Click <strong>resource Files</strong> button and select the previous add resource file<br />
11. Click Next and Select the checkbox &#8220;<strong>Automatically  retrieve data when the form is opened</strong>&#8220;<br />
12. Click the <strong>Finish</strong> button<br />
Click the <strong>Close</strong> button</p>
<p>This is it.  No we have to bind the dropdown boxes to the secondary DataSource.<br />
Using filters in the Combo2 and don&#8217;t forget to check &#8220;Show only entries with unique display name&#8221; for combo 1</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blueinfopath.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blueinfopath.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blueinfopath.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blueinfopath.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blueinfopath.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blueinfopath.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blueinfopath.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blueinfopath.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blueinfopath.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blueinfopath.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blueinfopath.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blueinfopath.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blueinfopath.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blueinfopath.wordpress.com/148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=148&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blueinfopath.wordpress.com/2009/11/30/infopath-resources-example-cascading-dropdowns/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/057cba1b52bdc483039a13354e7ddb94?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Frederik Van Lierde</media:title>
		</media:content>

		<media:content url="http://blueinfopath.files.wordpress.com/2009/11/resources_1.jpg" medium="image">
			<media:title type="html">Resources_1</media:title>
		</media:content>

		<media:content url="http://blueinfopath.files.wordpress.com/2009/11/resources_2.jpg" medium="image">
			<media:title type="html">Resources_2</media:title>
		</media:content>
	</item>
		<item>
		<title>Weekday name function in InfoPath, without code</title>
		<link>http://blueinfopath.wordpress.com/2009/11/22/weekday-name-function-in-infopath/</link>
		<comments>http://blueinfopath.wordpress.com/2009/11/22/weekday-name-function-in-infopath/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 00:14:25 +0000</pubDate>
		<dc:creator>Frederik Van Lierde</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blueinfopath.wordpress.com/?p=142</guid>
		<description><![CDATA[InfoPath isn&#8217;t strong with dates, but previous post explained already with InfoPath we can do date manipulations. This blog goes 1 step further, how can we display the name of the day, when selecting a date. Ex. Select with the datepicker 22-11-2009, thefield should show Sunday Excel has such a function, InfoPath not. So this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=142&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>InfoPath isn&#8217;t strong with dates, but previous post explained already with InfoPath we can do date manipulations.</p>
<p>This blog goes 1 step further, how can we display the name of the day, when selecting a date.</p>
<p>Ex. Select with the datepicker 22-11-2009, thefield should show <strong>Sunday</strong><br />
Excel has such a function, InfoPath not.</p>
<p>So this is the way how to do it, out of the box</p>
<p>1. Add the DatePicker field (myDate).<br />
2. Use the previous post to create 3 fields Day, Month and Year<br />
     Link: <a href="http://blueinfopath.wordpress.com/2009/11/20/date-field-to-3-textboxes/">http://blueinfopath.wordpress.com/2009/11/20/date-field-to-3-textboxes/</a><br />
3. Add a temp field (to make it more readable).  This temp field can be set visible = false;<br />
 4. Add the following forula to the temp field</p>
<p>(../my:Day + (../my:Year &#8211; floor((14 &#8211; ../my:Month) div 12)) + floor((../my:Year &#8211; floor((14 &#8211; ../my:Month) div 12)) div 4) &#8211; floor((../my:Year &#8211; floor((14 &#8211; ../my:Month) div 12)) div 100) + floor((../my:Year &#8211; number((14 &#8211; ../my:Month) div 12)) div 400) + floor(31 * (../my:Month + (12 * floor((14 &#8211; ../my:Month) div 12)) &#8211; 2) div 12)) mod 7</p>
<p>5. Add 7 rules to the temp field<br />
      Condition:  temp  is equal to 1<br />
      Action: Set Field WeekDay to Monday<br />
6. Repeat point 5 , 6 times, changing the condition and Action</p>
<p>0 = Sunday<br />
1= Monday<br />
2 = Tuesday<br />
&#8230;<br />
6 = Saturday</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blueinfopath.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blueinfopath.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blueinfopath.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blueinfopath.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blueinfopath.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blueinfopath.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blueinfopath.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blueinfopath.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blueinfopath.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blueinfopath.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blueinfopath.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blueinfopath.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blueinfopath.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blueinfopath.wordpress.com/142/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=142&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blueinfopath.wordpress.com/2009/11/22/weekday-name-function-in-infopath/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/057cba1b52bdc483039a13354e7ddb94?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Frederik Van Lierde</media:title>
		</media:content>
	</item>
		<item>
		<title>Date Field to 3 textboxes</title>
		<link>http://blueinfopath.wordpress.com/2009/11/20/date-field-to-3-textboxes/</link>
		<comments>http://blueinfopath.wordpress.com/2009/11/20/date-field-to-3-textboxes/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 09:34:30 +0000</pubDate>
		<dc:creator>Frederik Van Lierde</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Date]]></category>
		<category><![CDATA[InfoPath]]></category>
		<category><![CDATA[OOB]]></category>
		<category><![CDATA[out-of-the-box]]></category>

		<guid isPermaLink="false">http://blueinfopath.wordpress.com/?p=138</guid>
		<description><![CDATA[Suppose I have 1 date field and I want to split the day, month and year into 3 numeric textboxes Field 1: MyDate Field 2: MyDay Field 3: MyMonth Field 4: MyYear Solution: 1. Set Default Value of Field MyDay to normalize-space(substring-after(substring-after(../my:MyDate, &#8220;-&#8221;), &#8220;-&#8221;)) 2. Set Default Value of Field MyMonth to normalize-space(substring-before(substring-after(../my:MyDate, &#8220;-&#8221;), &#8220;-&#8221;)) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=138&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Suppose I have 1 date field and I want to split the day, month and year into 3 numeric textboxes</p>
<p>Field 1: MyDate<br />
Field 2: MyDay<br />
Field 3: MyMonth<br />
Field 4: MyYear</p>
<p><strong><span style="color:#993300;">Solution:<br />
</span></strong>1. Set Default Value of Field MyDay to <em>normalize-space(substring-after(substring-after(../my:MyDate, &#8220;-&#8221;), &#8220;-&#8221;))</em><br />
2. Set Default Value of Field MyMonth to <em>normalize-space(substring-before(substring-after(../my:MyDate, &#8220;-&#8221;), &#8220;-&#8221;))</em><br />
3. Set Default Value of Field MyYear to <em>normalize-space(substring-before(../my:MyDate, &#8220;-&#8221;))<br />
</em>4. Test your InfoPath Form</p>
<p><strong><span style="color:#993300;">Explanation</span></strong><br />
As the date is always saved in the same way in the XML file, we can use substring-before and substriong-after to get the information.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blueinfopath.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blueinfopath.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blueinfopath.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blueinfopath.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blueinfopath.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blueinfopath.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blueinfopath.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blueinfopath.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blueinfopath.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blueinfopath.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blueinfopath.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blueinfopath.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blueinfopath.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blueinfopath.wordpress.com/138/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=138&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blueinfopath.wordpress.com/2009/11/20/date-field-to-3-textboxes/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/057cba1b52bdc483039a13354e7ddb94?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Frederik Van Lierde</media:title>
		</media:content>
	</item>
		<item>
		<title>3 dropdown boxes to Date, without code</title>
		<link>http://blueinfopath.wordpress.com/2009/11/20/3-dropdown-boxes-to-date-without-code/</link>
		<comments>http://blueinfopath.wordpress.com/2009/11/20/3-dropdown-boxes-to-date-without-code/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 09:17:08 +0000</pubDate>
		<dc:creator>Frederik Van Lierde</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Date]]></category>
		<category><![CDATA[InfoPath]]></category>
		<category><![CDATA[OOB]]></category>
		<category><![CDATA[out-of-the-box]]></category>

		<guid isPermaLink="false">http://blueinfopath.wordpress.com/?p=134</guid>
		<description><![CDATA[Suppose I have 3 fields, Field 1: Day Field 2: Month Field 3: Year We want to concatenate this to a Date Field Solution: 1. Add a Dropdown Days to the list 2. Add entries from 1 -&#62; 31.  Don&#8217;t foget the leading zero for the first 9 days 3. Do the same with the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=134&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Suppose I have 3 fields,<br />
Field 1: Day<br />
Field 2: Month<br />
Field 3: Year</p>
<p>We want to concatenate this to a Date Field</p>
<p><strong><span style="color:#993300;">Solution:</span></strong><br />
1. Add a Dropdown Days to the list<br />
2. Add entries from 1 -&gt; 31.  Don&#8217;t foget the leading zero for the first 9 days<br />
3. Do the same with the months and years, Be sure that the Value of the entry has the leading zero for the month up to september<br />
     Ex.  March  : Value 03,  Display Name: 3<br />
4. Add a Date Field to the form<br />
5. Set as Default Value <strong>concat(../my:year, &#8220;-&#8221;, ../my:month, &#8220;-&#8221;, ../my:day)</strong></p>
<p><strong><span style="color:#ff6600;">   When using InfoPath 2003, and you get an error while using the formula, try using ; instead of ,<br />
   <strong>concat(../my:year; &#8220;-&#8221;; ../my:month; &#8220;-&#8221;;</strong></span></strong><strong><strong><span style="color:#ff6600;"> ../my:day)<br />
</span></strong></strong><strong><br />
</strong>6. Test the form</p>
<p><a href="http://blueinfopath.files.wordpress.com/2009/11/infopath_3dropdown_date.jpg"><img class="alignnone size-full wp-image-135" title="InfoPath_3Dropdown_Date" src="http://blueinfopath.files.wordpress.com/2009/11/infopath_3dropdown_date.jpg?w=500&#038;h=374" alt="" width="500" height="374" /></a></p>
<p><span style="color:#993300;"><strong>Explanation:<br />
</strong></span>A date field is saved in the XML as YEAR-MONTH-DAY<br />
The Month and Date has leading zero, zo the lenght of those 2 parts is always 2<br />
By setting the leading zero in the value of the dropdown, we can do it easily out of the box</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blueinfopath.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blueinfopath.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blueinfopath.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blueinfopath.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blueinfopath.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blueinfopath.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blueinfopath.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blueinfopath.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blueinfopath.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blueinfopath.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blueinfopath.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blueinfopath.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blueinfopath.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blueinfopath.wordpress.com/134/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=134&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blueinfopath.wordpress.com/2009/11/20/3-dropdown-boxes-to-date-without-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/057cba1b52bdc483039a13354e7ddb94?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Frederik Van Lierde</media:title>
		</media:content>

		<media:content url="http://blueinfopath.files.wordpress.com/2009/11/infopath_3dropdown_date.jpg" medium="image">
			<media:title type="html">InfoPath_3Dropdown_Date</media:title>
		</media:content>
	</item>
		<item>
		<title>How to add Save Action to a Button, no code</title>
		<link>http://blueinfopath.wordpress.com/2009/11/12/how-to-add-save-action-to-a-button-no-code/</link>
		<comments>http://blueinfopath.wordpress.com/2009/11/12/how-to-add-save-action-to-a-button-no-code/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 13:17:24 +0000</pubDate>
		<dc:creator>Frederik Van Lierde</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[codeless]]></category>
		<category><![CDATA[out-of-the-box]]></category>
		<category><![CDATA[Save Action Button]]></category>
		<category><![CDATA[Save As]]></category>

		<guid isPermaLink="false">http://blueinfopath.wordpress.com/?p=128</guid>
		<description><![CDATA[InfoPath offers to save the file in the menu and in the toolbar. Sometimes we want to have this functionality related to a button on the form. In the first view, InfoPath doesn&#8217;t has a rule &#8216;Save Document&#8217; like it has &#8216;Submit&#8217; Here is the way how to do it, without code: 1. Add a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=128&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>InfoPath offers to save the file in the menu and in the toolbar.<br />
Sometimes we want to have this functionality related to a button on the form.<br />
In the first view, InfoPath doesn&#8217;t has a rule &#8216;Save Document&#8217; like it has &#8216;Submit&#8217;</p>
<p>Here is the way how to do it, without code:</p>
<p>1. Add a button on the Form<br />
2. Change the Description to <strong>Save</strong><br />
3. Go to the <strong>Button Properties<br />
</strong>4. Click the <strong>Rules&#8230; </strong>button<br />
5.  Click the <strong>Add </strong>button<br />
6. Change the Name to <strong>Save Document<br />
</strong>7. Click the<strong> Add Action</strong> button<br />
8. Select <strong>Close the form</strong> item from the Action Dropdown list<br />
9. Be sure the checkbox &#8216;<strong>If changes have not been saved, prompt the user to save&#8217; </strong>is checked<br />
10. Click all OK button until all popup screens are closed<br />
11. Test the form,</p>
<div><strong>not with preview!</strong></div>
<div><strong> </strong></div>
<div><strong><a href="http://blueinfopath.files.wordpress.com/2009/11/ip_actionsave_codeless.jpg"><img class="alignnone size-full wp-image-129" title="IP_ActionSave_CodeLess" src="http://blueinfopath.files.wordpress.com/2009/11/ip_actionsave_codeless.jpg?w=500&#038;h=327" alt="IP_ActionSave_CodeLess" width="500" height="327" /></a></strong><strong>
<p>&nbsp;</p>
<p></strong></p>
<p>What will happen<br />
1. When the user fills in the form the first time, and the user clicks on the save button, a Save AS File Dialog will be showed, the user can give a name, select the path etc.<br />
2. When the user re-opens the InfoPath Form, updates the form and click the save button, the file will be saved automatically.</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blueinfopath.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blueinfopath.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blueinfopath.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blueinfopath.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blueinfopath.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blueinfopath.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blueinfopath.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blueinfopath.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blueinfopath.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blueinfopath.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blueinfopath.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blueinfopath.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blueinfopath.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blueinfopath.wordpress.com/128/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=128&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blueinfopath.wordpress.com/2009/11/12/how-to-add-save-action-to-a-button-no-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/057cba1b52bdc483039a13354e7ddb94?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Frederik Van Lierde</media:title>
		</media:content>

		<media:content url="http://blueinfopath.files.wordpress.com/2009/11/ip_actionsave_codeless.jpg" medium="image">
			<media:title type="html">IP_ActionSave_CodeLess</media:title>
		</media:content>
	</item>
		<item>
		<title>Headers and Data in Print View</title>
		<link>http://blueinfopath.wordpress.com/2009/11/11/headers-and-data-in-print-view/</link>
		<comments>http://blueinfopath.wordpress.com/2009/11/11/headers-and-data-in-print-view/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 08:31:56 +0000</pubDate>
		<dc:creator>Frederik Van Lierde</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[InfoPath]]></category>
		<category><![CDATA[OOB]]></category>
		<category><![CDATA[out-of-the-box]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[print header]]></category>

		<guid isPermaLink="false">http://blueinfopath.wordpress.com/?p=124</guid>
		<description><![CDATA[A question came up how to print customer details on everypage when printing an InfoPath Form, while on the InfoPath Form w have these details only once. Follow the next steps to reach this with InfoPath (Tested with 2007) 1. Create a Print View of the InfoPath you like to print 2. Select the newly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=124&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A question came up how to print customer details on everypage when printing an InfoPath Form, while on the InfoPath Form w have these details only once.</p>
<p>Follow the next steps to reach this with InfoPath (Tested with 2007)</p>
<p>1. Create a <strong>Print View</strong> of the InfoPath you like to print<br />
2. Select the newly Created <strong>Print View</strong> and click <strong>View Properties<br />
</strong>3. Click on the <strong>Print Settings tab<br />
</strong>4. Click the <strong>Header&#8230;</strong> button<br />
5. Make up the Header.  To add a field, select <strong>Field&#8230; </strong>in the <strong>Insert AutoText </strong>Dropdownlist</p>
<p><a href="http://blueinfopath.files.wordpress.com/2009/11/infopathprintheaders.jpg"><img class="alignnone size-full wp-image-125" title="InfoPathPrintHeaders" src="http://blueinfopath.files.wordpress.com/2009/11/infopathprintheaders.jpg?w=500&#038;h=220" alt="InfoPathPrintHeaders" width="500" height="220" /></a></p>
<p>Someone can test this in InfoPath 2003?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blueinfopath.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blueinfopath.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blueinfopath.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blueinfopath.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blueinfopath.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blueinfopath.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blueinfopath.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blueinfopath.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blueinfopath.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blueinfopath.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blueinfopath.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blueinfopath.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blueinfopath.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blueinfopath.wordpress.com/124/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=124&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blueinfopath.wordpress.com/2009/11/11/headers-and-data-in-print-view/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/057cba1b52bdc483039a13354e7ddb94?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Frederik Van Lierde</media:title>
		</media:content>

		<media:content url="http://blueinfopath.files.wordpress.com/2009/11/infopathprintheaders.jpg" medium="image">
			<media:title type="html">InfoPathPrintHeaders</media:title>
		</media:content>
	</item>
		<item>
		<title>How to validate correct email address input</title>
		<link>http://blueinfopath.wordpress.com/2009/11/09/how-to-validate-correct-email-address-input/</link>
		<comments>http://blueinfopath.wordpress.com/2009/11/09/how-to-validate-correct-email-address-input/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 15:24:46 +0000</pubDate>
		<dc:creator>Frederik Van Lierde</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[InfoPath; Data Validation; Email; Email Validation]]></category>

		<guid isPermaLink="false">http://blueinfopath.wordpress.com/?p=118</guid>
		<description><![CDATA[InfoPath is a great tool for input, but one of the great futures is the fact of using data validation in an easy way. An question that comes back in many InfoPath Form is how to be sure that the email address entered by the user is in a correct format? Follow the next steps: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=118&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://blueinfopath.files.wordpress.com/2009/11/infopathemailnotcorrect.jpg"></a>InfoPath is a great tool for input, but one of the great futures is the fact of using data validation in an easy way.</p>
<p>An question that comes back in many InfoPath Form is how to be sure that the email address entered by the user is in a correct format?</p>
<p>Follow the next steps:</p>
<p>1. Right Click the Textbox<br />
2. Select <strong>Data Validation<br />
</strong>3. Click the <strong>Add</strong> button<br />
4. The first dropdown, select the field (standard it is the current field)<br />
5. The second dropdown, select <strong>does not match pattern<br />
</strong>6. The third dropdown, select <strong>Select pattern&#8230;<br />
</strong><br />
<a href="http://blueinfopath.files.wordpress.com/2009/11/infopathemailnotcorrect1.jpg"><img class="alignnone size-full wp-image-120" title="InfoPathEmailNotCorrect" src="http://blueinfopath.files.wordpress.com/2009/11/infopathemailnotcorrect1.jpg?w=500&#038;h=188" alt="InfoPathEmailNotCorrect" width="500" height="188" /></a></p>
<p>7. Select <strong>Custom Pattern</strong><br />
8.  Enter <strong>[a-z0-9]+@[a-z0-9]+\.[a-z]+</strong> in the Custom Pattern textBox</p>
<p><a href="http://blueinfopath.files.wordpress.com/2009/11/infopathemailnotcorrectpattern.jpg"><img class="alignnone size-full wp-image-121" title="InfoPathEmailNotCorrectPattern" src="http://blueinfopath.files.wordpress.com/2009/11/infopathemailnotcorrectpattern.jpg?w=300&#038;h=273" alt="InfoPathEmailNotCorrectPattern" width="300" height="273" /></a></p>
<p>9. Click the Ok buttons untill all screens are closed.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blueinfopath.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blueinfopath.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blueinfopath.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blueinfopath.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blueinfopath.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blueinfopath.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blueinfopath.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blueinfopath.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blueinfopath.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blueinfopath.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blueinfopath.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blueinfopath.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blueinfopath.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blueinfopath.wordpress.com/118/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=118&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blueinfopath.wordpress.com/2009/11/09/how-to-validate-correct-email-address-input/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/057cba1b52bdc483039a13354e7ddb94?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Frederik Van Lierde</media:title>
		</media:content>

		<media:content url="http://blueinfopath.files.wordpress.com/2009/11/infopathemailnotcorrect1.jpg" medium="image">
			<media:title type="html">InfoPathEmailNotCorrect</media:title>
		</media:content>

		<media:content url="http://blueinfopath.files.wordpress.com/2009/11/infopathemailnotcorrectpattern.jpg" medium="image">
			<media:title type="html">InfoPathEmailNotCorrectPattern</media:title>
		</media:content>
	</item>
		<item>
		<title>DateDifference without Code</title>
		<link>http://blueinfopath.wordpress.com/2009/11/03/datedifference-without-code/</link>
		<comments>http://blueinfopath.wordpress.com/2009/11/03/datedifference-without-code/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 12:51:05 +0000</pubDate>
		<dc:creator>Frederik Van Lierde</dc:creator>
				<category><![CDATA[InfoPath]]></category>
		<category><![CDATA[InfoPath Forms]]></category>
		<category><![CDATA[Repeating Table]]></category>
		<category><![CDATA[codeless]]></category>
		<category><![CDATA[date difference]]></category>
		<category><![CDATA[datediff]]></category>
		<category><![CDATA[out-of-the-box]]></category>

		<guid isPermaLink="false">http://blueinfopath.wordpress.com/?p=113</guid>
		<description><![CDATA[This is a great Alex Pojidaev&#8217;s solution.  i tested it and it works. orginal post: http://alecpojidaev.wordpress.com/2008/12/30/infopath-codeless-programming-walkthrough-2/ As you all know, DateDiff doesn&#8217;t exists in InfoPath, so do we have to do when we want to calculate the number of days between 2 given dates?  Tnx Alex Pojidaev&#8217;s hto share this with the world. What do [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=113&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a great Alex Pojidaev&#8217;s solution.  i tested it and it works.<br />
orginal post: <a rel="nofollow" href="http://alecpojidaev.wordpress.com/2008/12/30/infopath-codeless-programming-walkthrough-2/">http://alecpojidaev.wordpress.com/2008/12/30/infopath-codeless-programming-walkthrough-2/</a></p>
<p>As you all know, DateDiff doesn&#8217;t exists in InfoPath, so do we have to do when we want to calculate the number of days between 2 given dates?  Tnx Alex Pojidaev&#8217;s hto share this with the world.</p>
<p>What do we need<br />
- 2 date fields in the datasource, startDate, endDate<br />
- 1 text field dayDifference</p>
<p>Step by Step<br />
- Go to the datasource of your InfoPath Form<br />
- Go to the properties of <strong>startDate</strong> field, and add a rule<br />
            Condition:   endDate is not blank<br />
            Actions:  Set field dayDifference = 0;4096</p>
<p>- Go to the properties of <strong>endDate</strong> field, and add a rule<br />
            Condition:   startDate is not blank<br />
            Actions:  Set field dayDifference = 0;4096</p>
<p>- Go to the properties of <strong>dayDifference </strong>field, and add 2 rules<br />
<strong>       RULE 1</strong><br />
            Condition:   The Expression : xdDate:AddDays(../my:startDate, substring-before(., &#8220;;&#8221;)) != ../my:endDate AND<br />
                                     DayDifference contains ;<br />
            Actions:  Set field dayDifference = concat(substring-before(., &#8220;;&#8221;) + substring-after(., &#8220;;&#8221;) * ((translate(addDays<br />
                         (startDate, substring-before(., &#8220;;&#8221;)), &#8220;-&#8221;, &#8220;&#8221;) &lt; translate(endDate, &#8220;-&#8221;, &#8220;&#8221;)) * 2 &#8211; 1), &#8220;;&#8221;, substring-after(., &#8220;;&#8221;) / 2)<br />
       (Don&#8217;t forget the select the Edit Xpath checkbox)</p>
<p><strong>  RULE 2<br />
</strong>             Condition:   DayDifference contains ;<br />
            Actions:  Set field dayDifference = substring-before(., &#8220;;&#8221;)<a href="http://blueinfopath.files.wordpress.com/2009/11/datediffcodeless.jpg"></a></p>
<p>Your form is ready, it works also in repeating controls.</p>
<p><a href="http://blueinfopath.files.wordpress.com/2009/11/datediffcodeless.jpg"><img title="DateDiffCodeless" src="http://blueinfopath.files.wordpress.com/2009/11/datediffcodeless.jpg?w=500&#038;h=375" alt="DateDiffCodeless" width="500" height="375" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blueinfopath.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blueinfopath.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blueinfopath.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blueinfopath.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blueinfopath.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blueinfopath.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blueinfopath.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blueinfopath.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blueinfopath.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blueinfopath.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blueinfopath.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blueinfopath.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blueinfopath.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blueinfopath.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=113&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blueinfopath.wordpress.com/2009/11/03/datedifference-without-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/057cba1b52bdc483039a13354e7ddb94?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Frederik Van Lierde</media:title>
		</media:content>

		<media:content url="http://blueinfopath.files.wordpress.com/2009/11/datediffcodeless.jpg" medium="image">
			<media:title type="html">DateDiffCodeless</media:title>
		</media:content>
	</item>
		<item>
		<title>Populate repeating table with selections in 2 Multiple-Selection</title>
		<link>http://blueinfopath.wordpress.com/2009/10/23/populate-repeating-table-with-selections-in-2-multiple-selection/</link>
		<comments>http://blueinfopath.wordpress.com/2009/10/23/populate-repeating-table-with-selections-in-2-multiple-selection/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 09:43:27 +0000</pubDate>
		<dc:creator>Frederik Van Lierde</dc:creator>
				<category><![CDATA[InfoPath]]></category>
		<category><![CDATA[InfoPath Forms]]></category>
		<category><![CDATA[Repeating Table]]></category>
		<category><![CDATA[autopopulate]]></category>
		<category><![CDATA[Code Behind]]></category>
		<category><![CDATA[fill in]]></category>
		<category><![CDATA[multipl^-selection]]></category>
		<category><![CDATA[populate]]></category>
		<category><![CDATA[Repeating]]></category>

		<guid isPermaLink="false">http://blueinfopath.wordpress.com/?p=106</guid>
		<description><![CDATA[How to populate a repeating table (or other control), with values of  2 multiple-selection controls The most interesting part here is how to add a new record to the repeating node. Solution In this case we need to use some C# or VB.net in the code behind 1. Right-Click Multiple-Selection Control 1 and select Programming&#8230; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=106&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>How to populate a repeating table (or other control), with values of  2 multiple-selection controls<br />
The most interesting part here is how to add a new record to the repeating node.</p>
<p><span style="color:#993300;"><strong>Solution<br />
</strong></span>In this case we need to use some C# or VB.net in the code behind</p>
<p>1. Right-Click Multiple-Selection Control 1 and select <strong>Programming&#8230; </strong>-&gt; <strong>Changed Event<br />
</strong>2. Change the name of the function to <strong>PopulateRepeatingControl<br />
</strong>3. Enter the following code<br />
<span style="color:#008000;font-size:x-small;"><span style="color:#008000;font-size:x-small;"><br />
<em>&#8216;&#8211; Create new record &#8211;<br />
</em></span></span><em><span style="font-size:x-small;"><span style="color:#000000;">CurrentView.ExecuteAction(ActionType.XCollectionInsert</span>,</span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">&#8220;group9_9&#8243;</span></span></em><span style="font-size:x-small;"><em>)<br />
</em></span><em><span style="color:#008000;font-size:x-small;"><span style="color:#008000;font-size:x-small;">&#8216;&#8211; fill in newly created record&#8211;<br />
</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">Dim</span></span><span style="font-size:x-small;"> <span style="color:#000000;">root </span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">As</span></span></em><em><span style="font-size:x-small;"> <span style="color:#000000;">XPathNavigator </span><span style="color:#000000;">= MainDataSource.CreateNavigator()</span><br />
<span style="color:#000000;">root.SelectSingleNode(</span></span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">&#8220;/my:myFields/my:group8/my:group9[last()]/my:field7&#8243;</span></span><span style="font-size:x-small;">, <span style="color:#000000;">NamespaceManager).SetValue(e.Site.Value)</span></span></em></p>
<p><span style="font-size:x-small;"><span style="color:#000000;">4. Right-Click Multiple-Selection Control 2 and select <strong>Programming&#8230; </strong>-&gt; <strong>Changed Event<br />
</strong>5. Delete the function<br />
6. Change the AddHandler min the </span></span><span style="font-size:x-small;">InternalStartup function of both Multiple-Selection Fields to <strong>PopulateRepeatingControl<br />
</strong></span></p>
<p><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><font size="2" color="#0000ff"><font size="2" color="#0000ff"><em>AddHandler </em></p>
<p></font></font></span><font size="2" color="#0000ff"> </p>
<p></font></span></p>
<p><em><span style="font-size:x-small;">EventManager.XmlEvents(</span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">&#8220;/my:myFields/my:group3/my:field4&#8243;</span></span><span style="font-size:x-small;">).Changed, </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">AddressOf</span></span></em><em><span style="font-size:x-small;">  <strong>PopulateRepeatingControl</strong><br />
</span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">AddHandler</span></span><span style="font-size:x-small;"> EventManager.XmlEvents(</span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">&#8220;/my:myFields/my:group4/my:field5&#8243;</span></span><span style="font-size:x-small;">).Changed, </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">AddressOf</span></span><span style="font-size:x-small;"> <strong>PopulateRepeatingControl</strong></span></em></p>
<p><strong><span style="color:#993300;">Explanation</span><br />
</strong>To add a new record to the repeating table, you need to find out the EmlToEdit value of the node<br />
In our example it is group9_9<br />
How to fiind out this value?  Read my post on<br />
<a href="http://blueinfopath.wordpress.com/2009/01/19/automatically-add-new-row-to-repeating-control/">http://blueinfopath.wordpress.com/2009/01/19/automatically-add-new-row-to-repeating-control/</a></p>
<p>By selecting the field, and adding last() as the indexer, you will fillin always the last record of the repeating group.<br />
Don&#8217;t forget to change the xpath with the one of your field.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/blueinfopath.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/blueinfopath.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/blueinfopath.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/blueinfopath.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/blueinfopath.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/blueinfopath.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/blueinfopath.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/blueinfopath.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/blueinfopath.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/blueinfopath.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/blueinfopath.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/blueinfopath.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/blueinfopath.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/blueinfopath.wordpress.com/106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blueinfopath.wordpress.com&amp;blog=8959689&amp;post=106&amp;subd=blueinfopath&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blueinfopath.wordpress.com/2009/10/23/populate-repeating-table-with-selections-in-2-multiple-selection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/057cba1b52bdc483039a13354e7ddb94?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Frederik Van Lierde</media:title>
		</media:content>
	</item>
	</channel>
</rss>
