tag:blogger.com,1999:blog-2157078164517103759.post2235238912643389022..comments2023-07-31T03:31:57.774-07:00Comments on A Static State: Deploying K2 InfoPath Web Enabled Forms with Managed CodeJason Apergishttp://www.blogger.com/profile/01817509015412502702noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-2157078164517103759.post-78458846434919332872009-12-01T13:21:12.342-08:002009-12-01T13:21:12.342-08:00I am actually a consultant and I am in the K2 Insi...I am actually a consultant and I am in the K2 Insider Program (basically a MVP for them)...Jason Apergishttps://www.blogger.com/profile/01817509015412502702noreply@blogger.comtag:blogger.com,1999:blog-2157078164517103759.post-57700713206898799752009-12-01T12:53:51.325-08:002009-12-01T12:53:51.325-08:00Thanks Jason. That is much appreciated. I did thin...Thanks Jason. That is much appreciated. I did think you were working for K2. Apologize.Tao Zhanghttps://www.blogger.com/profile/07822175497154538567noreply@blogger.comtag:blogger.com,1999:blog-2157078164517103759.post-34825404954759480112009-11-29T07:05:50.495-08:002009-11-29T07:05:50.495-08:00Tao,
Yes there are some major challenges with wor...Tao,<br /><br />Yes there are some major challenges with working with InfoPath forms with .NET managed code. This is why I have said that if you have .NET managed code, use ASP.net. That is more of a general point, not directed at K2. <br /><br />Anyways, the reason why K2 has challenges with InfoPath forms with .NET managed code is that the form must be deployed by a person with admin rights. Obviously a developer working in Visual Studio with K2 may or may not have those rights. It is a major short coming for heavy duty InfoPath integration with K2. None of the other BPA providers have a good answer for this either.<br /><br />I suggest you make a comment to K2 directly - I do not work for them.<br /><br />I have done what you are talking about where an InfoPath process was not initiated by an InfoPath form but it was in the K2.net 2003 days. The trick at that time was manually going into the InfoPath XML and making sure all the fields under _K2 were set correctly.<br /><br />If you do not like the way K2 is deploying the forms another approach is check out my blogs here:<br /><br />http://www.k2distillery.com/2008/10/deploy-infopath-as-feature.html<br />http://www.k2distillery.com/2008/12/deploy-infopath-as-feature-with-managed.html<br /><br />I developed these blogs for a NON-K2 solution I did for InfoPath. It deploys an InfoPath form as a feature and creates a content type for that form. <br /><br />I CANNOT claim this will work because I have not tried it. Plus it really does not solve the problem you are complaining about. All this will do is get your form deployed as a content type and then you can reference that InfoPath content type from the K2 process. I have not test it - so do not blame me if it does not work :-)Jason Apergishttps://www.blogger.com/profile/01817509015412502702noreply@blogger.comtag:blogger.com,1999:blog-2157078164517103759.post-3184426298865354292009-11-29T01:44:10.302-08:002009-11-29T01:44:10.302-08:00This will only work if the K2 process is started b...This will only work if the K2 process is started by the InfoPath form, in which case the form was created by the Forms Service and it has the correct reference to where the form template is. The K2 process only needs to provide the information as where is the sharepoint web site and the name of the form library when the form is rendered again in the rest of the process. However it falls flat if the process is not started by the form, in which case the process creates the InfoPath form automatically to start with and it has the WRONG reference to where the form template is. The form can not be opened even if you deploy it properly because that will not be the template the K2 generated form is referencing to. I am right in the middle of dealing with this and I am planning to use SharePoint event to correct the K2 created forms. But why K2 doesn't offer a less automated way to deploy InfoPath forms???? I wouldn't mind some extra configuration for the flexibility.Tao Zhanghttps://www.blogger.com/profile/07822175497154538567noreply@blogger.comtag:blogger.com,1999:blog-2157078164517103759.post-5546033010475401652008-09-19T20:52:00.000-07:002008-09-19T20:52:00.000-07:00If you want another way to deploy the infopath for...If you want another way to deploy the infopath forms try this..<BR/>http://skurocks.blogspot.com/2008/09/deployment-of-infopath-form-right-way.html<BR/><BR/>SenthilSenthil Kumarhttps://www.blogger.com/profile/13034136431024810439noreply@blogger.com