Showing posts with label InfoPath. Show all posts
Showing posts with label InfoPath. Show all posts

Wednesday, May 26, 2010

Debugging Submit in InfoPath 2007

When you submit an InfoPath form which was opened from an existing form, so called Edit, it is hard to debug the managed code. The method that I use to resolve the problem is to put statements into the code I suspect. Just as the writelines in the early days developing without debugger. Instead of writelines I used the MessageBox.Show() command. This enabled me to pinpoint the error location.

Today I fixed a problem when submitting the InfoPath form which was caused by the fact that the file already existed in the SharePoint Document Library.

The solution was to enable a checkbox in the Data Connections of the InfoPath Form Template. Just as described in the weblogs below:

Thursday, April 15, 2010

InfoPath 2007 Object Model Poster

I just discovered that Microsoft has published a poster describing the InfoPath 2007 Object Model (and other Office Object Models)

Look here

Tuesday, March 30, 2010

How to display the Form version on the InfoPath 2007 Form

Just insert an Expression Box control into the Infopath Form using the following XPath expression:

substring-before( substring-after( /processing-instruction()[local-name(.) = "mso-infoPathSolution"], 'solutionVersion="'), '"')

Source: http://www.nivot.org/2008/09/30/WhyVSTO30VisualStudio2008SharePointWindowsWorkflowAndInfoPathMightGiveYouAHernia.aspx