<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Validate against First Field of a Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/89966.aspx</link><pubDate>Mon, 20 May 2013 21:13:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89966</guid><dc:creator>Baseball17Bucks</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89966.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=89966</wfw:commentRss><description>&lt;p&gt;Found a Fix!&lt;/p&gt;
&lt;p&gt;My understanding of the InfoPath indexing was correct, however the Validation function just seemed to be choking.&lt;/p&gt;
&lt;p&gt;My Solution: Create a field in the repeating table called &amp;quot;Yearly Total&amp;quot;. Create a hidden field called &amp;quot;YearlySpendingPlan-ID&amp;quot; in the repeating table group and gave it the Default Value = count(preceding-sibling::*)+1&lt;/p&gt;
&lt;p&gt;Then create the Rule: Validation --&amp;gt; RequiredFundsTotal --&amp;gt; Condition: Is not equal to --&amp;gt; YearlyTotal[YearlySpendingPlan-ID = 1]&lt;/p&gt;
&lt;p&gt;In this logic, I put a filter on YearlyTotal using YearlySpendingPlan-ID as the filter field. Bingo!&lt;/p&gt;</description></item><item><title>Re: Validate against First Field of a Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/89939.aspx</link><pubDate>Mon, 20 May 2013 14:59:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89939</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89939.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=89939</wfw:commentRss><description>&lt;p&gt;Hi Baseball17Bucks,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; I think that, if anything, &lt;strong&gt;[count(preceding-sibling::*) + 1]&lt;/strong&gt; would refer to the last row of a repeating group, but there&amp;#39;s an easier way to do that as well.&lt;/p&gt;&lt;p&gt;First row of a repeating group:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;my:&lt;strong&gt;YearlySpendingPlan[1]&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Last row of a repeating group:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; my:&lt;strong&gt;YearlySpendingPlan[last()]&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Validate against First Field of a Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/89936.aspx</link><pubDate>Mon, 20 May 2013 13:29:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89936</guid><dc:creator>Baseball17Bucks</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89936.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=89936</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a repeating section called &amp;quot;YearlySpendingPlans&amp;quot;. In that section there is a field &amp;quot;YearlyTotal&amp;quot;.&lt;/p&gt;
&lt;p&gt;Outside of this section, there is a field called &amp;quot;RequiredFundsTotal&amp;quot;. (FYI the way the form works is that I want a check between what the user &amp;quot;wants&amp;quot; and what they &amp;quot;need&amp;quot; to do the work they are proposing to do. The RequiredFundsTotal field looks at funds required for this year. On the other hand, the spending plans are developed for this year AND future years. )&lt;/p&gt;
&lt;p&gt;I want to put a Validation Rule on &amp;quot;Required Funds Total&amp;quot; (which looks at funds for this year) to check for equality against the first &amp;quot;YearlyTotal&amp;quot; field in the repeating table. I&amp;#39;ve tried the following logic...&lt;/p&gt;
&lt;p&gt;Validate &amp;quot;RequiredFundsTotal&amp;quot; --&amp;gt; condition: Is not equal to --&amp;gt; ../../../my:SpendPlanBucket/my:YearlySpendingPlans/my:&lt;strong&gt;YearlySpendingPlan[count(preceding-sibling::*) + 1]&lt;/strong&gt;/my:YearlyTotals/my:&lt;strong&gt;&lt;u&gt;YearlyTotal&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Here I&amp;#39;m trying to reference the &lt;strong&gt;[count(preceding-sibling::*) + 1] &lt;/strong&gt;index of the repeating section, which my understanding is the first occurence of the YearlySpendingPlan repeating section.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Unfortunately, I&amp;#39;m not getting this validation to work.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks for the help!!!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- JF&lt;/p&gt;</description></item></channel></rss>