<?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 Infopath form to a specific folder of Sharepoint library</title><link>https://www.infopathdev.com:443/forums/thread/64344.aspx</link><pubDate>Fri, 18 Feb 2011 19:00:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64344</guid><dc:creator>ramyasha20</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64344.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=64344</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m not comfortable with any of this, I&amp;#39;m an Infrastructure/Security guy but I&amp;#39;ve got to learn for Organizational needs.&amp;nbsp;&amp;nbsp; Yes, what I&amp;#39;m trying to do exactly is if I submit a Leave Request and I&amp;#39;m in the NOC department, I&amp;#39;d like the form to create the Department folder and then the individual user folder if they don&amp;#39;t exist, then place the form there.&amp;nbsp; This looks like it&amp;#39;ll be a huge help, I&amp;#39;m reading as much as I can and I really appreciate all the help&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Submit Infopath form to a specific folder of Sharepoint library</title><link>https://www.infopathdev.com:443/forums/thread/64343.aspx</link><pubDate>Fri, 18 Feb 2011 18:55:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64343</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64343.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=64343</wfw:commentRss><description>&lt;p&gt;To create a new folder using the DWS web service, first create a data connection that receives data from a web service. The URL looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://%3cyourshpserver%3e/_vti_bin/DWS.asmx"&gt;http://&amp;lt;yourShPServer&amp;gt;/_vti_bin/DWS.asmx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Replace &amp;lt;yourShPServer&amp;gt; with your actual server URL.&lt;/p&gt;
&lt;p&gt;When you click next, there will be some methods you can choose from. Select CreateFolder.&lt;/p&gt;
&lt;p&gt;In your form, when you want to create the folder, set the url query field of the new data connection to the folder you want in a rule:&lt;/p&gt;
&lt;p&gt;Shared Documents/DepartmentX/SomeotherThing&lt;/p&gt;
&lt;p&gt;You can use a concat formula:&lt;/p&gt;
&lt;p&gt;concat(&amp;quot;Shared Documents/&amp;quot;, &lt;u&gt;my:DepartmentField&lt;/u&gt;, &amp;quot;/&amp;quot;, &lt;u&gt;my:SomeOtherField&lt;/u&gt;)&lt;/p&gt;
&lt;p&gt;Then for the next rule, query using a data connection -- this will be the data connection you just created and set the URL for. This will create the folder if it does not already exist.&lt;/p&gt;
&lt;p&gt;However, I think what you are then wanting to do is submit your form to that new folder. This thread has a code sample you can use, if you are comfortable with code. &lt;a href="http://www.qdabra.com/en/products/qRules.aspx" target="_blank"&gt;qRules&lt;/a&gt; has a command you can use (ChangeSubmitUrl) which may be a better way to go, depending on your coding skill level.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;EDIT: &lt;/strong&gt;I was mistaked about this web service -- while it will create a folder in a &lt;strong&gt;&lt;em&gt;document&lt;/em&gt;&lt;/strong&gt; library, it apparently will &lt;strong&gt;NOT&lt;/strong&gt; in a form library. It looks like the UpdateListItems method of the Lists web service may work, but I&amp;#39;ve not tried that.&lt;/p&gt;</description></item><item><title>Re: Submit Infopath form to a specific folder of Sharepoint library</title><link>https://www.infopathdev.com:443/forums/thread/64342.aspx</link><pubDate>Fri, 18 Feb 2011 18:42:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64342</guid><dc:creator>ramyasha20</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64342.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=64342</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hey Hilary thanks so much! I&amp;#39;m rather a novice, could you assist by defining the steps? I&amp;#39;d ever be so grateful&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Submit Infopath form to a specific folder of Sharepoint library</title><link>https://www.infopathdev.com:443/forums/thread/64340.aspx</link><pubDate>Fri, 18 Feb 2011 18:29:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64340</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64340.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=64340</wfw:commentRss><description>&lt;p&gt;You don&amp;#39;t have to use code to create a folder. You can use the &lt;a href="http://msdn.microsoft.com/en-us/library/ms774480(v=office.12).aspx" target="_blank"&gt;CreateFolder&lt;/a&gt; method of the dws web service. Create a data connection in your form to the web service. Set the url query param to the site specific folder name you wish to create (you could use a concat formula here, if you want to use form field values for the folder name) and query the data connection to create the folder.&lt;/p&gt;</description></item><item><title>Re: Submit Infopath form to a specific folder of Sharepoint library</title><link>https://www.infopathdev.com:443/forums/thread/64327.aspx</link><pubDate>Fri, 18 Feb 2011 11:51:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64327</guid><dc:creator>ramyasha20</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64327.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=64327</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Is there a way to have code auto-create those folders based on Department/User?&amp;nbsp; For example:&lt;/p&gt;&lt;p&gt;&amp;nbsp;If User A, from Department IT submits a form, to have InfoPath form auto-create the destination if it doesn&amp;#39;t exist to where it would be Leave Forms(Root) --&amp;gt; IT Department --&amp;gt; User A&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks in advance!&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Submit Infopath form to a specific folder of Sharepoint library</title><link>https://www.infopathdev.com:443/forums/thread/62601.aspx</link><pubDate>Tue, 28 Dec 2010 10:09:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62601</guid><dc:creator>phunghuutu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62601.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=62601</wfw:commentRss><description>Hi swathip !
I was a little known code, in the code above I can not find DAVAdapter library. Please, help me!
My computer use Sharepoint 2007 and Info Path 2007.</description></item><item><title>Re: Submit Infopath form to a specific folder of Sharepoint library</title><link>https://www.infopathdev.com:443/forums/thread/40384.aspx</link><pubDate>Tue, 07 Apr 2009 10:37:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40384</guid><dc:creator>bashkov</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40384.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=40384</wfw:commentRss><description>&lt;p&gt;Thanks a lot!&lt;/p&gt;</description></item><item><title>Re: Submit Infopath form to a specific folder of Sharepoint library</title><link>https://www.infopathdev.com:443/forums/thread/40383.aspx</link><pubDate>Tue, 07 Apr 2009 10:28:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40383</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40383.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=40383</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can do this using code below. Use this code in the submit button on click event.&lt;/p&gt;
&lt;p&gt;try&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;DAVAdapter oSharePoint&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = (DAVAdapter)thisXDocument.DataAdapters[&amp;quot;Adapter name&amp;quot;];&lt;/p&gt;
&lt;p&gt;oSharePoint.FileName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &amp;quot;give the form name&amp;quot;;&lt;/p&gt;
&lt;p&gt;oSharePoint.FolderURL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &amp;quot;http://../DocLib/&amp;quot; + thisXDocument.DOM.selectSingleNode(&amp;quot;XPath of your field&amp;quot;).text;&lt;/p&gt;
&lt;p&gt;oSharePoint.Submit();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;catch(Exception ex)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String str = ex.Message;&lt;/p&gt;
&lt;p&gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Submit Infopath form to a specific folder of Sharepoint library</title><link>https://www.infopathdev.com:443/forums/thread/40379.aspx</link><pubDate>Tue, 07 Apr 2009 07:29:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40379</guid><dc:creator>bashkov</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40379.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=40379</wfw:commentRss><description>&lt;p&gt;How can I submit form to a specific&amp;nbsp;folder (depends of the value of field) of Sharepoint library?&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;The value of the field = &amp;quot;Nosov&amp;quot;, then the form should be submitted to: &lt;a href="http://.../DocLib/Nosov/"&gt;http://.../DocLib/Nosov/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The value of the field = &amp;quot;Zobov&amp;quot;, then the form should be submitted to: &lt;a href="http://.../DocLib/Zobov/"&gt;http://.../DocLib/Zobov/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;</description></item></channel></rss>