<?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: Repeating Problem with Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/8783.aspx</link><pubDate>Thu, 12 Jan 2006 04:16:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8783</guid><dc:creator>Lewis68</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8783.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8783</wfw:commentRss><description>Almost!&lt;br /&gt;&lt;br /&gt;I changed the line to this and it works.&lt;br /&gt;&lt;font color="blue"&gt;XDocument.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorSelect[@number = '" + r + "']/@quotenum").text = quote;&lt;/font id="blue"&gt;&lt;br /&gt;&lt;br /&gt;However I get an error when I Insert a new record in the table. &lt;font color="red"&gt;"XDocument.DOM.selectSingleNode(...) is null or not an object."&lt;/font id="red"&gt; What could be causing that?&lt;br /&gt;&lt;br /&gt;Also, what exactly is &lt;font color="blue"&gt;[@number = '" + r + "']&lt;/font id="blue"&gt; doing?&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;</description></item><item><title>Re: Repeating Problem with Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/8782.aspx</link><pubDate>Thu, 12 Jan 2006 03:50:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8782</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8782.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8782</wfw:commentRss><description>Hm, it must be different for databases. This works with XML as main DOM.&lt;br /&gt;&lt;br /&gt;Try this:&lt;br /&gt;&lt;pre&gt;XDocument.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorSelect[ @quotenum = '" + r + "']/@quotenum").text = quote;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Re: Repeating Problem with Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/8781.aspx</link><pubDate>Thu, 12 Jan 2006 02:54:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8781</guid><dc:creator>Lewis68</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8781.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8781</wfw:commentRss><description>Hello Matt,&lt;br /&gt;&lt;br /&gt;Thanks for the response.&lt;br /&gt;&lt;br /&gt;However, I get an error when I use that line of code. "Site.parentNode is null or not an object".&lt;br /&gt;&lt;br /&gt;Any idea's?</description></item><item><title>Re: Repeating Problem with Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/8780.aspx</link><pubDate>Thu, 12 Jan 2006 02:01:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8780</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8780.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8780</wfw:commentRss><description>Try this:&lt;br /&gt;&lt;br /&gt;eventObj.Site.parentNode.selectSingleNode( "@quotenum" ).text = quote;&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Repeating Problem with Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/5262.aspx</link><pubDate>Wed, 11 Jan 2006 23:58:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5262</guid><dc:creator>Lewis68</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5262.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5262</wfw:commentRss><description>I know this has been asked and answered many times, but I'm still having trouble relating the solution it to my situation.&lt;br /&gt;&lt;br /&gt;I have a Lookup field in a repeating table. When someone enters a value in the the field, it goes out to a 2nd data source and returns data. I want the record in the table to be filled with these returned fields. However when I set the fields, it's always the first record that gets filled, not the current record.&lt;br /&gt;&lt;br /&gt;I came across Current() in this forum that seems to be the answer. I just don't know where it goes in my code. Can someone help me out?&lt;br /&gt;&lt;br /&gt;Here is the code in the OnAfterChange event of the lookup field in the table record. I believe the Red lines are the ones that need to be changed.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;&lt;font color="blue"&gt;&lt;br /&gt;var node = XDocument.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorSelect/@quotenum");&lt;br /&gt;quote = node.text;&lt;br /&gt;		&lt;br /&gt;var obj = XDocument.DataObjects("VendorList");&lt;br /&gt;obj.DOM.setProperty("SelectionNamespaces", 'xmlns:q="http://schemas.microsoft.com/office/infopath/2003/ado/queryFields" xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-12-26T21:32:32"');&lt;br /&gt;&lt;br /&gt;var r = eventObj.NewValue;&lt;br /&gt;obj.QueryAdapter.Command = "select * from VendorList where number = '" + r + "'";&lt;br /&gt;obj.QueryAdapter.Query();&lt;br /&gt;	&lt;br /&gt;var node = obj.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorList/@name");&lt;br /&gt;if (node) {&lt;br /&gt;	var name = node.text;&lt;br /&gt;	var add = obj.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorList/@address").text;&lt;br /&gt;	var city = obj.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorList/@city").text;&lt;br /&gt;	var st = obj.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorList/@state").text;&lt;br /&gt;	var zip = obj.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorList/@zip").text;&lt;br /&gt;	var con = obj.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorList/@contactname").text;&lt;br /&gt;	var num = obj.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorList/@contactnum").text;&lt;br /&gt;//	var ema = obj.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorList/@email").text;&lt;br /&gt;}else {&lt;br /&gt;	var name = "";&lt;br /&gt;	var add = "";&lt;br /&gt;	var city = "";&lt;br /&gt;	var st = "";&lt;br /&gt;	var zip = "";&lt;br /&gt;	var con = "";&lt;br /&gt;	var num = "";&lt;br /&gt;//	var ema = "";&lt;br /&gt;}&lt;br /&gt;&lt;font color="red"&gt;&lt;br /&gt;XDocument.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorSelect/@quotenum").text = quote;&lt;br /&gt;XDocument.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorSelect/@name").text = name;&lt;br /&gt;XDocument.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorSelect/@address").text = add;&lt;br /&gt;XDocument.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorSelect/@city").text = city;&lt;br /&gt;XDocument.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorSelect/@state").text = st;&lt;br /&gt;XDocument.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorSelect/@zip").text = zip;&lt;br /&gt;XDocument.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorSelect/@contactname").text = con;&lt;br /&gt;XDocument.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorSelect/@contactnum").text = num;&lt;br /&gt;//XDocument.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:VendorSelect/@email").text = ema;&lt;br /&gt;&lt;/font id="red"&gt;&lt;br /&gt;&lt;/font id="blue"&gt;</description></item></channel></rss>