<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: count preceding repeating fields (not groups/sections)</title><link>https://www.infopathdev.com:443/forums/thread/82248.aspx</link><pubDate>Mon, 03 Sep 2012 12:02:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82248</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82248.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=82248</wfw:commentRss><description>&lt;p&gt;How about this:&lt;/p&gt;&lt;p&gt;count(preceding-sibling::my:fieldname) + 1&lt;/p&gt;</description></item><item><title>count preceding repeating fields (not groups/sections)</title><link>https://www.infopathdev.com:443/forums/thread/82229.aspx</link><pubDate>Sat, 01 Sep 2012 08:35:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82229</guid><dc:creator>joanfuture</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82229.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=82229</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I know how the workaround to get the position for a&amp;nbsp; row in a repeating group:&lt;/p&gt;&lt;p&gt;count(../preceding-sibling::my:groupname) + 1&lt;/p&gt;&lt;p&gt;But now I have a repeating field, not a group.&lt;br /&gt;Then I have an attribute &amp;quot;position&amp;quot; that I wanted to put formula in, but I didn&amp;#39;tget it to work if I just put:&lt;/p&gt;&lt;p&gt;count(../preceding-sibling::my:fieldname) + 1&lt;/p&gt;&lt;p&gt;Doesn&amp;#39;t it work for fields? Or for attributes ?&lt;br /&gt;I will test further, but maybe someelse ran into this behaviour.&lt;/p&gt;</description></item></channel></rss>