<?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: Automating infopath file name</title><link>https://www.infopathdev.com:443/forums/thread/54349.aspx</link><pubDate>Thu, 29 Apr 2010 14:30:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54349</guid><dc:creator>flayman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54349.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54349</wfw:commentRss><description>&lt;p&gt;I suspect the boat has already been pushed out on this one, but in case it helps anyone else I have a solution to the SaveAs with filename problem. It&amp;#39;s actually quite simple. Create a handler for the Save event of type SaveEventHandler. The FormEvents_Save method takes two arguments, the first is an &amp;quot;object&amp;quot; type usually named sender. If you cast this to an XmlForm you can set call some methods on the form object.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;form.SetSaveAsDialogLocation(&amp;quot;http://server/web/Form Library&amp;quot;);&amp;nbsp; -or-&amp;nbsp; form.SetSaveAsDialogLocation(&amp;quot;C:\somewhere&amp;quot;);&lt;/p&gt;&lt;p&gt;form.SetSaveAsDialogFilename(&amp;quot;The name of my form.xml&amp;quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It works fine. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Automating infopath file name</title><link>https://www.infopathdev.com:443/forums/thread/27304.aspx</link><pubDate>Wed, 19 Mar 2008 12:00:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27304</guid><dc:creator>sathya</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27304.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=27304</wfw:commentRss><description>&lt;p&gt;Great stuff, Thanks.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The data connection (submit data) doesnt allow submitting to somewhere on the network. Also it doesnt allow submitting to database but the data connection (receive data) seems to allow receiving data from a database. That&amp;#39;s a bit confusing.&lt;/p&gt;
&lt;p&gt;I have to fully run through this process (what&amp;nbsp;makes the prompt&amp;nbsp;for the&amp;nbsp;filename?)&lt;/p&gt;
&lt;p&gt;Also how will this work when it gets published as web-enabled form and also within sharepoint? Will all the functionalties that i create withing a form apply in the other environments too or does this apply for a form opened within the infopath application?&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;
&lt;p&gt;Sathya&lt;/p&gt;</description></item><item><title>Re: Automating infopath file name</title><link>https://www.infopathdev.com:443/forums/thread/27254.aspx</link><pubDate>Mon, 17 Mar 2008 17:51:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27254</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27254.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=27254</wfw:commentRss><description>&lt;p&gt;I think everything you are looking for is already a part of Infopath. :)&lt;/p&gt;
&lt;p&gt;Typicall best practice is to not use the default save and save as functionality since you cannot control the file naming and location. This can be turned off in Form options.&lt;/p&gt;
&lt;p&gt;You want to setup a data connection, which can either be to a network share or to SharePoint.&lt;/p&gt;
&lt;p&gt;You will be prompted for a filename. Use the function button and typically a concatenation to create unique, standardized naming based on values in your form.&lt;/p&gt;
&lt;p&gt;You can add a button or configure the submit button to submit to this data connection or multiple ones.&lt;/p&gt;</description></item><item><title>Automating infopath file name</title><link>https://www.infopathdev.com:443/forums/thread/27252.aspx</link><pubDate>Mon, 17 Mar 2008 17:20:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27252</guid><dc:creator>sathya</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27252.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=27252</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Is it possible to automate the file name&amp;nbsp;of an Infopath form by creating a macro or&amp;nbsp;another programming technique?&lt;/p&gt;
&lt;p&gt;The form would&amp;nbsp;have fields populated from a SQL Server database. Also other information&amp;nbsp;would be hard coded&amp;nbsp;on to the header of the form.&lt;/p&gt;
&lt;p&gt;The form would have to work as follows:&lt;/p&gt;
&lt;p&gt;User fills in the form fields.&lt;/p&gt;
&lt;p&gt;I need to be able to create a button possibly called &amp;#39;Confirm&amp;#39; and place it in the form or as part of the form&amp;#39;s infopath toolbar. So this is essentially a &amp;#39;save&amp;#39; button but with added functions.&lt;/p&gt;
&lt;p&gt;So once the form has been filled in and the user hits the &amp;#39;confirm&amp;#39; button, the code should pick up relevant information from the fields and the header (also current date and time) and produce a string which will fill in the f&amp;#39;ile name&amp;#39; field of the&amp;nbsp;&amp;#39;save as&amp;#39;&amp;nbsp;dialog box. (my aim is to avoid users entering the file name in the wrong format)&lt;/p&gt;
&lt;p&gt;If this is possible I am also wondering how the same form would work in a sharepoint environment??&lt;/p&gt;
&lt;p&gt;Does infopath have autosaving functionality? Whether you can write a macro to save the form automatically every few minutes so that even if someone closes it by mistake they won&amp;#39;t lose all the filled in information?&lt;/p&gt;
&lt;p&gt;They are all related questions and it would be much appreciated if someone would be able to advise/help me in how to go about achieving these functionalities.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Many Thanks&lt;/p&gt;
&lt;p&gt;Sathya&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>