<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Automatically insert rows into repeating section</title><link>https://www.infopathdev.com:443/forums/thread/58843.aspx</link><pubDate>Thu, 09 Sep 2010 20:00:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58843</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58843.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=58843</wfw:commentRss><description>&lt;p&gt;Hi Skumar38,&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a new document that describes how to do this with qRules v2.2&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/files/folders/qrules/entry58577.aspx"&gt;http://www.infopathdev.com/files/folders/qrules/entry58577.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Automatically insert rows into repeating section</title><link>https://www.infopathdev.com:443/forums/thread/40621.aspx</link><pubDate>Wed, 15 Apr 2009 04:08:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40621</guid><dc:creator>skumar38</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40621.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=40621</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;i am using web service as data source. It will return the dataset. based on the no of rows in datatable, i have to create the repeater section.&amp;nbsp;I also have to provide the user with option for inserting new fields in the repeating section and updatind the existing fields. Newly inserted fields informations are submited to the Database using web service.&lt;/p&gt;
&lt;p&gt;So can you help me to achieve this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;</description></item><item><title>Re: Automatically insert rows into repeating section</title><link>https://www.infopathdev.com:443/forums/thread/40514.aspx</link><pubDate>Fri, 10 Apr 2009 15:40:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40514</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40514.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=40514</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;What does your code look like thus far? How do you know how many new rows you need to add? Is this based on another data connection, or something the user enters?&lt;/p&gt;</description></item><item><title>Re: Automatically insert rows into repeating section</title><link>https://www.infopathdev.com:443/forums/thread/40472.aspx</link><pubDate>Thu, 09 Apr 2009 04:21:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40472</guid><dc:creator>skumar38</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40472.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=40472</wfw:commentRss><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;I am using infoPath 2007, i need to insert rows in to repeating section.&lt;/p&gt;
&lt;p&gt;I am having only xmlNavigator. I have one repeater section which contain two text boxs.&lt;/p&gt;
&lt;p&gt;I need to add the value at run time. no of section are known only at run time. &lt;/p&gt;
&lt;p&gt;Can any help to add new row inside the repeating section.&lt;/p&gt;</description></item><item><title>Re: Automatically insert rows into repeating section</title><link>https://www.infopathdev.com:443/forums/thread/28699.aspx</link><pubDate>Tue, 13 May 2008 13:36:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28699</guid><dc:creator>Bill </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28699.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=28699</wfw:commentRss><description>&lt;p&gt;Hi Stavi,&lt;/p&gt;
&lt;p&gt;I mofied the code in the example given.&amp;nbsp; Here is my code&lt;/p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; newVal1 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; row, parent &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; MSXML.IXMLDOMNode&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;/font&gt;&lt;font size="2"&gt; thisXDocument.DOM.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:App1171/@A174Q15a1&amp;quot;).text = &amp;quot;Y&amp;quot; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Then&lt;/font&gt;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;thisXDocument.DOM.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:App1171/d:DHS1171_Application/d:DHS1171_HouseholdMember/d:DHS1171_OtherIncomes/@IncomeSourceType&amp;quot;).text = &amp;quot;RSDI&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;newVal1 = thisXDocument.DOM.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:App1171/d:DHS1171_Application/d:DHS1171_HouseholdMember/d:DHS1171_OtherIncomes/@IncomeSourceType&amp;quot;).text&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;get a reference to the node the repeating table is bound to&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;row = thisXDocument.DOM.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:App1171/d:DHS1171_Application/d:DHS1171_HouseholdMember/d:DHS1171_OtherIncomes/&amp;quot;)&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;make a copy of the node by cloning it&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;row = row.cloneNode(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;True&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;set the new values &lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;row.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:App1171/d:DHS1171_Application/d:DHS1171_HouseholdMember/d:DHS1171_OtherIncomes/@IncomeSourceType&amp;quot;).text = &amp;quot;Select...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;append the cloned row to the parent node&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;parent = thisXDocument.DOM.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:App1171/d:DHS1171_Application/d:DHS1171_HouseholdMember&amp;quot;)&lt;/p&gt;
&lt;p&gt;parent.appendChild(row)&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;It makes it thru the clone process w/o any errors but I never see the new row on my form.&amp;nbsp; Can someone please tell me what I am doing wrong.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Automatically insert rows into repeating section</title><link>https://www.infopathdev.com:443/forums/thread/17095.aspx</link><pubDate>Thu, 15 Dec 2005 02:55:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17095</guid><dc:creator>cburgess</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17095.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17095</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Stavi&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Use the repeating table you have and 4 regular fields, CustId, NoOranges, NoApples, NoPears&lt;br /&gt;&lt;br /&gt;When the user has filled in the form and saves, closes or what ever, use this script to create 3 rows in the repeating table.&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;Ok, this worked for me after lots of tidying up on one of my forms. Also you'll have to put in the first row straight into the database as this can only clone and paster rows not create them.&lt;br /&gt;&lt;br /&gt;I posted this in a rush, ask if i did something silly&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;Thanks for the help Stavi! I'll give it a try.</description></item><item><title>Re: Automatically insert rows into repeating section</title><link>https://www.infopathdev.com:443/forums/thread/17094.aspx</link><pubDate>Tue, 13 Dec 2005 17:41:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17094</guid><dc:creator>Stavi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17094.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17094</wfw:commentRss><description>Use the repeating table you have and 4 regular fields, CustId, NoOranges, NoApples, NoPears&lt;br /&gt;&lt;br /&gt;When the user has filled in the form and saves, closes or what ever, use this script to create 3 rows in the repeating table.&lt;br /&gt;&lt;br /&gt;// get values&lt;br /&gt;IXMLDOMNode CustID = thisXDocument.DOM.selectSingleNode("/dfs:myFields/dfs:MyFields/@CustID");&lt;br /&gt;IXMLDOMNode NoOranges = thisXDocument.DOM.selectSingleNode("/dfs:myFields/dfs:MyFields/@Oranges");&lt;br /&gt;IXMLDOMNode NoApples = thisXDocument.DOM.selectSingleNode("/dfs:myFields/dfs:MyFields/@Apples");&lt;br /&gt;IXMLDOMNode NoPears = thisXDocument.DOM.selectSingleNode("/dfs:myFields/dfs:MyFields/@Pears");&lt;br /&gt;&lt;br /&gt;// get a reference to the node the repeating table is bound to&lt;br /&gt;IXMLDOMNode row = thisXDocument.DOM.selectSingleNode("//d:repeatingtable1");&lt;br /&gt;// make a copy of the node by cloning it&lt;br /&gt;row = row.cloneNode(true);&lt;br /&gt;&lt;br /&gt;// set the new values of the row#%92s fields for Oranges&lt;br /&gt;row.selectSingleNode("@RepeatingTableID").text = "";&lt;br /&gt;row.selectSingleNode("@CustID").text = CustID.text;&lt;br /&gt;row.selectSingleNode("@Type").text = "1";&lt;br /&gt;row.selectSingleNode("@Number").text = NoOranges.text;&lt;br /&gt;// append the cloned row to the parent node&lt;br /&gt;IXMLDOMNode parent = thisXDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields");&lt;br /&gt;parent.appendChild(row);&lt;br /&gt;&lt;br /&gt;// set the new values of the row#%92s fields for Apples&lt;br /&gt;row.selectSingleNode("@RepeatingTableID").text = "";&lt;br /&gt;row.selectSingleNode("@CustID").text = CustID.text;&lt;br /&gt;row.selectSingleNode("@Type").text = "2";&lt;br /&gt;row.selectSingleNode("@Number").text = NoApples.text;&lt;br /&gt;// append the cloned row to the parent node&lt;br /&gt;IXMLDOMNode parent = thisXDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields");&lt;br /&gt;parent.appendChild(row);&lt;br /&gt;&lt;br /&gt;// set the new values of the row#%92s fields for Pears&lt;br /&gt;row.selectSingleNode("@RepeatingTableID").text = "";&lt;br /&gt;row.selectSingleNode("@CustID").text = CustID.text;&lt;br /&gt;row.selectSingleNode("@Type").text = "3";&lt;br /&gt;row.selectSingleNode("@Number").text = NoPears.text;&lt;br /&gt;// append the cloned row to the parent node&lt;br /&gt;IXMLDOMNode parent = thisXDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields");&lt;br /&gt;parent.appendChild(row);&lt;br /&gt;&lt;br /&gt;Ok, this worked for me after lots of tidying up on one of my forms. Also you'll have to put in the first row straight into the database as this can only clone and paster rows not create them.&lt;br /&gt;&lt;br /&gt;I posted this in a rush, ask if i did something silly</description></item><item><title>Re: Automatically insert rows into repeating section</title><link>https://www.infopathdev.com:443/forums/thread/17093.aspx</link><pubDate>Mon, 12 Dec 2005 02:42:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17093</guid><dc:creator>cburgess</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17093.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17093</wfw:commentRss><description>That's what I'm hoping to get to, but the reason why I started on a repeating section is because these will end up as specific rows withing a database table. (Sorry, I just realized that I didn't mention this in the first post.) The schema of this table will look like:&lt;br /&gt;&lt;br /&gt;[CustomerID (int) | FruitType (int) | OrderAmount (int)]&lt;br /&gt;&lt;br /&gt;You can see how I would naturally end up with a repeating section based on this table's schema, but I want to force insert 3 rows into this table with different FruitTypes.&lt;br /&gt;&lt;br /&gt;I've tried playing around with your suggestion, but Infopath will map the text-boxes to the same data element. Whenever I type a number into one text-box it will replicate the result to the other two.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Chris</description></item><item><title>Re: Automatically insert rows into repeating section</title><link>https://www.infopathdev.com:443/forums/thread/17092.aspx</link><pubDate>Thu, 08 Dec 2005 01:36:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17092</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17092.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17092</wfw:commentRss><description>I must be oversimplifying this... Use a regular section (instead of repeating) or even no section at all and put three textboxes beside the three fruits.  The textboxes will default to zero and the user can change each one (data validation would be num &amp;gt;= 0).  If you play around with the way the textboxes look you could get them to look however you want.&lt;br /&gt;&lt;br /&gt;------------------------------------------&lt;br /&gt;FruitType Number&lt;br /&gt;Orange [numOrange textbox default=0 datatype=integer]&lt;br /&gt;Apple [numApple textbox default=0 datatype=integer]&lt;br /&gt;Pear [numPear textbox default=0 datatype=integer]&lt;br /&gt;------------------------------------------&lt;br /&gt;&lt;br /&gt;Hope this helps!&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;</description></item><item><title>Automatically insert rows into repeating section</title><link>https://www.infopathdev.com:443/forums/thread/16759.aspx</link><pubDate>Wed, 07 Dec 2005 23:22:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16759</guid><dc:creator>cburgess</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16759.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=16759</wfw:commentRss><description>Hi there,&lt;br /&gt;&lt;br /&gt;I'm developing a form and have come to a problem. Instead a repeating section, I want the users to be only able to enter values into three set fields for the same table.&lt;br /&gt;&lt;br /&gt;To give you an example, I have a table where users can enter the number of a particular type of fruit that they'd like to order. I have only three types of fruit. I want them to have to enter a number for each type of fruit, instead of making the field a repeating section.&lt;br /&gt;&lt;br /&gt;Instead of:&lt;br /&gt;------------------------------------------&lt;br /&gt;&lt;font size="3"&gt;&lt;b&gt;FruitType    Number&lt;/b&gt;&lt;/font id="size3"&gt;&lt;br /&gt;[drop-down containing fruit types]    [&lt;font color="red"&gt;*&lt;/font id="red"&gt;]&lt;br /&gt;&lt;font size="1"&gt;Insert new FruitType&lt;/font id="size1"&gt;&lt;br /&gt;------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I want:&lt;br /&gt;------------------------------------------&lt;br /&gt;&lt;b&gt;FruitType    Number&lt;/b&gt;&lt;br /&gt;Orange     &lt;font color="red"&gt;*&lt;/font id="red"&gt;&lt;br /&gt;Apple      &lt;font color="red"&gt;*&lt;/font id="red"&gt;&lt;br /&gt;Pear       &lt;font color="red"&gt;*&lt;/font id="red"&gt;&lt;br /&gt;------------------------------------------&lt;br /&gt;&lt;br /&gt;Is this possible at all?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Chris</description></item></channel></rss>