<?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>Dynamic change creat a retrieve connection</title><link>https://www.infopathdev.com:443/forums/thread/58362.aspx</link><pubDate>Thu, 26 Aug 2010 10:19:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58362</guid><dc:creator>Jakster</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58362.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58362</wfw:commentRss><description>&lt;p&gt;Good day,&lt;/p&gt;&lt;p&gt;I am looking everywhere for a code solution to this problem.&lt;/p&gt;&lt;p&gt;I have a projects Portal where each project will create a new subsite from a template.&lt;br /&gt;This template contains a few Infopath forms and&amp;nbsp; some other stuff.&lt;br /&gt;The problem is that some of the Infopath documents need to retrieve info from the top site (no issues as all subsites will connect correctly) and some need to connect to an Infopath library RELATIVE to the current site.&lt;br /&gt;&lt;br /&gt;Example&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Site Structure&lt;/p&gt;&lt;p&gt;Top Lvl&lt;br /&gt;---Proj A (Template site including Form A and B)&lt;br /&gt;---Proj B (Template site including Form A and B)&lt;/p&gt;&lt;p&gt;The Template site has connections in to the top level site and submits relative via code &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Form A (in Porj A) - All connections are working as defined in Infopath to the top level site and submits &amp;quot;relative&amp;quot; to Proj A (via code)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Form B (In Proj B) - Few connections to top level lists and Form libraries BUT needs to connect to Form A relative (current connection is set top level in the site template)&lt;br /&gt;&lt;br /&gt;So I need to in code change the connection to the relative path (seems to be impossible but the preferred solution)&lt;br /&gt;OR&lt;br /&gt;I need to create a relative UDC connection library in the template site (Should work but changes in the connections would require changing ALL Proj sites manually, looking at a lot of projects)&lt;br /&gt;OR&lt;br /&gt;using code to a webservice but getting the form library GUID to the relative subsite will be an issue (force me to code on the server when adding Sharepoint dll) &lt;/p&gt;&lt;p&gt;Any ideas or suggestions? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>