<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Need Different Rule in 1st Row of Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/76797.aspx</link><pubDate>Fri, 23 Mar 2012 13:28:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76797</guid><dc:creator>MeganG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76797.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76797</wfw:commentRss><description>&lt;p&gt;Thank you ErnestoM.&amp;nbsp; That is exactly what I needed.&amp;nbsp; Works perfect.&lt;/p&gt;</description></item><item><title>Re: Need Different Rule in 1st Row of Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/76794.aspx</link><pubDate>Fri, 23 Mar 2012 12:47:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76794</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76794.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76794</wfw:commentRss><description>&lt;p&gt;I can&amp;#39;t speak for the details of your action (i.e. where the goal will come from), but I think what you&amp;#39;re asking about is the condition. You&amp;#39;ll need different rules with conditions such that:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;One rule executes on the first row&lt;/li&gt;&lt;li&gt;One rule executes on subsequent rows&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I&amp;#39;m attaching a very simple form with an example. The rules and conditions are on the field1 node. Youll see that one condition is:&lt;/p&gt;&lt;p style="margin-left:40px;"&gt;count(../preceding-sibling::my:group2) + 1 = 1&lt;/p&gt;&lt;p&gt;(for the first row) &lt;/p&gt;&lt;p&gt;And the other condition (for subsequent rows) is&amp;nbsp;&lt;/p&gt;&lt;p style="margin-left:40px;"&gt;count(../preceding-sibling::my:group2) + 1 &amp;gt; 1&lt;/p&gt;&lt;p&gt;Hope this helps! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Need Different Rule in 1st Row of Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/76792.aspx</link><pubDate>Fri, 23 Mar 2012 00:46:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76792</guid><dc:creator>MeganG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76792.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76792</wfw:commentRss><description>&lt;p&gt;Not sure of the best way to go about this, but I think I need a different rule to run on the first row of a repeating table than in the subsequent rows. &lt;/p&gt;
&lt;p&gt;I have a rule that runs when information is entered into the a Daily Sales field in a repeating table.&amp;nbsp; It changes the value of&amp;nbsp;the Tomorrow&amp;#39;s Goal&amp;nbsp;field with a forumla that uses the value of Tomorrow&amp;#39;s Goal in the preceding row. From Row 2 on that works great.&lt;/p&gt;
&lt;p&gt;But -- the first row doesn&amp;#39;t have a preceding sibling and needs to refer to the Standard Goal outside of the table. How do I set things up so that the first row works?&lt;/p&gt;
&lt;table&gt;

&lt;tr&gt;
&lt;td&gt;Standard Goal&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;
&lt;table&gt;

&lt;tr&gt;
&lt;td&gt;Row &amp;nbsp;&lt;/td&gt;
&lt;td&gt;Daily Sales &lt;/td&gt;
&lt;td&gt;Tomorrow&amp;#39;s Goal &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Triggers Rule&lt;/td&gt;
&lt;td&gt;Standard Goal - Daily Sales&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Triggers Rule&lt;/td&gt;
&lt;td&gt;Standard Goal + (Preceding row&amp;#39;s Tomorrow&amp;#39;s Goal - Daily Sales)&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p&gt;This is a browser-enabled form. Thanks.&lt;/p&gt;</description></item></channel></rss>