<?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: Open saved form or create new from template</title><link>https://www.infopathdev.com:443/forums/thread/16563.aspx</link><pubDate>Fri, 19 Jan 2007 15:03:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16563</guid><dc:creator>olofsu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16563.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=16563</wfw:commentRss><description>I already use the Save location today. I'll try to explain my problem with an example.&lt;br /&gt;&lt;br /&gt;When users Neil and Phil opens the form the first time a new form based on the form template (defined by XsnLocation) is opened:&lt;br /&lt;a target="_blank" href=http://thehost/Form_Application/Forms/template.xsn&gt;http://thehost/Form_Application/Forms/template.xsn&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;When user Phil submits the new form the data is stored in Save location:&lt;br /&lt;a target="_blank" href=http://thehost/Form_Application/Phil.xml&gt;http://thehost/Form_Application/Phil.xml&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;When user Neil submits the new form the data is stored in Save location:&lt;br /&lt;a target="_blank" href=http://thehost/Form_Application/Neil.xml&gt;http://thehost/Form_Application/Neil.xml&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;When Phil or Neil opens the form the second time a form with&lt;br /&gt;the data from the xml file should be opened. This can be done by simply opening the xml file with the path specified by XmlLocation.&lt;br /&gt;&lt;br /&gt;It would also be possible to open the form specified by XsnLocation and use a data connection to retrieve data from SharePoint columns when the form is opened. When Phil/Neil submits the form data the existing xml file be overwritten with the old/modified data. But since the form contains a file attachement control which cannot be mapped to a SharePoint field, this is not a possible solution.&lt;br /&gt;&lt;br /&gt;Thus, the web part used to display the form must provide&lt;br /&gt;  XsnLocation="http://thehost/Form_Application/Forms/template.xsn"&lt;br /&gt;  XsnLocation=""&lt;br /&gt;or &lt;br /&gt;  XsnLocation=""&lt;br /&gt;  XsnLocation="http://thehost/Form_Application/Phil.xml"&lt;br /&gt;depending on if there is an xml file or not.&lt;br /&gt;&lt;br /&gt;My original question is if there is a better or more simple way to do this. Thus, if there is a way to let the web part used to display the form to always provide the settings&lt;br /&gt;  XsnLocation="http://thehost/Form_Application/Forms/template.xsn"&lt;br /&gt;  XsnLocation=""&lt;br /&gt;and let InfoPath handle the population of data stored in the SharePoint library.&lt;br /&gt;&lt;br /&gt;Any suggestions?&lt;br /&gt;&lt;br /&gt;/Olof</description></item><item><title>Re: Open saved form or create new from template</title><link>https://www.infopathdev.com:443/forums/thread/16562.aspx</link><pubDate>Wed, 17 Jan 2007 20:29:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16562</guid><dc:creator>Shiraz Cupala</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16562.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=16562</wfw:commentRss><description>What you're trying to do is set the Save as location.  You can do this in the form itself through code.  Look for that as a property you can set.  You can set the filename too.</description></item><item><title>Open saved form or create new from template</title><link>https://www.infopathdev.com:443/forums/thread/15527.aspx</link><pubDate>Mon, 15 Jan 2007 13:08:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15527</guid><dc:creator>olofsu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15527.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15527</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I have created a web part to render a form. I use the same technique as described in the following link:&lt;br /&lt;a target="_blank" href=http://jopx.blogspot.com/2006/09/rendering-infopath-2007-form-in-web.html&gt;http://jopx.blogspot.com/2006/09/rendering-infopath-2007-form-in-web.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The form template (XSN file) is uploaded to a Sharepoint document library with&lt;br /&gt;XsnLocation&lt;a target="_blank" href=http://thehost/Form_Application/Forms/template.xsn&gt;http://thehost/Form_Application/Forms/template.xsn&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;When a user opens the form corresponding form data will be saved in&lt;br /&gt;XmlLocation&lt;a target="_blank" href=http://thehost/Form_Application/username.xml&gt;http://thehost/Form_Application/username.xml&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;When a user opens the form the first time I would like a new form to be created from the form template based on the XsnLocation.&lt;br /&gt;&lt;br /&gt;When a user opens the form the next time I would like the form to be opened based on the data stored in the XmlLocation.&lt;br /&gt;&lt;br /&gt;It is not possible to specify both locations (XmlLocation and XsnLocation) in the XmlFormView control simultaneously since they are mutually exclusive.&lt;br /&gt;&lt;br /&gt;How should I solve this problem?&lt;br /&gt;Are there better ways to prepopulate forms?&lt;br /&gt;&lt;br /&gt;Thanks!</description></item></channel></rss>