<?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: Storing a form by an external application when user saves the form</title><link>https://www.infopathdev.com:443/forums/thread/48796.aspx</link><pubDate>Mon, 09 Nov 2009 11:31:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48796</guid><dc:creator>cpalm</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48796.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48796</wfw:commentRss><description>&lt;p&gt;Hi Patrick,&lt;/p&gt;&lt;p&gt;maybe I give a little more background on this: A local version of MS SQL Server is installed on every client-tablet-pc. I&amp;#39;ve set up a replication scenario to synchronize to a central database where all the users occasionally connect to. Every form is saved in an xml-column as one row. Conflict management is done when synchronizing but it&amp;#39;s quite unnecessary as the users (medical practicioners) don&amp;#39;t visit the same patient filling out the same form...&lt;/p&gt;&lt;p&gt;Offering a web service in general is not form independent and that&amp;#39;s a major design goal of my application. The whole form and solution management is done by the application to just have infopath as an editor platform for the users. Forms (xsn&amp;#39;s) are also stored in the database and automatically replicated to all clients. Therefore the latest form versions are installed automatically (by RegisterSolution).&lt;/p&gt;&lt;p&gt;At first I simply wondered why I can do everything remotely from my application. I could even register my OnSave-Event but unfortunately it&amp;#39;s never fired... So it seems to me the integration of Infopath in external applications is a bit lose.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Storing a form by an external application when user saves the form</title><link>https://www.infopathdev.com:443/forums/thread/48791.aspx</link><pubDate>Mon, 09 Nov 2009 09:21:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48791</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48791.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48791</wfw:commentRss><description>&lt;p&gt;Hi CPalm,&lt;/p&gt;
&lt;p&gt;This seems like overkill to me. Are you doing this to provide some kind of offline help? What happens when they go back online and submit to the DB? Does it reconcile the version submitted? If not, how do you prevent other people from editing.&lt;/p&gt;
&lt;p&gt;If you absolutely need offline support, you could just use InfoPath&amp;#39;s built-in support with some simple logic in your form to check a Web Service and see if they are online and then conditionally enable a submit which sends the form to the database (all without code). We&amp;#39;ve done many solutions that are offline-able. The best solution is to write code and check the DB on submit to see if there is a more recent version and pop-up some kind of delta reconciliation UI if there is a more recent one saved. But, you say you can&amp;#39;t write code. You could write code in a Web Service and call this from the form. &lt;/p&gt;
&lt;p&gt;Anyway, seems like your solution is overkill. &lt;/p&gt;</description></item><item><title>Storing a form by an external application when user saves the form</title><link>https://www.infopathdev.com:443/forums/thread/48696.aspx</link><pubDate>Thu, 05 Nov 2009 17:29:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48696</guid><dc:creator>cpalm</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48696.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48696</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I&amp;#39;m writing a C# application that invokes Infopath as an editor. The file originally stored in a SQL Database is put into a local directory before. This works fine but it seems to be complicated to detect from outside (not from within the form) when the user afterwards has saved the form to disk.&lt;br /&gt;I don&amp;#39;t want to have any special code in a form since users want to create they&amp;#39;re own forms and my application simply wants to store them.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve tried working with InfoPath events but unfortunately they&amp;#39;re not forwarded when InfoPath is invoked as external app. Is it really the best way to have a FileSystemWatcher look after the file being saved or is there a better approach than:&lt;/p&gt;&lt;p&gt;1. Optional for existing forms: Copy form to disk&lt;br /&gt;2. Invoke Infopath by Application.open() or Application.NewFromSolution();&lt;br /&gt;3. Call SaveAs to set an initial filename in case of NewFromSolution() (so that a user can simply click save)&lt;br /&gt;4. Wait for a FileSystemWatcher.OnChange event&lt;br /&gt;5. Save to file into the database&lt;/p&gt;&lt;p&gt;Thanks for any help&lt;/p&gt;&lt;p&gt;cpalm &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>