<?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>nested repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/103594.aspx</link><pubDate>Wed, 12 Aug 2015 18:00:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103594</guid><dc:creator>yo_pb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103594.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=103594</wfw:commentRss><description>&lt;p&gt;I have an InfoPath timecard form that has a repeating section within a repeating section:&lt;br /&gt;myFields&lt;br /&gt;Section1&lt;br /&gt;&amp;gt; Section1a&lt;br /&gt;&amp;gt;&amp;gt; RepeatingTable1 (weekday:Sun - Sat)&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; Section&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Section&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; RepeatingTable2 (multiple codes/lines per day)&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Field&lt;/p&gt;&lt;p&gt;Thus employees can enter multiple codes per day:&lt;br /&gt;Monday: &amp;nbsp; code 435  hours 4&lt;br /&gt;              &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; code 550  hours 4&lt;br /&gt;Tuesday: &amp;nbsp;code 435  hours 8&lt;br /&gt;Wednesday  etc.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I’m trying to summarize the code totals (using preceding-sibling) so that it would look like:&lt;/p&gt;&lt;p&gt;Code 435 = total hours 12&lt;br /&gt;Code 550 = total hours 4&lt;br /&gt;etc&lt;/p&gt;&lt;p&gt;I can figure out the totals but is showing the codes more than once with the same totals&lt;/p&gt;&lt;p&gt;Code 435 = 12&lt;br /&gt;Code 550 = 4&lt;/p&gt;&lt;p&gt;Code 435&amp;nbsp;= 12&lt;br /&gt;etc&lt;/p&gt;&lt;p&gt;So I&amp;#39;m trying to do a condition/rule that says &amp;quot;If there is a preceding code x (435) then hide the total&amp;quot; but&amp;nbsp;I can’t get the preceding-sibling to work – I’m sure it is due to the XPath and the nested repeating fields.&amp;nbsp; I have tried all kinds of variations and paths:&lt;/p&gt;&lt;p&gt;preceding-sibling::/RepeatingGroup/RepeatingField&lt;br /&gt;../preceding-sibling::/RepeatingGroup/RepeatingField&lt;br /&gt;../preceding-sibling::/my:RepeatingGroup/my:RepeatingField&lt;br /&gt;../preceding-sibling::/my:RepeatingGroup[1]/my:RepeatingField&lt;br /&gt;../preceding-sibling::/my:RepeatingGroup/my:RepeatingField[1]&lt;br /&gt;and many others&lt;/p&gt;&lt;p&gt;Any help would be great...Thanks!&lt;/p&gt;&lt;p&gt;Pat&lt;/p&gt;</description></item></channel></rss>