<?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: Programmatically Adding Data to Table Rows</title><link>https://www.infopathdev.com:443/forums/thread/9638.aspx</link><pubDate>Tue, 25 Apr 2006 20:50:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9638</guid><dc:creator>Doug Myers</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9638.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9638</wfw:commentRss><description>Thanks, Greg.  It's sometimes tough to see the forest for the trees.</description></item><item><title>Re: Programmatically Adding Data to Table Rows</title><link>https://www.infopathdev.com:443/forums/thread/9637.aspx</link><pubDate>Tue, 25 Apr 2006 20:46:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9637</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9637.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9637</wfw:commentRss><description>Your row.selectSingleNode() XPath is the problem. You are giving it an absolute XPath from the top of your schema instead of a relative XPath staring from the node itself.&lt;br /&gt;&lt;br /&gt;It should probably be something like row.selectSingleNode("my:field1").text = ...</description></item><item><title>Programmatically Adding Data to Table Rows</title><link>https://www.infopathdev.com:443/forums/thread/5555.aspx</link><pubDate>Mon, 24 Apr 2006 17:57:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5555</guid><dc:creator>Doug Myers</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5555.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5555</wfw:commentRss><description>The following VBScript produces new table rows but unfortunately the data is simply re-written over the first row (node).  I am sure there is something obvious that I am missing, but I could use some help identifying the problem.  Here's a slice of the code:&lt;br /&gt;&lt;br /&gt;(Note: rsObj is a recordset from SQL)&lt;br /&gt;&lt;br /&gt;	insideLoop = False&lt;br /&gt;	i=0&lt;br /&gt;	&lt;br /&gt;	Do Until rsObj.EOF&lt;br /&gt;		If insideLoop then&lt;br /&gt;			XDocument.View.ExecuteAction "xCollection::insert", "group2_201"&lt;br /&gt;		End if&lt;br /&gt;&lt;br /&gt;		set nodesDetail = XDocument.DOM.selectNodes("/my:myFields//my:group2")&lt;br /&gt;&lt;br /&gt;		set row = nodesDetail.item(i)&lt;br /&gt;		&lt;br /&gt;		row.selectSingleNode("/my:myFields//my:field1").text = Flds(1).Value&lt;br /&gt;		&lt;br /&gt;		insideLoop = True&lt;br /&gt;		i = i + 1&lt;br /&gt;		rsObj.MoveNext&lt;br /&gt;	Loop&lt;br /&gt;&lt;br /&gt;The data is successfully obtained from an SQL database and is in the array "Flds."  My test case produced 5 rows (to match the 5 Flds values) but only the first row contained the last result.</description></item></channel></rss>