<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: General Development With InfoPath 2010 And Managed Code</title><link>https://www.infopathdev.com:443/forums/thread/86969.aspx</link><pubDate>Mon, 11 Feb 2013 18:58:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86969</guid><dc:creator>abcolson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86969.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=86969</wfw:commentRss><description>&lt;p&gt;Hi Patrick &amp;amp; Jimmy,&lt;/p&gt;&lt;p&gt;Thank you for your empathy and relating your shared frustrations.&amp;nbsp; When I started using IP I thought &amp;quot;what a great tool&amp;quot; for our purposes.&amp;nbsp; I work in a hospital and I have built managed code forms to help nursing units submit patient information to our Infection Control department and directly into a database. Intense government regulations have &amp;quot;influenced&amp;quot; many of our approaches.&lt;/p&gt;&lt;p&gt;I need to back up for a moment and tell you a story:&amp;nbsp; Several years ago I noticed a severe bug in conjunction with a .Net 2.0 rollout.&amp;nbsp; I am not in I.T. but I produce software like I am.&amp;nbsp;&amp;nbsp;Our I.T. department authorized me to track down the bug on the Premier Support contract they had with Microsoft.&amp;nbsp; It took me over a month to do so and I wound up talking with developers in Texas at the heart of InfoPath development.&amp;nbsp; We actually found a couple bugs, one in System.XML and the other with how IP handled schema references in XML resource files.&lt;/p&gt;&lt;p&gt;Back to topic relevancy: During this process I talked with the developers and explained what I was doing and why.&amp;nbsp; Paraphrasing, the response was that IP was generally envisioned to behave a certain way and IP development was originally and generally intended to be done with rules; however, although what I was doing was pushing the envelope, nothing was inherently wrong with my approach and in fact IP supported that in that IP supports managed code processing.&lt;/p&gt;&lt;p&gt;So what am I doing that requires code?&lt;/p&gt;&lt;p&gt;First, HIPPA and other government regulations require that health&amp;nbsp;information be tied to a source, in other words, we can&amp;#39;t receive anonymous patient information without knowing who sent it.&amp;nbsp; Furthermore, we use Single Sign On in our facility.&amp;nbsp; So, in order to ascertain who is sending the information we need code to interface with the system to determine who is logged on.&lt;/p&gt;&lt;p&gt;Second, our validation rules are too complex for the standard rule based approach.&lt;/p&gt;&lt;p&gt;Third, in filling out the form, utilization&amp;nbsp;of Windows forms dialog boxes were necessary.&amp;nbsp; Using other views was not sufficient and switching back and forth was not satisfactory.&lt;/p&gt;&lt;p&gt;Forth, we needed custom event handling that&amp;nbsp;just worked better in code and in some cases was really&amp;nbsp;only viable in code.&lt;/p&gt;&lt;p&gt;So, I think I need to stay with code.&amp;nbsp; I will check out qRules.&amp;nbsp; I find it interesting that IP 2010 seems only to use VB and C# and no longer appears to support JavaScript or VB script.&amp;nbsp; It used to be with IP 2003 that if you wanted a managed code form you had to go out of your way to do it with Visual Studio 2003.&amp;nbsp; Now, with VSTA part of IP 2010 it is all too easy to create managed code forms from within the IP application itself.&lt;/p&gt;&lt;p&gt;Jimmy,&lt;/p&gt;&lt;p&gt;Could you please clarify, are you advocating a directory structure with everything in one folder as in&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;My Project Folder&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; manifest.xsf&lt;br /&gt;&amp;nbsp;&amp;nbsp; schema.xsd&lt;br /&gt;&amp;nbsp;&amp;nbsp; view1.xsl&lt;br /&gt;&amp;nbsp;&amp;nbsp; FormCode.cs&lt;br /&gt;&amp;nbsp;&amp;nbsp; Assembly.cs&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;or something along the lines of&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;My Project Folder&lt;br /&gt;&amp;nbsp;&amp;nbsp; XSN Files Folder&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; manifest.xsl&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; schema.xsd&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; view1.xsl&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;strong&gt;Code Files Folder&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FormCode.cs&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assembly.cs&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Also, I recall the proviso about Read Only in the video.&amp;nbsp; It didn&amp;#39;t make any sense to me.&amp;nbsp; Do you know why it does that and what is going on with this?&amp;nbsp; You mentioned that if the files are Read Only that&amp;nbsp;updated/new files get copied to another location.&amp;nbsp; I didn&amp;#39;t think this was what was happening to me as my files are not yet under source control but maybe this is the beast which is afflicting us all?&amp;nbsp;&amp;nbsp;I haven&amp;#39;t investigated this yet, bet maybe if this is what&amp;#39;s happening&amp;nbsp;I&amp;#39;ll have to write an add-in or something to remove the Read Only attributes.&amp;nbsp; Similarly, maybe an add-in to check vanishing assembly references and automatically put them back.&amp;nbsp; Maybe you can try testing IP 2010 with the Microsoft.Office.Interop.InfoPath.SemiTrust assembly.&amp;nbsp; I&amp;#39;d be curious to see if this assembly vanishes for you as well in IP 2010 with CSharp.&lt;/p&gt;&lt;p&gt;Thank you Patrick and Jimmy for your comments.&amp;nbsp; It looks like I will just have to bite my tongue and grin and bear it for the time being.&amp;nbsp; It may be that we will have to abandon InfoPath if it is going to remain so quirky and (at least not in spirit) support managed code development.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Cheers,&lt;br /&gt;Tony&lt;/p&gt;</description></item><item><title>Re: General Development With InfoPath 2010 And Managed Code</title><link>https://www.infopathdev.com:443/forums/thread/86935.aspx</link><pubDate>Sun, 10 Feb 2013 06:45:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86935</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86935.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=86935</wfw:commentRss><description>&lt;p&gt;Hello Tony,&lt;/p&gt;&lt;p&gt;&amp;nbsp;As Patrick alluded, after much trial and error&amp;nbsp;Hilary and I have mostly found our stride using InfoPath with source control. I believe I&amp;#39;ve seen the video you referred to, and though it provided some good information, I disagreed with quite a bit of it (particularly the part about merging simultaneous changes from multiple form developers, which I think is complete madness).&lt;/p&gt;&lt;p&gt;&amp;nbsp;This is what I have found to work:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Decide on a consistent path for people to have their source control files stored locally.&amp;nbsp; If one person uses C:\SourceControl\ on their machine, and another person uses C:\MySourceControl\, then this will cause difficulty for sharing form development, because InfoPath uses absolute paths in its form save locations.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Store your InfoPath form source along with its code, in subfolders under a single folder, like:&lt;br /&gt;Widget Shipping Form&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Form Source&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (XSN source files)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Code project and files)&lt;/li&gt;&lt;li&gt;To&amp;nbsp;initially get your form into this structure, use the Export Source Files option to save it to the desired location.&amp;nbsp;If it creates a new copy of your code&amp;nbsp;project, move that project to the location you want it, and use File-&amp;gt;Form Options-&amp;gt;Programming-&amp;gt;Browse in InfoPath to redirect the reference.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Then check all of the source files and code project into source control&lt;/li&gt;&lt;li&gt;When you need to make modifications to the form, clear the &lt;strong&gt;Read Only&lt;/strong&gt; attribute on &lt;em&gt;all&lt;/em&gt; files in both the XSN source and the code project.&amp;nbsp;If you don&amp;#39;t do this, InfoPath will try to save the form to a new location when you go to save it.&lt;/li&gt;&lt;li&gt;Then use right-click-&amp;gt;Design on the manifest.xsf to open the form up.&lt;/li&gt;&lt;li&gt;When you are done making changes, first save the form (which will update the XSN source files), and then if you want to deploy the form somewhere, either use File-&amp;gt;Publish or File-&amp;gt;Save As..., depending on how you intend to use it.&lt;/li&gt;&lt;li&gt;In Visual Studio, do a compare operation on the form&amp;#39;s folder. Check out changed files. Add new files that are not yet checked in. Delete files that are on the server but no longer in the local folder.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I have encountered the same issue as you with a disappearing assembly reference (specifically System.Xml)&amp;nbsp;when working on one of our IP 2003 forms. I have not found a way around this besides re-adding it each time I work on the form. It seems VSTA just strips out certain references when the project is opened.&amp;nbsp; I have not, however, had this issue when working on 2007 or 2010 forms.&lt;/p&gt;&lt;p&gt;And nowadays, very few of our forms have their own custom code (the ones that need code-only features use qRules), which makes the whole process a lot easier.&amp;nbsp;We can just have each form checked in as a folder of XSN source files, and there&amp;#39;s no complicated coordination with .csproj projects.&lt;/p&gt;</description></item><item><title>Re: General Development With InfoPath 2010 And Managed Code</title><link>https://www.infopathdev.com:443/forums/thread/86923.aspx</link><pubDate>Sun, 10 Feb 2013 00:45:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86923</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86923.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=86923</wfw:commentRss><description>&lt;p&gt;Hi Tony,&lt;/p&gt;&lt;p&gt;Believe me, we feel your pain. I&amp;#39;m going to defer to Hilary and Jimmy and others for advice on the coding. What I can tell you is that things dramatically changed and there was no &amp;quot;good story&amp;quot; for developing code with InfoPath forms.&lt;/p&gt;&lt;p&gt;However, most forms don&amp;#39;t need code, and those that do, can use our qRules plugin which covers 130 of the most requested features that require code. So, at the risk of sounding like a blowhard, I think you should consider just using our common library. It will save you time down the road. We don&amp;#39;t make any money off of it. We use the proceeds to pay for time in the forum. It doesn&amp;#39;t cover that time but it does help people and the best thing about it is that it&amp;#39;s xpath agnostic which means you can use it in all of your forms.&lt;/p&gt;&lt;p&gt;What do you need code for in your form? What are the 10 features you need? My guess is that qRules will handle them. &lt;/p&gt;&lt;p&gt;I&amp;#39;m more than happy to help you migrate your 2003 code over to qRules commands. &lt;/p&gt;&lt;p&gt;qRules will reduce or eliminate the amount of code in your form which means lower maintenance cost. If you need source, let us know and we&amp;#39;ll work out something for you. qRules can be used in conjunction with other code in your forum, but it only supports 2007 and 2010 object models. Check it out: &lt;a href="http://www.qdabra.com/en/products/qRules_overview.aspx"&gt;http://www.qdabra.com/en/products/qRules_overview.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Now, if you really want to do it yourself, that&amp;#39;s cool. I&amp;#39;ll ask Hilary and Jimmy to respond with info on the optimal developer environment.&lt;/p&gt;&lt;p&gt;More soon,&lt;/p&gt;&lt;p&gt;P&lt;/p&gt;</description></item><item><title>General Development With InfoPath 2010 And Managed Code</title><link>https://www.infopathdev.com:443/forums/thread/86909.aspx</link><pubDate>Fri, 08 Feb 2013 22:54:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86909</guid><dc:creator>abcolson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86909.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=86909</wfw:commentRss><description>&lt;p&gt;I must be doing something wrong...&lt;/p&gt;&lt;p&gt;First, I have been developing with InfoPath 2003 for around 6 years on Windows XP and have just upgraded to Windows 7 and InfoPath 2010...and I must say that I am extremely disppointed and displeased with the upgrade and the &amp;quot;new way&amp;quot; to develop...Of course, I&amp;#39;ll give Microsoft the benefit of the doubt for the moment...&lt;/p&gt;&lt;p&gt;My general question is: &lt;strong&gt;&lt;em&gt;How is one supposed to reliably develop with InfoPath 2010?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;As you all know, InfoPath template development has been removed from Visual Studio and now InfoPath 2010 carries with it its own version of Visual Studio Tools for Applications 2005 for managed code&amp;nbsp;development.&amp;nbsp; Not&amp;nbsp;only did I find this unintuitive but it made development needlessly cumbersome, in particular having to extract and re-bundle source files from/to&amp;nbsp;the .xsn template...and this is the source of my problems...&lt;/p&gt;&lt;p&gt;After watching a video from Microsoft with their InfoPath team developers (I believe Chris Brotsos?) regarding source control for InfoPath development, they suggest having a&amp;nbsp;master project folder for the template under which are 2 subfolders: &amp;quot;XSN Files&amp;quot; (where all the schemas, manifest, resources, etc. reside) and &amp;quot;XSN Sources&amp;quot; (where all the&amp;nbsp;managed code resides).&amp;nbsp; So,&amp;nbsp;I mimicked this approach, keeping the generated .xsn file in the master project folder.&lt;/p&gt;&lt;p&gt;What I have found is that when I go to File | Publish | Extract Source Files&amp;nbsp;and choose my &amp;quot;XSN Files&amp;quot; folder that the&amp;nbsp;.xsn files seem to extract fine but the source code also gets extracted but to a completely different location, in particular,&amp;nbsp;a comletely made up location under the &amp;quot;Project location for Visual Basic and C# code:&amp;quot; entry on the Design tab on the Options window for the InfoPath application.&amp;nbsp; And then, this same entry for my template project is changed behind my back to reflect this new location.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Of course, as I am trying to upgrade IP 2003 forms, sometimes&amp;nbsp;I modify the schemas and resources manually.&amp;nbsp; Then, as the video demonstrates, I right-click on manitest.xsf and click Design&amp;nbsp;to incorporate the changes into the .xsn.&amp;nbsp; Everytime I go through this gyration, my template and project references get all messed up.&lt;/p&gt;&lt;p&gt;Needless to say, I have been going around in circles trying to fix/add/patch missing code&amp;nbsp;which vanishes from my project because I wind up working on code in location A thinking that I am working on code in location B.&amp;nbsp; Oh, and for some strange reason, assembly references from&amp;nbsp;my .csproj file (like Microsoft.Office.Interop.InfoPath.SemiTrust) vanish as well each time I go through these gyrations.&amp;nbsp; I can&amp;#39;t be confident in what I am doing anymore without constantly re-checking that the project references are valid and in the state which I think they are.&amp;nbsp; And yes, I have tried researching this and inspecting every niche and crany of IP configuration settings and of each of the XSN files that I can find.&lt;/p&gt;&lt;p&gt;I&amp;#39;m sure Microsoft has a logical and thoughtful reason and explanation for all this and that&amp;nbsp;I am doing something completely wrong.&lt;/p&gt;&lt;p&gt;Can somebody please either explain to me how I am supposed to develop IP 2010 forms or at least point me in the direction of some good references?&lt;/p&gt;&lt;p&gt;I and what is left of my hair thank anyone who can help shed some light on this bizarre behavior.&lt;/p&gt;&lt;p&gt;Tony&lt;/p&gt;</description></item></channel></rss>