<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Binding non-repeating data to a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/50532.aspx</link><pubDate>Tue, 12 Jan 2010 20:59:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50532</guid><dc:creator>andyd273</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50532.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=50532</wfw:commentRss><description>&lt;p&gt;Never mind, I figured it out.&lt;/p&gt;&lt;p&gt;I went into the data source, found the CustomerID and copied the xpath.&lt;/p&gt;&lt;p&gt;Then in the default value I checked the edit xpath box, pasted in the xpath:&lt;/p&gt;&lt;p&gt;/dfs:myFields/dfs:dataFields/d:frmScheduleRec/@CustomerID&lt;/p&gt;&lt;p&gt;and told it to get the first occurrence:&lt;/p&gt;&lt;p&gt;/dfs:myFields/dfs:dataFields/d:frmScheduleRec[1]/@CustomerID &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now all new rows get the CustomerID like they should.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Binding non-repeating data to a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/50529.aspx</link><pubDate>Tue, 12 Jan 2010 19:12:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50529</guid><dc:creator>andyd273</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50529.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=50529</wfw:commentRss><description>&lt;p&gt;I know this is a really old post, but this is something that I&amp;#39;m trying to figure out right now, and so I hope it&amp;#39;s ok to resurrect it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have two data sources, both SQL Server.&lt;/p&gt;&lt;p&gt;Main puts the submitted form into a database table for me to do reporting type stuff, and is bound to a repeating table.&lt;/p&gt;&lt;p&gt;Secondary is a list of customers that I use to fill a drop down box.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I want to be able to select a customer in the drop down box, and have it put the CustomerID into the CustomerID box on each row of a repeating table so that it doesn&amp;#39;t try to insert null values into the main data table.&lt;/p&gt;&lt;p&gt;Currently, it works for the first row because row stores duplicate data, but not for any new rows. I used to know how to do this for stand alone controls, but not for repeating controls, and not for controls bound to a database. It&amp;#39;s been quite a while since I&amp;#39;ve done much programming in infopath.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Binding non-repeating data to a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/12051.aspx</link><pubDate>Tue, 20 Mar 2007 00:07:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12051</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12051.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=12051</wfw:commentRss><description>Hi Art,&lt;br /&gt;&lt;br /&gt;There are a couple of ways to do this:&lt;br /&gt;&lt;br /&gt;1. Write code in your Submit button that does the copying.&lt;br /&gt;2. Put a rule on each of the Shipping nodes that "If count(following-sibling::my:ShipppingNode) &amp;gt; 0 and count(preceding-sibling::my:ShipppingNode) = 0"  THEN "Set a field's value (..//my:ShippingNode[position() &amp;gt; 1]/my:Address) = ."&lt;br /&gt;&lt;br /&gt;The condition for the rule makes sure that it only fires on the first instance of the repeating table so you don't get infinite recursion, and then the action sets each instance after the first one to the first one's value.&lt;br /&gt;&lt;br /&gt;I hope this makes sense, let me know if you have any problems!</description></item><item><title>Binding non-repeating data to a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/11767.aspx</link><pubDate>Thu, 08 Mar 2007 21:16:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11767</guid><dc:creator>oldradio99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11767.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=11767</wfw:commentRss><description>I have a repeating table of items to order that is bound to a database.&lt;br /&gt;&lt;br /&gt;Then I have a section named shipping information (ship to name, address, etc).&lt;br /&gt;&lt;br /&gt;When an order is placed for multiple items (e.g., multiple rows inserted), the shipping info binds to the first row only.  In other words, in the database, if they order pens and staples, the shipping info is with the pen order but the staples record has nulls for the shipping information.&lt;br /&gt;&lt;br /&gt;Is there a way to bind non-repeating data to a repeating table?</description></item></channel></rss>