<?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>Re: Submitting form A to Lib A and form B to Lib B from form B</title><link>https://www.infopathdev.com:443/forums/thread/55803.aspx</link><pubDate>Fri, 11 Jun 2010 13:24:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55803</guid><dc:creator>rZ3A8zj8neCW3K</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55803.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55803</wfw:commentRss><description>&lt;p&gt;Yes you can.&amp;nbsp; What I would do is set up a small list on SharePoint that has the Form name (or some ID), and the GUID and location of your CAML document you are using.&amp;nbsp; Set it up initially to go to library A, and then programmatically switch it to use B.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;An example to get you thinking:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Store the GUID as a hidden form attribute and reset it:&lt;/p&gt;&lt;font size="2"&gt;MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/@my:H_GUID&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).SetValue(assessInfo.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;@GUID&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;Resetting the file location of the CAML document you&amp;#39;re using to upload:&amp;nbsp;&lt;/p&gt;((&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;FileQueryConnection&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.DataConnections[RECEIVE_ANSWERLIST_CAML]).FileLocation = assessInfo.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;@CAML_URL&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;((&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;FileQueryConnection&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.DataConnections[RECEIVE_ANSWERLIST_CAML]).Execute(); &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//Force new CAML URL&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Submitting form A to Lib A and form B to Lib B from form B</title><link>https://www.infopathdev.com:443/forums/thread/55306.aspx</link><pubDate>Tue, 25 May 2010 21:35:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55306</guid><dc:creator>Aruna Akella</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55306.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55306</wfw:commentRss><description>&lt;font size="3" face="Calibri"&gt;We have a tool called qRules that does this, and you can check that out &lt;/font&gt;&lt;a href="http://www.infopathdev.com/files/folders/qrules/entry34834.aspx"&gt;&lt;font size="3" face="Calibri"&gt;here&lt;/font&gt;&lt;/a&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;. &lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;Also, go through &lt;/font&gt;&lt;a href="http://www.infopathdev.com/files/folders/qrules/entry54050.aspx"&gt;&lt;font size="3" face="Calibri"&gt;this documentation&lt;/font&gt;&lt;/a&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt; that does something similar to what you asked. &lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Hope that helps!&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Submitting form A to Lib A and form B to Lib B from form B</title><link>https://www.infopathdev.com:443/forums/thread/55296.aspx</link><pubDate>Tue, 25 May 2010 17:57:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55296</guid><dc:creator>arcad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55296.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55296</wfw:commentRss><description>&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;I am trying to figure out if it would be possible to submit form B to library B in addition to submitting form A to library A while filling out form A. I know I can submit forms to different libraries at the same time but I am trying to submit form A to its own library (filled out with data) and an empty form B to library B.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks in advance!&lt;/p&gt;</description></item></channel></rss>