<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Custom button for adding a new row to a repeatable table - Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/89904.aspx</link><pubDate>Sun, 19 May 2013 20:34:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89904</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89904.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=89904</wfw:commentRss><description>&lt;p&gt;Hi Araisbec and welcome!&lt;/p&gt;&lt;p&gt;This is a relatively simple thing to do an there are lots of code snippets in this forum for doing this. &lt;/p&gt;&lt;p&gt;Make sure you are selecting the namespace first before you attempt to add it.&lt;/p&gt;&lt;p&gt;In fact, this request is so common that we included it in the qRules plugin that we offer - the command is called Insert.&lt;/p&gt;&lt;p&gt;Qdabra Software pays for this forum and our goal is a response rate of 90%.&lt;/p&gt;&lt;p&gt;However, we can&amp;#39;t answer every specific coding request - it would take too much time and we&amp;#39;d go out of business. qRules plugin was meant to be the generic solution.&lt;/p&gt;&lt;p&gt;So, several options for you:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Search the forum more for posts on this&lt;/li&gt;&lt;li&gt;Wait for someone else to respond with code snippet &amp;nbsp;&lt;/li&gt;&lt;li&gt;Purchase a single support pack from Qdabra dot com and we&amp;#39;ll help next week &lt;/li&gt;&lt;li&gt;Install qRules free trial and use the Insert command (this can be done in &amp;lt;5 minutes)&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Best of luck!&lt;/p&gt;</description></item><item><title>Custom button for adding a new row to a repeatable table - Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/89890.aspx</link><pubDate>Fri, 17 May 2013 17:50:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89890</guid><dc:creator>araisbec</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89890.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=89890</wfw:commentRss><description>Hello,

First post here, and I am a complete newb to Infopath as well as Visual Basic, although I have programming experience in many other languages.

I would like to add a button to my InfoPath form (that I created using the Word -&amp;gt; Infopath convertion tool in Infopath 2010) that adds new rows to a repeatable table I have. I have tried a few solutions, but each of them gives me a plethura of errors from the vb code editor (built into Infopath).

For example, I have tried adding a new row with the following line:

XDocument.View.ExecuteAction(&amp;quot;xCollection::insert&amp;quot;, &amp;quot;group11_87&amp;quot;)

For this, I get &amp;quot;Name &amp;#39;XDocument&amp;#39; is not declared&amp;quot;...

I have also tried another solution that uses the following line:

XPathNavigator myNav = this.MainDataSource.CreateNavigator().SelectSingleNode(xpath, NamespaceManager);

This errors out with &amp;quot;&amp;#39;XPathNavigator&amp;#39; is a type and cannot be used as an expression&amp;quot;, &amp;quot;Name &amp;#39;myNav&amp;#39; is not declared&amp;quot;, and other gems.

I am used to programming mainly in Java, Python, C, and a few other languages that are not specific to Microsoft Windows... Basically anything I try and enter into the event handler (called when my button is clicked), I get a ton of error messages.

Am I missing some required Import statement? Any help would be very much appreciated, as I would like to learn a lot more about custom development in InfoPath...

Thank You!</description></item></channel></rss>