<?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: TextBox OnGotFocus Event</title><link>https://www.infopathdev.com:443/forums/thread/7848.aspx</link><pubDate>Mon, 10 Oct 2005 13:39:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7848</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7848.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7848</wfw:commentRss><description>Not sure if I'm following exactly what you want, but look at these tutorials. They helped me A LOT.&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?s=Repeating%20Tables&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?s=Repeating%20Tables&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;</description></item><item><title>Re: TextBox OnGotFocus Event</title><link>https://www.infopathdev.com:443/forums/thread/7847.aspx</link><pubDate>Mon, 10 Oct 2005 11:35:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7847</guid><dc:creator>gaikwadsantosh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7847.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7847</wfw:commentRss><description>hi vt_asparagus,&lt;br /&gt;&lt;br /&gt;Thanks very much for Reply&lt;br /&gt;i m not able to understand following line&lt;br /&gt;&lt;br /&gt;iRow = CInt(XDocument.GetNamedNodeProperty( _&lt;br /&gt;XDocument.DOM.selectSingleNode("my:Items"), "CTRL408", -1))&lt;br /&gt;&lt;br /&gt;what are (my:Items &amp; CTRL408) ?&lt;br /&gt;if we have my:myFields/my:group1/my:group2/my:id,&lt;br /&gt;where id is textbox in repeating section my:group2, what do i need to provide in the statement which you have given for GetNamedNodeProperty&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks &amp; Regards&lt;br /&gt;Santosh&lt;br /&gt;</description></item><item><title>Re: TextBox OnGotFocus Event</title><link>https://www.infopathdev.com:443/forums/thread/7846.aspx</link><pubDate>Fri, 07 Oct 2005 12:39:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7846</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7846.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7846</wfw:commentRss><description>Ok.  Using both my post, and the code you found, I would try something like:&lt;br /&gt;&lt;br /&gt;Dim iSelectedIndex&lt;br /&gt;Dim objSelectedNode&lt;br /&gt;iSelectedIndex = GetSelectedPartsIndex()&lt;br /&gt;objSelectedNode = XDocument.DOM.selectSingleNode("//Item[" &amp; CStr(iSelectedIndex) &amp; "]")&lt;br /&gt;objSelectedNode.parentNode.removeChild(objSelectedNode)&lt;br /&gt;&lt;br /&gt;In vbscript but you should be able to translate.  Hope this helps.</description></item><item><title>Re: TextBox OnGotFocus Event</title><link>https://www.infopathdev.com:443/forums/thread/7845.aspx</link><pubDate>Fri, 07 Oct 2005 05:04:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7845</guid><dc:creator>gaikwadsantosh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7845.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7845</wfw:commentRss><description>vt_asparagus Thanks for your reply,&lt;br /&gt;&lt;br /&gt;one of our member (MFaus) has given me the code to select a particular node of repeating section and delete that &lt;br /&gt;&lt;br /&gt;var node = XDocument.DOM.selectSingleNode( "my:myFields/my:group1/my:group2[my:id = 3]" );&lt;br /&gt;// remove single row from table&lt;br /&gt;node.parentNode.removeChild( node );&lt;br /&gt;&lt;br /&gt;but here i need to provide the value of control (my:id = 3, where id is a textbox control in repeating section). my problem is how to set this value at runtime (i.e. i want to delete only selected node)&lt;br /&gt;&lt;br /&gt;to achieve this i was thinking to have one textbox outside repeating section and, i'll link its value to the textbox in repeating section (using rules), and then write the above code on delete button click and concatinate the value from the textbox which is outside repeating section. but this dosent help me to achieve the functionality.&lt;br /&gt;&lt;br /&gt;Please help.&lt;br /&gt;&lt;br /&gt;Thanks &amp; Regards,&lt;br /&gt;Santosh.</description></item><item><title>Re: TextBox OnGotFocus Event</title><link>https://www.infopathdev.com:443/forums/thread/7844.aspx</link><pubDate>Thu, 06 Oct 2005 12:42:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7844</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7844.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7844</wfw:commentRss><description>You may have to add a button click to get the functionality you are looking for.  From what I understand, the user will&lt;br /&gt;&lt;br /&gt;- enter a value into a textbox&lt;br /&gt;- visually select a row in a repeating table&lt;br /&gt;- then the user would have to press a button to move the data to the selected row&lt;br /&gt;&lt;br /&gt;I have not found that InfoPath does not have as many events to hook into as in over places.&lt;br /&gt;&lt;br /&gt;So the key here is when the button is clicked, you have the index of the selected row.  I wrote a method like the one below to get the current row selected in a repeating table.  If I remember correctly, the repeating table had to be set up as Master table for this to work.&lt;br /&gt;&lt;br /&gt;Function GetSelectedItemsIndex() &lt;br /&gt;&lt;br /&gt;	Dim iRow&lt;br /&gt;	Dim iItemCount&lt;br /&gt;	&lt;br /&gt;	iRow = 1&lt;br /&gt;	iItemCount = XDocument.DOM.selectNodes("//my:Item").length&lt;br /&gt;	&lt;br /&gt;	'check the current part row count&lt;br /&gt;	If iItemCount = 0 Then&lt;br /&gt;		iRow = 0&lt;br /&gt;	Else&lt;br /&gt;		'we know there is at least one row&lt;br /&gt;		iRow = 1&lt;br /&gt;		&lt;br /&gt;		'Call to the dom and get the current selected row.&lt;br /&gt;		'-1 will be returned if there is any error trying to &lt;br /&gt;		'locate the current row.&lt;br /&gt;		If iItemCount &amp;gt; 1 Then&lt;br /&gt;			iRow = CInt(XDocument.GetNamedNodeProperty( _&lt;br /&gt;				XDocument.DOM.selectSingleNode("my:Items"), "CTRL408", -1))&lt;br /&gt;		End If&lt;br /&gt;				&lt;br /&gt;	End If&lt;br /&gt;	&lt;br /&gt;	GetSelectedItemsIndex = iRow&lt;br /&gt;&lt;br /&gt;End Function</description></item><item><title>TextBox OnGotFocus Event</title><link>https://www.infopathdev.com:443/forums/thread/4965.aspx</link><pubDate>Thu, 06 Oct 2005 11:24:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4965</guid><dc:creator>gaikwadsantosh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4965.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4965</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;i have a repating section in which i have placed one text box,&lt;br /&gt;and i have one more textbox on form which is outside of repeater control.&lt;br /&gt;&lt;br /&gt;now at runtime if i insert new entries of repeating section (in each entry, i enter some data in textbox)&lt;br /&gt;&lt;br /&gt;now i want, when i move my cursor to any of the textbox in repeating section, the content of the textbox should be reflected in textbox which is outside of repeating section.&lt;br /&gt;&lt;br /&gt;Thanks &amp; Regards,&lt;br /&gt;Santosh.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks &amp; Regards&lt;br /&gt;Santosh</description></item></channel></rss>