<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Programatically add another instance of a repeating Section (HOW?, This is driving me crazy)</title><link>https://www.infopathdev.com:443/forums/thread/23325.aspx</link><pubDate>Fri, 28 Sep 2007 00:01:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23325</guid><dc:creator>RLudington</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23325.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=23325</wfw:commentRss><description>&lt;p&gt;Yes, I believe that is correct.&amp;nbsp; I am fairly new at this and could use the help.&amp;nbsp; The code in my post is an actual code snip of one of our forms.&lt;/p&gt;</description></item><item><title>Re: Programatically add another instance of a repeating Section (HOW?, This is driving me crazy)</title><link>https://www.infopathdev.com:443/forums/thread/23324.aspx</link><pubDate>Thu, 27 Sep 2007 23:46:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23324</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23324.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=23324</wfw:commentRss><description>&lt;p&gt;Just to clarify, you have a datebase based template with subtables?&lt;/p&gt;
&lt;p&gt;Then you want to automate the insert of a repaeting subsection? &lt;/p&gt;
&lt;p&gt;Instead of the user clicking insert new item you want to perform this action based on an event or programatically? &lt;/p&gt;
&lt;p&gt;Is this correct?&lt;/p&gt;</description></item><item><title>Programatically add another instance of a repeating Section (HOW?, This is driving me crazy)</title><link>https://www.infopathdev.com:443/forums/thread/23323.aspx</link><pubDate>Thu, 27 Sep 2007 21:28:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23323</guid><dc:creator>RLudington</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23323.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=23323</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-pagination:none;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;Is there a way to programatically insert another instance of a repeating section, (depending on another event or user selection) ?&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The repeating section is tied to a SQL table called Formdata through the Main data connection&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;.. .&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;I assume its a form of Xdocument, but can not figure this out. and I can find no reference online.&lt;/span&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-pagination:none;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-pagination:none;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;A code snip would be great...&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;(When we add the sections manually, we reference the data by using a reference to Formdata_1[whatever instance]&lt;/span&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-pagination:none;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;Like this :&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;(for assigning a value)&amp;nbsp; (using Jscript)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-pagination:none;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;to assign a value to the 2nd instance of the repeating section&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-pagination:none;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;var fname=&amp;quot;Formb&amp;quot;;&lt;/span&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-pagination:none;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;XDocument.DOM.selectSingleNode( &amp;quot;/dfs:myFields/dfs:dataFields/d:tbl_FormData_1[2]/@Form_Name&amp;quot;).value=fname;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-pagination:none;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;I have been searching for an answer to this for quit a while.&amp;nbsp; Thanks in advance.&lt;/span&gt; 
&lt;p&gt;We are using Infopath 2003.&lt;/p&gt;</description></item></channel></rss>