<?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: Add a New Blank Row to a Repeating Table More opti</title><link>https://www.infopathdev.com:443/forums/thread/15144.aspx</link><pubDate>Thu, 22 Mar 2007 03:17:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15144</guid><dc:creator>YoungSC</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15144.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15144</wfw:commentRss><description>I sat down with a colleague and we nutted it out.  For those who may need help for the solution in VB, here it is:&lt;br /&gt;&lt;br /&gt;Dim newxmlstring As String&lt;br /&gt;Dim newrow As XmlDocument = New XmlDocument&lt;br /&gt;Dim Parent As XPathNavigator&lt;br /&gt;&lt;br /&gt;'Build XML needed for empty node&lt;br /&gt;newxmlstring = "&amp;lt;my:group4&amp;gt;&amp;lt;my:field1&amp;gt;&amp;lt;/my:field1&amp;gt;&amp;lt;my:field2&amp;gt;&amp;lt;/my:field2&amp;gt;&amp;lt;my:field3&amp;gt;&amp;lt;/my:field3&amp;gt;&amp;lt;/my:group4&amp;gt;"&lt;br /&gt;'Create a new empty node&lt;br /&gt;newrow.AppendChild(newrow.CreateElement("group4"))&lt;br /&gt;'Define Parent&lt;br /&gt;Parent = MainDataSource.CreateNavigator.SelectSingleNode("/my:myFields/my:group3", NamespaceManager)&lt;br /&gt;'Add new node to parent as XML&lt;br /&gt;Parent.AppendChild(newxmlstring)</description></item><item><title>Re: Add a New Blank Row to a Repeating Table More opti</title><link>https://www.infopathdev.com:443/forums/thread/15143.aspx</link><pubDate>Thu, 15 Mar 2007 23:09:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15143</guid><dc:creator>YoungSC</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15143.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15143</wfw:commentRss><description>Bueller.................Bueller.................Bueller................. :)</description></item><item><title>Re: Add a New Blank Row to a Repeating Table More opti</title><link>https://www.infopathdev.com:443/forums/thread/15142.aspx</link><pubDate>Thu, 01 Mar 2007 23:30:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15142</guid><dc:creator>YoungSC</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15142.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15142</wfw:commentRss><description>Thanks for the reply Nukkumatti,&lt;br /&gt;&lt;br /&gt;I'm using InfoPath 2007 and it didn't like things like thisXDocument and IXMLDOMDocument.  I tried C# 2003 compatible and it didn't like async, loadXML &amp; documentElement.&lt;br /&gt;&lt;br /&gt;If possible I was hoping for code in VB as I don't know the other languages.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Simon</description></item><item><title>Re: Add a New Blank Row to a Repeating Table More opti</title><link>https://www.infopathdev.com:443/forums/thread/15141.aspx</link><pubDate>Thu, 01 Mar 2007 07:15:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15141</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15141.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15141</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;please refer to the follwing thread &lt;a href='http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=3970&lt;br /&gt;' target='_blank' title='http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=3970&lt;br /&gt;'&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=3970&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=3970&lt;/a&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Let me know if it helped.</description></item><item><title>Add a New Blank Row to a Repeating Table More opti</title><link>https://www.infopathdev.com:443/forums/thread/13071.aspx</link><pubDate>Thu, 01 Mar 2007 06:33:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13071</guid><dc:creator>YoungSC</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13071.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13071</wfw:commentRss><description>I want to mimic the functionality of the "Insert Item" function in &lt;br /&gt;InfoPath for a repeating table using code triggered by a button &lt;br /&gt;press.  The reason is, I am designing forms for users which includes &lt;br /&gt;people who don't have the best computer skills and may not notice or &lt;br /&gt;know how to use this InfoPath function. &lt;br /&gt;&lt;br /&gt;I have found the following code: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            Dim row As XPathNavigator &lt;br /&gt;            row = MainDataSource.CreateNavigator.SelectSingleNode("/ &lt;br /&gt;my:myFields/my:group3/my:group4", NamespaceManager) &lt;br /&gt;            row.Clone() &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            Dim parent As XPathNavigator &lt;br /&gt;            parent = MainDataSource.CreateNavigator.SelectSingleNode("/ &lt;br /&gt;my:myFields/my:group3", NamespaceManager) &lt;br /&gt;            parent.AppendChild(row) &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This works, but also adds any text entered in the child fields of &lt;br /&gt;cloned node.  I want to add a new row without any text.  I have tried &lt;br /&gt;individually changing the text values of the children nodes using &lt;br /&gt;row.selectSingleNode("XPath").text, but text isn't compatible with the &lt;br /&gt;XPathNavigator object. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have very limited programming experience so I am not familiar with a &lt;br /&gt;correct object or solution to what I am trying to achieve and would &lt;br /&gt;appreciate some direction. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>