<?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: Retrieve TextBox value in Repeating  section</title><link>https://www.infopathdev.com:443/forums/thread/6614.aspx</link><pubDate>Tue, 29 Mar 2005 22:49:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6614</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6614.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6614</wfw:commentRss><description>The context for the button is the row of the table... meaning, if you have a data source that looks like this:&lt;br /&gt;&lt;br /&gt;Group1&lt;br /&gt;  Group2&lt;br /&gt;    field1&lt;br /&gt;&lt;br /&gt;And a repeating table that looks like this&lt;br /&gt;&lt;br /&gt;[button][text box]&lt;br /&gt;[button][text box]&lt;br /&gt;[button][text box]&lt;br /&gt;&lt;br /&gt;Clicking on the button will put our starting point for selection in Group2.&lt;br /&gt;&lt;br /&gt;It sounds like you already had that part figured out, but I added it for the sake of others reading this thread.&lt;br /&gt;&lt;br /&gt;As for why the second statement doesn't work, I'm not sure. I wrote the same code, and it worked for me:&lt;br /&gt;&lt;br /&gt;function CTRL3_5::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;    XDocument.UI.Alert(eventObj.Source.selectSingleNode("my:field1").text);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Retrieve TextBox value in Repeating  section</title><link>https://www.infopathdev.com:443/forums/thread/4599.aspx</link><pubDate>Mon, 28 Mar 2005 09:47:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4599</guid><dc:creator>amish</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4599.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4599</wfw:commentRss><description>Here is the problem.&lt;br /&gt;&lt;br /&gt; Include a Repeating Section control in my form, containing a Button and a Text Box. At runtime, user inserts more than 1 items. How do we know which Button was clicked so we can get to the Text Box#%92s value?&lt;br /&gt;&lt;br /&gt;For this i tried on button click:&lt;br /&gt;&lt;br /&gt;function CTRL1_5::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;	// Write your code here&lt;br /&gt;	 XDocument.UI.Alert( eventObj.Source.xml );&lt;br /&gt;}&lt;br /&gt;And this worked fine.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;But on the same lines the below code does NOT work :&lt;br /&gt;&lt;br /&gt;function CTRL1_5::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;	// Write your code here&lt;br /&gt;XDocument.UI.Alert(eventObj.Source.selectSingleNode("my:field1").text );&lt;br /&gt;	&lt;br /&gt;}&lt;br /&gt;------------------------------------------------------------&lt;br /&gt;Can you please tell me where am i going wrong?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Amish</description></item></channel></rss>