<?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: Output position() in Error ScreenTip</title><link>https://www.infopathdev.com:443/forums/thread/85555.aspx</link><pubDate>Fri, 21 Dec 2012 04:11:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85555</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85555.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=85555</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t believe that validation rules allow for dynamic messages, so that wouldn&amp;#39;t be an option.&lt;/p&gt;&lt;p&gt;In code, probably the easiest way to get a field&amp;#39;s position is something like.&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;XPathNodeIterator previousRows = e.Site.Select(&amp;quot;../preceding-sibling::my:&lt;strong&gt;&lt;u&gt;repeatingGroup&lt;/u&gt;&lt;/strong&gt;&amp;quot;, NamespaceManager);&lt;/p&gt;&lt;p&gt;int position = previousRows.Count + 1;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;You may need to add or remove ../s to the path depending on the relative path from e.Site to the repeating group.&lt;/p&gt;</description></item><item><title>Output position() in Error ScreenTip</title><link>https://www.infopathdev.com:443/forums/thread/85542.aspx</link><pubDate>Thu, 20 Dec 2012 18:50:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85542</guid><dc:creator>DevDen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85542.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=85542</wfw:commentRss><description>&lt;p&gt;I am using the position() function to display the position in which each row in a repeating table is located in the XML. This is being shown to the user using an Expression Box next to each row.&lt;/p&gt;&lt;p&gt;How can I display that position in the screentip of an error (from Data Validation) and/or in the error generated by using the e.ReportError()&amp;nbsp;method.&lt;/p&gt;&lt;p&gt;Thank you.&lt;/p&gt;</description></item></channel></rss>