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

Friday, February 20, 2009

Cascading dropdown lists and error 401

Until recently we successfully used the tip from Ishai Sagi on cascading lists, but suddenly our users reported getting a error when trying to use the drill down Master-Detail dropdown lists.

Looking at the IIS log we discovered the call to owssrv.dll was done anonymous and resulted in an error 401. With good help from a consultant from Key2Know we found that the issue was related to a loopback check security update on Windows Server 2003 SP1. The solution was found on http://support.microsoft.com/kb/896861 where you can read more about this issue.

We implemented solution 1 on our Web Front Ends and this resolved the issue.

Wednesday, February 11, 2009

Display the version number on your InfoPath form

Tired of not really knowing if the InfoPath form you're looking at is the latest version?

Here's a simple trick to display the info.


  • On your form find a suitable place to add a textbox (I place mine at the bottom, right corner)
  • In the new textbox property, click the Fx button and insert the following in the formula box:
    concat(substring-before(substring-after(processing-instruction()[local-name(.) = "mso-infoPathSolution"]; 'href="'); '"'); " template with form version "; substring-before(substring-after(processing-instruction()[local-name(.) = "mso-infoPathSolution"]; 'solutionVersion="'); '"'))
  • Now you can format the textbox with text color, size (use 'auto' as width) and position.

I found parts of this somewhere on the net, so don't blame me if it works :-)

InfoPath properties and SharePoint columns

I just hate it when there's no logic explanation!

Had an InfoPath form, published to SharePoint, needed to add some new fields, created the matching Site Columns, promoted the fields to the new columns, republished - everything looked good on our TEST server and then I did the same thing in our PROD environment: NoGo.

Yes, the form was published ok. The resulting xml documents had the changes, but the SharePoint Site Columns didn't reflect the changes. I searched logs, checked for misspells, googled for a day - nothing! It all looked correct, but it didn't work. (Actually not quite correct cause the columns where now properties of the ListItem and therefore didn't belong to the document).

Finally I found a fellow blogger that in turn had found some other bloggers and to make it short, here's the link: http://arichterwork.blogspot.com/2008/03/infopath-property-promotion-woes.html

All credit goes to these guys, but let me just sumerize the workaround (it's not a solution, nor an explanation):
  1. Using Central Admin, Applications, InfoPath, you need to deactivate the faulting form from all of the Site Collections it has been activated on.
  2. While deactivated, upload a new version of the form.
  3. Reactivate the form to the Site Collections where it is needed.

This made my InfoPath fields or properties work and I got the reflecting values on my SharePoint columns.

It looks like this bug occurs when you have republished your InfoPath form several time, but I really hope it will be fixed soon.