<?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>Saving Forms as New to DBXL</title><link>https://www.infopathdev.com:443/blogs/jimmy/archive/2010/06/16/saving-forms-as-new-to-dbxl.aspx</link><description>Typically when you open a form from DBXL and re-submit it, your modified form will be saved on top of the one you opened. This is a very useful feature, and undoubtedly what you want to do most of the time, but sometimes you will want to save a new copy</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>re: Saving Forms as New to DBXL</title><link>https://www.infopathdev.com:443/blogs/jimmy/archive/2010/06/16/saving-forms-as-new-to-dbxl.aspx#66481</link><pubDate>Thu, 12 May 2011 08:55:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66481</guid><dc:creator>Patrick Halstead</dc:creator><description>&lt;p&gt;Hi ZhenYuan and sorry for missing this. If you are using qRules, we have a command called RemoveDBXLPI which will also do this. &lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=66481" width="1" height="1"&gt;</description></item><item><title>re: Saving Forms as New to DBXL</title><link>https://www.infopathdev.com:443/blogs/jimmy/archive/2010/06/16/saving-forms-as-new-to-dbxl.aspx#62097</link><pubDate>Thu, 09 Dec 2010 02:57:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62097</guid><dc:creator>ZhenYuan</dc:creator><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;I tried using your code method but my forms are still submitted as a new version instead of as a new docid. I placed the code below on my form's loading event and then opened a submitted form from DBXL and resubmitted the form. The end result was the newly submitted form was submitted as a new version of the original docID. Did I miss out anything?&lt;/p&gt;
&lt;p&gt;My code:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim piXPath As String&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim pi As XPathNavigator&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;piXPath = &amp;quot;/processing-instruction()[name() = 'QdabraDBXL']&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pi = Me.MainDataSource.CreateNavigator()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pi.SelectSingleNode(piXPath, Me.NamespaceManager).DeleteSelf()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Catch delDOCID As Exception&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Return&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End Try &lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=62097" width="1" height="1"&gt;</description></item></channel></rss>