<?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: Pre-populating a repeating table from a secondary data connection</title><link>https://www.infopathdev.com:443/forums/thread/20976.aspx</link><pubDate>Wed, 20 Jun 2007 02:55:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20976</guid><dc:creator>blackhawk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20976.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20976</wfw:commentRss><description>&lt;p&gt;I was able to figure out how to do this via JScript, but I did run into one oddity, in that I had to set the namespace property in order for it to find the node in the data source.&amp;nbsp;&amp;nbsp; Don&amp;#39;t flame me for my dumb question, but if you get the DOM object, shouldn&amp;#39;t it already have&amp;nbsp;the namespaces&amp;nbsp;available when you use it.&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;I.e.&lt;/p&gt;&lt;p&gt;&lt;font face="Courier New"&gt;doc = XDocument.GetDOM(&amp;quot;MyData&amp;quot;);&lt;br /&gt;doc.selectSingleNode( &amp;quot;...&amp;quot; );&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Rather than having to do:&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;font face="Courier New"&gt;doc = XDocument.GetDOM(&amp;quot;MyData&amp;quot;);&lt;br /&gt;doc.setProperty( &amp;quot;SelectionNamespaces&amp;quot;, &amp;quot;...&amp;quot; );&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font face="Courier New"&gt;&lt;br /&gt;doc.selectSingleNode( &amp;quot;...&amp;quot; );&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Pre-populating a repeating table from a secondary data connection</title><link>https://www.infopathdev.com:443/forums/thread/20963.aspx</link><pubDate>Tue, 19 Jun 2007 20:02:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20963</guid><dc:creator>blackhawk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20963.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20963</wfw:commentRss><description>&lt;p&gt;What is the best way to take information from a secondary data source and use it to populate one field within a repeating table?&amp;nbsp;&amp;nbsp; Must I resort to code?&amp;nbsp;&amp;nbsp; If so, does someone have a sample I could use?&lt;/p&gt;&lt;p&gt;Here is what I am doing:&lt;/p&gt;&lt;p&gt;I have in my form a repeating table with 4 columns.&amp;nbsp; The first column is supposed to be a read-only text box which serves as a label.&amp;nbsp;&amp;nbsp; The remaining columns are data entry.&amp;nbsp; Because this list is a little long and users will be populating most of the items, using a drop down list box and forcing them to enter item by item makes it very cumbersome for the users.&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;I would like to prepopulate the table using a secondary data source (web service in this case) that will fill in the labels.&amp;nbsp; Then, when the user has completed filling in the grid, the submit will then push that to a web service which will then write that to a back-end table.&lt;/p&gt;&lt;p&gt;At the end of the day, I have to leave this infopath form with &amp;quot;power users&amp;quot; and not &amp;quot;developers&amp;quot; and I would like to avoid coding, but if I have to, then so be it.&amp;nbsp; And if I must, does anyone have any sample code&amp;nbsp;I can use?&lt;/p&gt;</description></item></channel></rss>