<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to get the position of the current row</title><link>https://www.infopathdev.com:443/forums/thread/46133.aspx</link><pubDate>Fri, 21 Aug 2009 19:05:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46133</guid><dc:creator>kalyan@infopath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46133.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46133</wfw:commentRss><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; It worked this time, thank you very much for your sugession.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Kalyan.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to get the position of the current row</title><link>https://www.infopathdev.com:443/forums/thread/46111.aspx</link><pubDate>Fri, 21 Aug 2009 06:02:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46111</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46111.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46111</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Please try Convert.ToDouble(e. Site.Evaluate(&amp;quot;count(../preceding-sibling::item)&amp;quot;,NamespaceManager));&lt;/p&gt;</description></item><item><title>Re: How to get the position of the current row</title><link>https://www.infopathdev.com:443/forums/thread/46110.aspx</link><pubDate>Fri, 21 Aug 2009 02:06:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46110</guid><dc:creator>kalyan@infopath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46110.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46110</wfw:commentRss><description>&lt;p&gt;Thanks for quick reply,&lt;/p&gt;&lt;p&gt;Here is my data source.(Not the exact one, i am not supposed to show that,sorry for that). Here is the structure of my datasource,&lt;/p&gt;&lt;p&gt;- myFields&lt;/p&gt;&lt;p&gt;&amp;nbsp; - queryFields&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; - tns: Method1&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; -&amp;nbsp; : Structure&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; item (&lt;span style="font-weight:bold;"&gt;REPEATING NODE&lt;/span&gt;)&lt;br /&gt;&lt;/p&gt;&lt;p&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; Field1 &lt;/p&gt;&lt;p&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; Field2&amp;nbsp; &lt;/p&gt;&lt;p&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; Field3&amp;nbsp; &lt;/p&gt;&lt;p&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; Field4&amp;nbsp; &lt;/p&gt;&lt;p&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; LINE_NO (This is the control where i am writing my changed event and where i should get my row number)&amp;nbsp; &lt;/p&gt;&lt;p&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; Field6&amp;nbsp; &lt;/p&gt;&lt;p&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; Field7&amp;nbsp; &lt;/p&gt;&lt;p&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; Field8&amp;nbsp; &lt;/p&gt;&lt;p&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; Field9&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp; - dataFields&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - tns: Method 2 &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retrieve Data&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This is the structure of my datasource Jimmy, Can you please help on how to get the current row number using&amp;nbsp; &amp;quot;e.Site&amp;quot;.&lt;/p&gt;&lt;p&gt;Thanks in Advance,&lt;/p&gt;&lt;p&gt;Kalyan. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to get the position of the current row</title><link>https://www.infopathdev.com:443/forums/thread/46107.aspx</link><pubDate>Fri, 21 Aug 2009 00:37:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46107</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46107.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46107</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Could you attach a screenshot of your data source?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to get the position of the current row</title><link>https://www.infopathdev.com:443/forums/thread/46106.aspx</link><pubDate>Thu, 20 Aug 2009 22:45:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46106</guid><dc:creator>kalyan@infopath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46106.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46106</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Jimmy,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I tried that Convert.ToDouble(e. Site.Evaluate(&amp;quot;count(preceding-sibling::LINE_NO)&amp;quot;,NamespaceManager));&lt;/p&gt;&lt;p&gt;Here LINE_NO is my repeating control Name. But it was getting &amp;quot;0.0&amp;quot; into that in each and every row of the table. I tried converting into int it was giving &amp;quot;0&amp;quot;.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I tried with e.Site.Select(&amp;quot;../LINE_NO&amp;quot;,NamespaceManager).CurrentPosition also. This was also giving the same value &amp;quot;0&amp;quot;.&lt;/p&gt;&lt;p&gt;&amp;nbsp; By using e. Site.Evaluate(&amp;quot;count(preceding-sibling::LINE_NO)&amp;quot;,NamespaceManager); what you want me to&amp;nbsp; expect the result if i convert it into double and then into int. Is that the current row number????&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to get the position of the current row</title><link>https://www.infopathdev.com:443/forums/thread/46105.aspx</link><pubDate>Thu, 20 Aug 2009 21:51:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46105</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46105.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46105</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You should be able to use e.Site.Evaluate(&amp;quot;count(preceding-sibling::&lt;i&gt;&lt;u&gt;&lt;b&gt;repeatingFieldName&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;)&amp;quot;, NamespaceManager);&lt;/p&gt;&lt;p&gt;This will return an &lt;b&gt;object&lt;/b&gt; value that you can cast to a &lt;b&gt;double&lt;/b&gt;, and after that, to an &lt;b&gt;int&lt;/b&gt; if you want to.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to get the position of the current row</title><link>https://www.infopathdev.com:443/forums/thread/46099.aspx</link><pubDate>Thu, 20 Aug 2009 18:58:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46099</guid><dc:creator>kalyan@infopath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46099.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46099</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I need to get the current row number using the &amp;quot;e.Site........&amp;quot; . Is this possible??&amp;nbsp; or else how to get the position of the current row in the changed event control of a repeating table.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance,&lt;/p&gt;&lt;p&gt;Kalyan. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>