<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Complex Data Validation</title><link>http://blogs.msdn.com/b/infopath/archive/2006/10/25/complex-data-validation.aspx</link><description>How do you test more than 5 parameters? How do you group parameters? One answer to both questions, is to have multiple validations in one statement. We'll look into these problems in detail in the case studies below. 
 Case Study #1 
 Problem : a form</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Complex Data Validation</title><link>http://blogs.msdn.com/b/infopath/archive/2006/10/25/complex-data-validation.aspx#10075483</link><pubDate>Wed, 13 Oct 2010 19:23:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10075483</guid><dc:creator>Matthew Stenger</dc:creator><description>&lt;p&gt;p.s. Clarification, my last comment is in the context of InfoPath Designer 2010. Thanks.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10075483" width="1" height="1"&gt;</description></item><item><title>re: Complex Data Validation</title><link>http://blogs.msdn.com/b/infopath/archive/2006/10/25/complex-data-validation.aspx#10075480</link><pubDate>Wed, 13 Oct 2010 19:20:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10075480</guid><dc:creator>Matthew Stenger</dc:creator><description>&lt;p&gt;How to create validation rule to accommodate the following:&lt;/p&gt;
&lt;p&gt;&amp;quot;Account number must be *between* pattern 40\d\d\d\d\d? and pattern 50\d\d\d\d\d?&amp;quot;&lt;/p&gt;
&lt;p&gt;Does a numerical range ruleset require VB?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10075480" width="1" height="1"&gt;</description></item><item><title>re: Complex Data Validation</title><link>http://blogs.msdn.com/b/infopath/archive/2006/10/25/complex-data-validation.aspx#10034700</link><pubDate>Tue, 06 Jul 2010 00:43:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10034700</guid><dc:creator>Jerkham</dc:creator><description>&lt;p&gt;Looks like I&amp;#39;m about 4 years late with this comment, but it would make a lot more sense to use regular expressions for these specific examples. &amp;nbsp;Something like...&lt;/p&gt;
&lt;p&gt;State &amp;nbsp; matches expression &amp;nbsp; &amp;quot;Alabama|Arizona|Georgia|Utah&amp;quot;&lt;/p&gt;
&lt;p&gt;would cover all 4 tests in one rule and is much easier to follow/debug. &amp;nbsp;While I&amp;#39;m certainly no master of regular expressions, I know enough to know that they&amp;#39;re powerful and handy.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10034700" width="1" height="1"&gt;</description></item><item><title>re: Complex Data Validation</title><link>http://blogs.msdn.com/b/infopath/archive/2006/10/25/complex-data-validation.aspx#1938636</link><pubDate>Fri, 23 Mar 2007 21:29:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1938636</guid><dc:creator>APickett</dc:creator><description>&lt;p&gt;Hello, I have a question regarding Case Study #2, the first screenshot. &amp;nbsp;You want to achieve this logic:&lt;/p&gt;
&lt;p&gt; IF (State=&amp;quot;Ohio&amp;quot; or State=&amp;quot;Alabama&amp;quot;) and TaxRate is blank THEN (fail...)&lt;/p&gt;
&lt;p&gt;I have built this exact data validation rule (in Infopath 2007) and I have a suspicion that behind the scenes Infopath is interpretting it as:&lt;/p&gt;
&lt;p&gt; IF State=&amp;quot;Ohio&amp;quot; or (State=&amp;quot;Alabama&amp;quot; and TaxRate is blank) THEN (fail...)&lt;/p&gt;
&lt;p&gt;by giving the &amp;quot;AND&amp;quot; preference in the order of operations. &amp;nbsp;This means that it throws a validation error whenver Ohio is selected, regardless of what Tax Rate is. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, the Alternative Approach is exactly what I'm looking for and I will use that going forward. &amp;nbsp;Thanks for the info!&lt;/p&gt;
&lt;p&gt;-Andy&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1938636" width="1" height="1"&gt;</description></item></channel></rss>