<?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>Deploy Form Template to Different sites and adjust Submit UDC automatically</title><link>https://www.infopathdev.com:443/forums/thread/85113.aspx</link><pubDate>Thu, 06 Dec 2012 13:45:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85113</guid><dc:creator>parsonsm11111</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85113.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=85113</wfw:commentRss><description>&lt;div class="ForumPostContentText"&gt;
&lt;p&gt;I have a form template that I want to use for various sites within the same site collection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Each site will have a form library and the template must have this local form library as its submit target.&amp;nbsp; So, I have a data connection that points to this library.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I create a site template from this site.&amp;nbsp; The problem is that when I use this site template to create a new site, the data connection still points to the original site.&lt;/p&gt;
&lt;p&gt;My issue is &lt;u&gt;not &lt;/u&gt;in moving the form from a development environment to a production environment.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;These sites may be provisioned by users and I would like there to be no manual steps:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I do not want to have to manually change the data connection through the wizard. &lt;/li&gt;
&lt;li&gt;Creating a server-relative UDC file also wont help since this central UDC file will not point to my new site&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Any suggestions?&amp;nbsp;&amp;nbsp;Could web services or HTTP submits help me?&lt;/p&gt;
&lt;p&gt;At this point, I am contemplating writing&amp;nbsp;.NET code to unpackage the xsn and manually change the target of the&amp;nbsp;data&amp;nbsp;connection.&amp;nbsp; I would really hate to do this though...&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description></item></channel></rss>