<?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: button to add new row(s) to repeating table (infopath 2010 VB)</title><link>https://www.infopathdev.com:443/forums/thread/78982.aspx</link><pubDate>Mon, 28 May 2012 19:49:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78982</guid><dc:creator>SPowell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78982.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=78982</wfw:commentRss><description>Hey there,
I&amp;#39;m using this exact code to generate a new repeating table row from a button and I&amp;#39;m getting an error in my code that says XDocument is not declared. I&amp;#39;m not very good with InfoPath VB, however I thought XDocument was some sort of default global variable to refer to the current document, so this isn&amp;#39;t entirely making sense to me.
I&amp;#39;ve also tried thisXDocument, and Me. however nothing works.

I am using InfoPath 2007. Please let me know what I&amp;#39;m doing wrong, I&amp;#39;m getting a little desperate here.

Thank you so much.</description></item><item><title>Re: button to add new row(s) to repeating table (infopath 2010 VB)</title><link>https://www.infopathdev.com:443/forums/thread/72366.aspx</link><pubDate>Fri, 25 Nov 2011 14:21:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72366</guid><dc:creator>Kear777</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72366.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=72366</wfw:commentRss><description>&lt;p&gt;According the&amp;nbsp;page below it should definitly be under the Advanced Tab (can&amp;#39;t confirm as I&amp;#39;m using 2003)&lt;/p&gt;
&lt;p&gt;Just go here and do a search for xCollection that might give you an idea of where to look.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://office.microsoft.com/en-us/infopath-help/controls-101-choice-groups-HA001118518.aspx"&gt;http://office.microsoft.com/en-us/infopath-help/controls-101-choice-groups-HA001118518.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: button to add new row(s) to repeating table (infopath 2010 VB)</title><link>https://www.infopathdev.com:443/forums/thread/72365.aspx</link><pubDate>Fri, 25 Nov 2011 13:08:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72365</guid><dc:creator>paolo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72365.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=72365</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I only see accessibility and form merging options in 2010 under the advanced tab&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: button to add new row(s) to repeating table (infopath 2010 VB)</title><link>https://www.infopathdev.com:443/forums/thread/72364.aspx</link><pubDate>Fri, 25 Nov 2011 12:42:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72364</guid><dc:creator>Kear777</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72364.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=72364</wfw:commentRss><description>&lt;p&gt;Paolo,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;On 2003 xCollection can be seen on the Advanced tab and it&amp;#39;s under a heading &amp;#39;Code: xmlEdit Names&amp;#39;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;K&lt;/p&gt;</description></item><item><title>Re: button to add new row(s) to repeating table (infopath 2010 VB)</title><link>https://www.infopathdev.com:443/forums/thread/72363.aspx</link><pubDate>Fri, 25 Nov 2011 12:12:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72363</guid><dc:creator>paolo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72363.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=72363</wfw:commentRss><description>&lt;p&gt;Hallo Kear,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;thanks for your answer. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;When looking at the properties of my repeating table, I can see 4 tabs - Data,Display,Master/Detail,Advanced. None of them has xCollection mentioned anywhere...&lt;/p&gt;&lt;p&gt;I did notice the single fields have somethging like&lt;/p&gt;&lt;p&gt; ViewContext: CTRL 39 &lt;/p&gt;&lt;p&gt;but that&amp;#39;s all I could find...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: button to add new row(s) to repeating table (infopath 2010 VB)</title><link>https://www.infopathdev.com:443/forums/thread/72362.aspx</link><pubDate>Fri, 25 Nov 2011 10:32:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72362</guid><dc:creator>Kear777</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72362.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=72362</wfw:commentRss><description>&lt;p&gt;Hi Paolo,&lt;/p&gt;
&lt;p&gt;This works on 2003 hopefully this will work on 2010 also.&lt;/p&gt;
&lt;p&gt;First you need to check the properties of the repeating section, you&amp;#39;re looking for something called the xCollection (please note this will be different for each instance of the repeating section), lets say for example repeatingGroup_75.&lt;/p&gt;
&lt;p&gt;You can then use the following code&lt;/p&gt;
&lt;p&gt;on error resume&lt;br /&gt;xDocument.View.executeAction &amp;quot;xCollection::insert&amp;quot;, &amp;quot;repeatingGroup_75&amp;quot;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve added the on error resume so that if you use the same button on different views it can try all of them until it hits the right xCollection for the view&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve just noticed you&amp;#39;re asking for a solution for repeating tables where as this is for repeating sections, it might work though.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Cheers&lt;/p&gt;
&lt;p&gt;K&lt;br /&gt;&lt;/p&gt;</description></item><item><title>button to add new row(s) to repeating table (infopath 2010 VB)</title><link>https://www.infopathdev.com:443/forums/thread/72361.aspx</link><pubDate>Fri, 25 Nov 2011 10:23:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72361</guid><dc:creator>paolo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72361.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=72361</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hallo,&lt;/p&gt;&lt;p&gt;I would like to create a button to add a new row to a repeating table programmatically in infopath 2010&lt;/p&gt;&lt;p&gt; (such that the user can add more records if needed). &lt;br /&gt;&lt;/p&gt;&lt;p&gt;(I am aware you don&amp;#39;t really need to code that, but I would like to implement that in VB code as&lt;/p&gt;&lt;p&gt;a basis for future more advanced functions - so I am trying to learn how it works).&lt;/p&gt;&lt;p&gt;In the button code ( &amp;quot;clicked&amp;quot; procedure) I was trying the following code &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Dim MainRepeatingTable As XPathNavigator&lt;br /&gt;&amp;nbsp;MainRepeatingTable = Me.MainDataSource.CreateNavigator&lt;br /&gt;&amp;nbsp;MainRepeatingTable.SelectSingleNode(&amp;quot;//dfs:dataFields/d:myRepeatingTableGroup&amp;quot;, NamespaceManager).AppendChild()&lt;br /&gt;&lt;/p&gt;&lt;p&gt;But this is not working... No errors, but also no changes in the shown repeating table. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I would be grateful if someone could provide some hints for me. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Paolo &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>