<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Looping through a repeating section with rules</title><link>https://www.infopathdev.com:443/forums/thread/35021.aspx</link><pubDate>Fri, 28 Nov 2008 12:21:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35021</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35021.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=35021</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can check this using a rule. By using the following xpath you can check this.&lt;/p&gt;
&lt;p&gt;count(/my:myFields/my:group1/my:group2[my:field2 = &amp;quot;a&amp;quot;]) &amp;gt;= 1 or count (/my:myFields/my:group3/my:group4[my:field4 = &amp;quot;a&amp;quot;]) &amp;gt;= 1&lt;/p&gt;
&lt;p&gt;Put this expression in the set condition on the button rule.&lt;/p&gt;
&lt;p&gt;Then add action what ever you want.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here &amp;nbsp;/my:myFields/my:group1/my:group2 -&amp;gt; first repeating section xpath.&lt;/p&gt;
&lt;p&gt;my:field2 -&amp;gt; field ion the first repeating section&lt;/p&gt;
&lt;p&gt;/my:myFields/my:group3/my:group4 -&amp;gt; second repeating section xpath.&lt;/p&gt;
&lt;p&gt;My:field4 -&amp;gt; field in the second repeating section.&lt;/p&gt;
&lt;p&gt;&amp;quot;a&amp;quot; -&amp;gt; value with which you want to compare.&lt;/p&gt;</description></item><item><title>Looping through a repeating section with rules</title><link>https://www.infopathdev.com:443/forums/thread/35017.aspx</link><pubDate>Fri, 28 Nov 2008 11:19:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35017</guid><dc:creator>keelyh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35017.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=35017</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have two repeating sectons on my form. Before submitting the form I need to be able to check if either repeating section contains a specifc value in one of it&amp;#39;s repeating fields.&lt;/p&gt;
&lt;p&gt;I need to be able to do this with rules, not code.&lt;/p&gt;
&lt;p&gt;Is this possible?&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>