<?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: repeating section setting values of text boxes</title><link>https://www.infopathdev.com:443/forums/thread/15095.aspx</link><pubDate>Tue, 20 Feb 2007 21:33:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15095</guid><dc:creator>Mario</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15095.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15095</wfw:commentRss><description>Matt, your suggested code worked, thanks much for&lt;br /&gt;taking the time to diagnose and respond.</description></item><item><title>Re: repeating section setting values of text boxes</title><link>https://www.infopathdev.com:443/forums/thread/15094.aspx</link><pubDate>Thu, 15 Feb 2007 20:12:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15094</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15094.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15094</wfw:commentRss><description>Hi Mario,&lt;br /&gt;&lt;br /&gt;I think you should change this line&lt;br /&gt;objNode2.SelectSingleNode("//dfs:dataFields/d:UT_Proposal/d:UT_Proposal_Process/@Speed").text=strjunk&lt;br /&gt;to this:&lt;br /&gt;objNode2.SelectSingleNode("@Speed").text=strjunk&lt;br /&gt;&lt;br /&gt;Hope that works!</description></item><item><title>repeating section setting values of text boxes</title><link>https://www.infopathdev.com:443/forums/thread/13056.aspx</link><pubDate>Mon, 12 Feb 2007 22:08:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13056</guid><dc:creator>Mario</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13056.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13056</wfw:commentRss><description>I am having a problem with some code to set the value of some text boxes in a repeating table for the 2nd, 3rd, 4th, etc. rows.  Each time I add a new row, it seems to be updating the 1st row only.  &lt;br /&gt;&lt;br /&gt;In the repeating table, I have the 1st column being a drop down.  Once the user chooses an item, it goes and grabs the values from a database and populates the text boxes on that row.&lt;br /&gt;&lt;br /&gt;I have some vbscript in the OnChanged event of the drop down, it looks as follows:&lt;br /&gt;&lt;br /&gt;Dim doc&lt;br /&gt;Set doc = XDocument.DataObjects("UV_Proposal_Process_Maint").DOM&lt;br /&gt;&lt;br /&gt;doc.setProperty _&lt;br /&gt;   "SelectionNamespaces","xmlns:dfs=""http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"" " &amp; _&lt;br /&gt;   "xmlns:dsf=""http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"" " &amp; _ &lt;br /&gt;   "xmlns:q=""http://schemas.microsoft.com/office/infopath/2003/ado/queryFields"" " &amp; _ &lt;br /&gt;   "xmlns:my=""http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-02-02T17:26:37"" " &amp; _&lt;br /&gt;   "xmlns:d=""http://schemas.microsoft.com/office/infopath/2003/ado/dataFields"" " &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;selectedProcess=""&lt;br /&gt;if isnull(eventobj.newvalue) then&lt;br /&gt; exit sub&lt;br /&gt; &lt;br /&gt;else&lt;br /&gt;  selectedProcess=cstr(eventobj.newvalue)  'this works&lt;br /&gt;end if&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;dim strjunk&lt;br /&gt;&lt;br /&gt;' Get the selected node&lt;br /&gt;Dim selectedNode, objSingleNode, objNode2&lt;br /&gt;&lt;br /&gt;set selectednode=nothing&lt;br /&gt;Set selectedNode =XDocument.GetDOM("UV_Proposal_Process_Maint")&lt;br /&gt;      &lt;br /&gt;            &lt;br /&gt;set objSingleNode=nothing&lt;br /&gt;&lt;br /&gt;'next line works&lt;br /&gt;Set objSingleNode=selectedNode.selectSingleNode("//d:UV_Proposal_Process_Maint[@ProcessID='" &amp; selectedProcess &amp; "']")&lt;br /&gt;&lt;br /&gt;strjunk=objsinglenode.attributes.getnameditem("Speed").text&lt;br /&gt;&lt;br /&gt;intSpeed=cint(strjunk)&lt;br /&gt;msgbox ("current speed is ") &amp; strjunk&lt;br /&gt;&lt;br /&gt;set objnode2=nothing&lt;br /&gt;set objNode2=eventObj.Source.ParentNode.SelectSingleNode("//d:UT_Proposal_Process[@ProcessID='" &amp; selectedProcess &amp; "']")&lt;br /&gt;&lt;br /&gt;objNode2.SelectSingleNode("//dfs:dataFields/d:UT_Proposal/d:UT_Proposal_Process/@Speed").text=strjunk&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;In the code above the "selectedProcess" variable is the one in the drop down, then it goes and grabs the speed variable from the database. It appears to be getting the new process and the proper speed in the 2nd and 3rd rows fine (using eventobj.newvalue), but when I change the text box, it always changes the 1st row, not the new processes row.&lt;br /&gt;&lt;br /&gt;Any ideas on what I am doing wrong in setting text box?&lt;br /&gt;&lt;br /&gt;Any help appreciated, thanks much in advance.!!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>