<?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: Submit one infopath form to 2 form libraries having different form templates</title><link>https://www.infopathdev.com:443/forums/thread/37237.aspx</link><pubDate>Fri, 16 Jan 2009 16:29:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37237</guid><dc:creator>utkarsh2012</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37237.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=37237</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hey Anuma, Thanks for the reply!&lt;/p&gt;&lt;p&gt;Yea I get that the href is same for both the forms so its referencing the First Form whereas it should reference the Second Form.&lt;/p&gt;&lt;p&gt;We are able to change the reference by downlaoding the xml by managed code and again uploading it. But, its a very very slow process if we talk about 1000+ forms. So i needed a way to &lt;b&gt;directly submit&lt;/b&gt; the form without 1. Downlaoding the form, 2. Editing the form to correct href, 3. Uplaoding the form.&lt;/p&gt;&lt;p&gt;Hope i am clear... :-) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Submit one infopath form to 2 form libraries having different form templates</title><link>https://www.infopathdev.com:443/forums/thread/37231.aspx</link><pubDate>Fri, 16 Jan 2009 14:30:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37231</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37231.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=37231</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Hi,&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;This issue is coming because:&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;When you open the form from first library, “href” in that form is pointed to first library only. And you are submitting that same form to first and second libraries. So, both libraries forms are pointed to first library only.&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;You need to change the href to second library while submitting the form to second library.&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;To work with already submitted forms, just re-link the forms in second forms library.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Submit one infopath form to 2 form libraries having different form templates</title><link>https://www.infopathdev.com:443/forums/thread/37191.aspx</link><pubDate>Fri, 16 Jan 2009 05:01:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37191</guid><dc:creator>utkarsh2012</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37191.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=37191</wfw:commentRss><description>&lt;p&gt;Any one??&lt;/p&gt;</description></item><item><title>Submit one infopath form to 2 form libraries having different form templates</title><link>https://www.infopathdev.com:443/forums/thread/37159.aspx</link><pubDate>Thu, 15 Jan 2009 16:36:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37159</guid><dc:creator>utkarsh2012</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37159.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=37159</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi&lt;/p&gt;&lt;p&gt;I am trying to SUBMIT: FORM X to &lt;b&gt;FORM X - FORM LIBRARY&lt;/b&gt;&amp;nbsp; and at the same time submit the same data to &lt;b&gt;FORM Y - FORM LIBRARY&lt;/b&gt; by managed code in c#.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;FORM X and FORM Y do not have the same form templates,&lt;/p&gt;&lt;p&gt; I need the data transferred but when I am creating two separate Data Connections one for submitting to FORM X and another to FORM Y on FORM X, everything is going fine ans data is submitted to both the form libraries, &lt;/p&gt;&lt;p&gt;BUT the when I open a submitted form (.xml) on FORM Y, it opens up with the form template of FORM X.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The problem is the data being submitted to the second form library is taking the template.xsn file of the 1st form library.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have to do it by managed code, this is the code im using:&lt;/p&gt;&lt;p&gt;&lt;font color="blue" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string&lt;/font&gt;&lt;font size="2"&gt; xpath = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:field1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt; 
&lt;br /&gt;&lt;font size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;IXMLDOMNode&lt;/font&gt;&lt;font size="2"&gt; field1 = 
thisXDocument.DOM.selectSingleNode(xpath);&lt;/font&gt; &lt;br /&gt;&lt;font size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;/font&gt;&lt;font color="blue" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; oldValue = 
field1.text; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Read&lt;/font&gt; &lt;br /&gt;&lt;font size="2"&gt;&amp;nbsp; 
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; field1.text = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;data1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;; &amp;nbsp; &amp;nbsp; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Write&lt;/font&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/font&gt;&lt;font color="blue" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; 
xpath1 = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:field2&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt; &lt;br /&gt;&lt;font size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;IXMLDOMNode&lt;/font&gt;&lt;font size="2"&gt; field2 = 
thisXDocument.DOM.selectSingleNode(xpath1);&lt;/font&gt; &lt;br /&gt;&lt;font size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;/font&gt;&lt;font color="blue" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; oldValue1 = 
field2.text; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Read&lt;/font&gt; &lt;br /&gt;&lt;font size="2"&gt;&amp;nbsp; 
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; field2.text = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;data2&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;; &amp;nbsp; &amp;nbsp; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Write&lt;/font&gt; 
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;DAVAdapter&lt;/font&gt;&lt;font size="2"&gt; MainSubmit = (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;DAVAdapter&lt;/font&gt;&lt;font size="2"&gt;)thisXDocument.DataAdapters[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;SharePointLibrary_Submit1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;];&lt;/font&gt; 
&lt;br /&gt;&lt;font size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MainSubmit.Submit();&lt;/font&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I know i am missing out some where...please help! :-)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>