<?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: Reading specific row in a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/7571.aspx</link><pubDate>Thu, 01 Sep 2005 12:08:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7571</guid><dc:creator>jjanicik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7571.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7571</wfw:commentRss><description>Thanks to all who helped.  I finally got it working.  I used this&lt;br /&gt;&lt;br /&gt;e.Source.selectSingleNode("@ID").text&lt;br /&gt;&lt;br /&gt;rather than this&lt;br /&gt;&lt;br /&gt;e.Source.selectSingleNode("/dfs:myfields/dfs:datafields/d:Company/@ID").text&lt;br /&gt;&lt;br /&gt;Thanks again.</description></item><item><title>Re: Reading specific row in a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/7570.aspx</link><pubDate>Wed, 31 Aug 2005 19:04:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7570</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7570.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7570</wfw:commentRss><description>That "e" object reference would only work if the code was placed inside of an event handler.  That may or may not be what you need.  The author did not specify which event in the Repeating Table would be used.&lt;br /&gt;&lt;br /&gt;If you have a button on your form that will open another form I think that the code I referenced above may be what you need.  You could write something like:&lt;br /&gt;&lt;br /&gt;Dim iCurrentIndex = GetCurrenntFooIndex()&lt;br /&gt;If iCurrentIndex &amp;lt;&amp;gt; -1 Then&lt;br /&gt;  XDocument.DOM.selectNode("//my:Foo")(iCurrentIndex)&lt;br /&gt;End If</description></item><item><title>Re: Reading specific row in a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/7569.aspx</link><pubDate>Wed, 31 Aug 2005 16:55:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7569</guid><dc:creator>jjanicik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7569.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7569</wfw:commentRss><description>Thanks for the suggestions.&lt;br /&gt;&lt;br /&gt;One question from a newbie:&lt;br /&gt;&lt;br /&gt;How do I declare the object "e" in the following code that you suggested:&lt;br /&gt;&lt;br /&gt;e.Source.selectSingleNode("/dfs:myfields/dfs:datafields/d:Company/@ID").text&lt;br /&gt;&lt;br /&gt;I tried using eventobj instead of e and that did not work either.&lt;br /&gt;&lt;br /&gt;Thanks for your help.</description></item><item><title>Re: Reading specific row in a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/7568.aspx</link><pubDate>Wed, 31 Aug 2005 13:00:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7568</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7568.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7568</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;try (sorry it's in c#):&lt;br /&gt;&lt;br /&gt;string param = e.Source.selectSingleNode("/dfs:myfields/dfs:datafields/d:Company/@ID").text&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Re: Reading specific row in a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/7567.aspx</link><pubDate>Wed, 31 Aug 2005 12:55:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7567</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7567.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7567</wfw:commentRss><description>You can do the following.  It is in VBScript, in JScript you would call parseInt(...) instead of CInt(...)&lt;br /&gt;&lt;br /&gt;Function GetCurrenntFooIndex&lt;br /&gt;	GetCurrenntFooIndex = CInt(XDocument.GetNamedNodeProperty(XDocument.DOM.selectSingleNode("//my:Foo"), "CTRL656", -1))&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;You will need to extract all of your files from the XSN and go into the view.  Then search for xdRepeatingTable and find the xd:CtrlId.&lt;br /&gt;&lt;br /&gt;Note that -1 will be returned if there is any error.  Suggest putting it into a constant.&lt;br /&gt;&lt;br /&gt;Finally I have only been able to get this code to work if I go to the Repeating Table property window, click on the Master/Detail tab, and select the Set as Master option, even though the table is not a master/child table.  Can anyone explain that?</description></item><item><title>Reading specific row in a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/4881.aspx</link><pubDate>Wed, 31 Aug 2005 12:24:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4881</guid><dc:creator>jjanicik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4881.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4881</wfw:commentRss><description>I am looking for syntax to read a field value from a row that the user clicks on a button or hyperlink in a repeating table.&lt;br /&gt;&lt;br /&gt;The intent of this is to pass the specific id field value for that row to another form that is being opened and populated.&lt;br /&gt;&lt;br /&gt;My current attempt to read the field value is:&lt;br /&gt;&lt;br /&gt;	var param1=XDocument.DOM.currentNode("/dfs:myfields/dfs:datafields/d:Company/@ID").text;&lt;br /&gt;&lt;br /&gt;The problem is that this retrieves the id field value for the first row in the repeating table, rather than for the row that was clicked on.&lt;br /&gt;&lt;br /&gt;Any ideas to make this work would be sincerely appreciated.&lt;br /&gt;&lt;br /&gt;Jim&lt;br /&gt;</description></item></channel></rss>