Infopath 2010 getuserprofilebyname and field values changing when loading existing form.

In InfoPath 2007, I created several forms that load the user’s contact details into fields using the getuserprofilebyname service. When we upgraded to SharePoint 2010 the forms still worked, but the user details were being changed every time the form loaded. Turns out that the “Refresh value when formula is recalculated” setting does something different in 2010 compared with 2007. Turning the setting on in 2010 causes the formula to recalculate every time the form opens and then overwrite whatever was already saved. So I have had to go to every form and uncheck the value on that field to get them all to work. Grrrrrrrr Microsoft, Grrrrrrrr!
9. February 2011 21:15 by Cutty | Comments (0) | Permalink

‘SnippetElement’ is null or not an object error.

I upgraded an InfoPath 2007 form to 2010. Users were getting a javascript error when submitting the form. The error was “’SnippetElement’ is null or not an object.”. I did a few things to try and resolve the error. Recreated all my data connectors, re-published the form several times, all to no avail. Finally, I ran the javascript debugger in IE and found that the error related to a problem with some code in core.js. There was a function that was trying to get the ‘SnippetElement’ from the submit button on the form. I’m not sure what that means, but I checked the submit action for the form and found that “Show the Submit button in both the Ribbon and the Info tab in the InfoPath Filler.” option was checked on. I don’t recall seeing that in 2007 so it must be new for 2010. Turning the option off resolved the error.
31. January 2011 19:30 by Cutty | Comments (0) | Permalink

About the author

Tips and snippets of stuff that I have discovered in my daily battle to survive in the world of high technology.

Month List