<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Submitting to "this" document library</title><link>https://www.infopathdev.com:443/forums/thread/63297.aspx</link><pubDate>Tue, 18 Jan 2011 11:18:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63297</guid><dc:creator>renato</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63297.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=63297</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m looking for a way to dynamically change the submit location of my form template, published on Sharepoint. Basically:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;I publish the template on Sharepoint as a site content type&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;I then use the site content type into 2 distinct form libraries&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;I would like to submit forms created from FormLibrary A to FormLibraryA, and forms created from FormLibraryB to FormLibraryB&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;I&amp;#39;m assuming that in order to do this, I would need (OnLoad, for example) to retrieve the path of the form library where the user clicked on the &amp;quot;New&amp;quot; button&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;The form need to run in the client, IP 2003&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;I found &lt;a title="this" href="http://blogs.msdn.com/b/infopath/archive/2006/11/08/submitting-to-this-document-library.aspx?PageIndex=3#comments" target="_blank"&gt;this &lt;/a&gt;article which shows quite in detail how to do that, but, as one of the comments mentions, this will not work for a site content type; the alternative to that is to maintain different copies of the template, but I have 7 of them so they would then become 14, which I would really like to avoid...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any help is really appreciated,&lt;/p&gt;
&lt;p&gt;Renato&lt;/p&gt;</description></item></channel></rss>