<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Tips for moving between development and production databases?</title><link>https://www.infopathdev.com:443/forums/thread/33291.aspx</link><pubDate>Tue, 21 Oct 2008 06:55:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33291</guid><dc:creator>Graeme</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33291.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=33291</wfw:commentRss><description>&lt;p&gt;Ah, but I&amp;#39;m talking about the data retrieval connection strings for filling data into list boxes etc. when the form is opened.&amp;nbsp;Sharepoint is not in the picture.&lt;/p&gt;</description></item><item><title>Re: Tips for moving between development and production databases?</title><link>https://www.infopathdev.com:443/forums/thread/33289.aspx</link><pubDate>Tue, 21 Oct 2008 06:17:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33289</guid><dc:creator>chandrakanth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33289.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=33289</wfw:commentRss><description>&lt;p&gt;Add a secondary xml(let it be ViewOptions.Xml) to your Infopath form. In the ViewOptions.Xml add a SharePointUrl Node in that node place your sharepoint URL to that node.&lt;/p&gt;
&lt;p&gt;for example the viewOptions.XML is:&lt;/p&gt;
&lt;p&gt;&amp;lt;ViewOptions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;sharePointFolderUrl&amp;gt;Local Config&amp;lt;/sharePointFolderUrl&amp;gt;&lt;br /&gt;&amp;lt;/ViewOptions&amp;gt;&lt;/p&gt;
&lt;p&gt;Now get the viewoptions.XMl dom (let the viewoptions.XMl dom be domViewOptions) into your code for getting the SharePoint URL.Use&amp;nbsp; the below code for submitting your infopath form to the sharepoint.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;public bool SubmitDataToSharePoint()&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;string sharePointFolderPath = GetNodeValue(domViewOptions, &amp;quot;/ViewOptions/sharePointFolderUrl&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DAVAdapter sharePoint = (DAVAdapter)thisXDocument.DataAdapters[submitAdapterName];&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sharePoint.FileName&amp;nbsp;= fileName;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sharePoint.FolderURL = sharePointFolderPath;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sharePoint.SubmitData(dataNode);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;catch(Exception ex)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;string sMessage = FAILED_UNKNOWN;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(-1 != ex.Message.IndexOf(&amp;quot;DAVAdapter&amp;quot;))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sMessage = FAILED_SUBMIT_SHAREPOINT;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else if(-1 != ex.Message.IndexOf(&amp;quot;validation errors&amp;quot;))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sMessage = FAILED_SUBMIT_VALIDATION;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Alert(sMessage);&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&amp;nbsp;true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Like this you can place all your URL&amp;#39;s in the ViewOptions.XML and can use that URl&amp;#39;s into your code ,instead of changing the Manifest.xsn everytime.&lt;/p&gt;</description></item><item><title>Re: Tips for moving between development and production databases?</title><link>https://www.infopathdev.com:443/forums/thread/33256.aspx</link><pubDate>Mon, 20 Oct 2008 13:59:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33256</guid><dc:creator>Graeme</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33256.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=33256</wfw:commentRss><description>&lt;p&gt;Not sure what you mean here. The connection string is stored in the xsn file for each control. How do I replace them all by calling an external file?&amp;nbsp; Can you give an example please?&lt;/p&gt;</description></item><item><title>Re: Tips for moving between development and production databases?</title><link>https://www.infopathdev.com:443/forums/thread/33175.aspx</link><pubDate>Fri, 17 Oct 2008 08:23:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33175</guid><dc:creator>Hari Krishna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33175.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=33175</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Add a external resource xml file and store all the connections which has to be set while publishing.&lt;/p&gt;
&lt;p&gt;Call the external file which is added in the code. You can make your publishing easy by keeping a file with all the connections given once and it can be used when ever you publish on to Production.&lt;/p&gt;</description></item><item><title>Tips for moving between development and production databases?</title><link>https://www.infopathdev.com:443/forums/thread/33149.aspx</link><pubDate>Thu, 16 Oct 2008 10:03:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33149</guid><dc:creator>Graeme</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33149.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=33149</wfw:commentRss><description>&lt;p&gt;The only way I have seen so far is to edit the xml in manifest.xsf&amp;nbsp;and replace the server name on all connection strings with the name of the production server before publishing.&amp;nbsp; Surely there is a less stoneage way?&lt;/p&gt;</description></item></channel></rss>