<?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>Re: Using 1 form library to support many templates!</title><link>https://www.infopathdev.com:443/forums/thread/15911.aspx</link><pubDate>Tue, 02 May 2006 09:14:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15911</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15911.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15911</wfw:commentRss><description>Question 1: Yes&lt;br /&gt;&lt;br /&gt;Question 2: PI - Processing Instruction :- PI is used by InfoPath to point your XML to the correct template. If you open one of your xml files, the text above your root node is called PI.&lt;br /&gt;&lt;br /&gt;PI looks similar to this&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;&amp;lt;?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:ProjectName:-myXSD-2005-07-28T22-51-00" href="http://servername/sites/libraryname/forms/template.xsn" solutionVersion="1.0.0.179" productVersion="11.0.6357" PIVersion="1.0.0.0" ?&amp;gt;&lt;br /&gt;&amp;lt;?mso-application progid="InfoPath.Document"?&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Question 3: After submitting the form you need to reopen the form to work with the new template.</description></item><item><title>Re: Using 1 form library to support many templates!</title><link>https://www.infopathdev.com:443/forums/thread/15910.aspx</link><pubDate>Tue, 02 May 2006 06:09:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15910</guid><dc:creator>potpourri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15910.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15910</wfw:commentRss><description>hi Agni, thanks for the speedy reply :)&lt;br /&gt;&lt;br /&gt;A couple of questions regarding the solution:&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;//Get the root node&lt;br /&gt;IXMLDOMNode rootNode = getNode("ROOTNODEXPATH");&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;In JScript equivalent, would this be something like:&lt;br /&gt;&lt;i&gt;var rootNode = XDocument.DOM.selectSingleNode("/my:myFields");&lt;/i&gt;&lt;br /&gt;?&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;//Get the new PI which points to the new template&lt;br /&gt;string newPI = "PIOFNEWTEMPLATE";&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;I'm sorry if this is too obvious, but what's PI?&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;br /&gt;//Get reference to the Sharepoint Submit connection&lt;br /&gt;DAVAdapter sharePointSubmitConnection = (DAVAdapter)thisXDocument.DataAdapters["SHAREPOINTSUBMITCONNECTIONNAME"];&lt;br /&gt;//Submit new DOM which point to the new template to the Sharepoint&lt;br /&gt;sharePointSubmitConnection.SubmitData(newXMLDOM);&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt; &lt;br /&gt;&lt;br /&gt;Does this mean that in order for the form to use the new template, it needs to be submitted first to the sharepoint?&lt;br /&gt;So if I put the above code in the event OnLoad, would the form be able to use the new template straight away, Agni?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;thanks in advanced :)</description></item><item><title>Re: Using 1 form library to support many templates!</title><link>https://www.infopathdev.com:443/forums/thread/15909.aspx</link><pubDate>Tue, 02 May 2006 05:13:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15909</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15909.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15909</wfw:commentRss><description>Yes you can relink the form from the code.&lt;br /&gt;Here is how you can do it,&lt;br /&gt;//Get the root node &lt;br /&gt;IXMLDOMNode rootNode = getNode("ROOTNODEXPATH");&lt;br /&gt;//Get the new PI which points to the new template&lt;br /&gt;string newPI = "PIOFNEWTEMPLATE";&lt;br /&gt;//Create a new DOM&lt;br /&gt;IXMLDOMDocument newXMLDOM = thisXDocument.CreateDOM();&lt;br /&gt;//Load the XML&lt;br /&gt;newXMLDOM.loadXML(newPI + rootNode.xml);&lt;br /&gt;//Get reference to the Sharepoint Submit connection&lt;br /&gt;DAVAdapter sharePointSubmitConnection = (DAVAdapter)thisXDocument.DataAdapters["SHAREPOINTSUBMITCONNECTIONNAME"];&lt;br /&gt;//Submit new DOM which point to the new template to the Sharepoint&lt;br /&gt;sharePointSubmitConnection.SubmitData(newXMLDOM);</description></item><item><title>Re: Using 1 form library to support many templates!</title><link>https://www.infopathdev.com:443/forums/thread/15908.aspx</link><pubDate>Tue, 02 May 2006 04:47:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15908</guid><dc:creator>potpourri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15908.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15908</wfw:commentRss><description>Hi people,&lt;br /&gt;&lt;br /&gt;Is there a way to automatically relink form template from the infopath form?&lt;br /&gt;&lt;br /&gt;I mean if I have 2 templates:&lt;br /&gt;- template A&lt;br /&gt;- template B&lt;br /&gt;&lt;br /&gt;and I've created a form using template A.&lt;br /&gt;And later on, I publish template B to the same sharepoint folder.&lt;br /&gt;&lt;br /&gt;When the form is loaded up, can I specify somewhere in the code (or using any existing infopath built in function) to relink the form automatically to use template B?&lt;br /&gt;(rather than going to "modify settings and column, and click on "relink forms" externally).&lt;br /&gt;&lt;br /&gt;thank u :)</description></item><item><title>Re: Using 1 form library to support many templates!</title><link>https://www.infopathdev.com:443/forums/thread/15907.aspx</link><pubDate>Mon, 23 Jan 2006 09:25:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15907</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15907.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15907</wfw:commentRss><description>Hi Sumeet,&lt;br /&gt;If you modify the schema it will be a problem. You can work around this by always adding optional elements. If the elements are changed, deleted, or not optional, automatic upgrade won't work.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Using 1 form library to support many templates!</title><link>https://www.infopathdev.com:443/forums/thread/15906.aspx</link><pubDate>Fri, 20 Jan 2006 22:06:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15906</guid><dc:creator>Sumeet</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15906.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15906</wfw:commentRss><description>Hi Matt,&lt;br /&gt;&lt;br /&gt;Thanks for your help but it didn't work. When I click the Relink forms to this form library then there are no forms present in the list to be relinked. &lt;br /&gt;&lt;br /&gt;Since I had the forms created from the previous XSN and the new one, I downloaded them to my box and viewed their XML content and found that the forms created using the old XSN were missing an XML element so it kept bombing out everytime. &lt;br /&gt;&lt;br /&gt;This is a major concern since as I keep modifying the code for the XSN, I am sure to add more fields to the datasource section of the form and giving them default values(by going under Tools -&amp;gt; Form Options -&amp;gt; Edit Default Values) then all the previously created forms will stop working since they will be missing a particular XML element in their schemas. &lt;br /&gt;&lt;br /&gt;Is there a way that I can automatically update the XML elements in previously created forms so that I don't have to do it manually each time.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Sumeet</description></item><item><title>Re: Using 1 form library to support many templates!</title><link>https://www.infopathdev.com:443/forums/thread/15905.aspx</link><pubDate>Thu, 19 Jan 2006 18:34:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15905</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15905.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15905</wfw:commentRss><description>Try relinking your forms. &lt;br /&gt;&lt;br /&gt;1) On the Document Library page that you have the form stored to click "Modify Settings and Columns".&lt;br /&gt;2) Click  Relink forms to this form library&lt;br /&gt;3) Check all checkboxes&lt;br /&gt;4) click Relink Forms&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Re: Using 1 form library to support many templates!</title><link>https://www.infopathdev.com:443/forums/thread/15904.aspx</link><pubDate>Thu, 19 Jan 2006 16:59:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15904</guid><dc:creator>Sumeet</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15904.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15904</wfw:commentRss><description>Hi guys,&lt;br /&gt;&lt;br /&gt;I am facing the problem that each time I modify the code and re-Publish the infopath form to the same forms library in sharepoint thus over-writing the previous template, then the previously created forms[based on the previously template]  don't open up anymore. Is there a setting that I have to do or could you please suggest what should be done.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Sumeet</description></item><item><title>Re: Using 1 form library to support many templates!</title><link>https://www.infopathdev.com:443/forums/thread/15903.aspx</link><pubDate>Wed, 18 Jan 2006 03:04:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15903</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15903.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15903</wfw:commentRss><description>Thanks for the link, that was a very interesting read!&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Using 1 form library to support many templates!</title><link>https://www.infopathdev.com:443/forums/thread/15326.aspx</link><pubDate>Tue, 03 Jan 2006 18:57:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15326</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15326.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15326</wfw:commentRss><description>All,&lt;br /&gt;&lt;br /&gt;I saw this interesting article.  Check it out.&lt;br /&gt;&lt;br /&gt;Using one form library to support multiple InfoPath templates -&lt;a target="_blank" href=http://www.msd2d.com/Content/Tip_viewitem_03NoAuth.aspx?id=508c8437-ee7f-4ba0-ac43-183308e3be0b&amp;section=Sharepoint&gt;http://www.msd2d.com/Content/Tip_viewitem_03NoAuth.aspx?id=508c8437-ee7f-4ba0-ac43-183308e3be0b&amp;section=Sharepoint&lt;/a&gt;&lt;br /&gt;</description></item></channel></rss>