<?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>Preceding-Sibling.</title><link>https://www.infopathdev.com:443/forums/thread/97455.aspx</link><pubDate>Tue, 13 May 2014 14:27:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97455</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97455.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97455</wfw:commentRss><description>&lt;p&gt;Hi All&lt;/p&gt;&lt;p&gt;I have a Form with 2 repeating groups&lt;/p&gt;&lt;p&gt;/my:CourseBooking/my:CourseDelegates/my:Delegate&lt;/p&gt;&lt;p&gt;and &lt;/p&gt;&lt;p&gt;/my:CourseBooking/my:CourseDates/my:CourseDate&lt;/p&gt;&lt;p&gt;In each group I have a field which I am using to work out the row that I am on.&lt;/p&gt;&lt;p&gt;So /my:CourseBooking/my:CourseDelegates/my:Delegate/my:DelegateCount has the default value count(../preceding-sibling::my:Delegate/my:Name) + 1&lt;/p&gt;&lt;p&gt;And /my:CourseBooking/my:CourseDates/my:CourseDate/my:CourseDateCount has the default value count(../preceding-sibling::my:CourseDate/my:Position) + 1&lt;/p&gt;&lt;p&gt;These fields work correctly when inserting rows into my repeating groups.&amp;nbsp; So If I start with 1 row and add 3 rows, in each table I get the counts of 1,2,3,4&amp;nbsp;&lt;/p&gt;&lt;p&gt;When I delete the 3rd row in the Delegate group the counts re-calculate as required, 1,2,3&lt;/p&gt;&lt;p&gt;When I delete the 3rd row int the CourseDate the counts do no re-calculate, I get counts of 1,2,4.&amp;nbsp; I have other fields in the repeating group which&amp;nbsp;count(../preceding-sibling...) and count(../following-sibling) they also do not re-calculate correctly.&amp;nbsp; All of the fields have &amp;quot;Refresh value when formula is recalculated&amp;quot; ticked.&lt;/p&gt;&lt;p&gt;I am sure I am doing something wrong - but I cannot fathom the difference between the two groups,&amp;nbsp;other than the CourseDate group has date and time fields in&amp;nbsp;it.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Any ideas would be gratefully received.&lt;/p&gt;&lt;p&gt;Thank you&lt;/p&gt;&lt;p&gt;Catharine.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>