Wednesday, May 16, 2012 6:27 PM
Just completed a migration of SharePoint from 2007 to 2010. Uggraded all the forms to InfoPath 2010.
All works well except for one area. Let me see if I can explain....
I have a user control list which is a secondary data connection to my form that contains
- Name1 - Holds a persons name
- User_Name1 - Holds the UserName() of Name1
I have a form with the following fields.
- Name2 - Holds a person name
- User_Name2 - fills in UserName() for active user when form loads
- Check box with conditional formatting.
in the past when the form was opened and User_Name2 = User_Name1 where Name2=Name1 then the check box would be enabled, and user could "sign" the form. In 2007 looked like this:
User_Name1 = translate(@User_Name2[Name2 = @Name1], "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "abcdefghijklmnopqrstuvwxyz")
This has all worked fine until I upgraded the form and now my UserName Data Connection shows a folder with three choices DisplayName, AccountId and AccountType.
I have tried using the DisplayName in the secondary data connection but it doens't work and to make matters worse I have to translate the usernames to be sure they are the same case.
User_Name1 = translate(DisplayName[Name2 = Name1], "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "abcdefghijklmnopqrstuvwxyz")
Thursday, May 17, 2012 9:38 AMModerator
Based on your description you have migrated the InfoPath 2007 form to InfoPath 2010 .There are People Picker Control(Called contact selector in InfoPath 2007 ) on the form . InfoPath 2007 form templates containing the Person/Group Picker control (formerly named Contact Selector) will continue to work in InfoPath 2010 the same way they used to as long as the form template remains in the InfoPath 2007 Form Template format .But if you have save the form as InfoPath 2010 format ,you will have to delete the contact selector and add people picker control on the form .
The display name of a people picker will format as domain\username .
For more information ,please refer to this site:
Upgrading InfoPath 2007 forms with Person/Group Pickers to InfoPath 2010: http://blogs.msdn.com/b/infopath/archive/2010/04/08/upgrading-infopath-2007-forms-with-person-group-pickers-to-infopath-2010.aspxThanks
TechNet Community Support
- Marked As Answer by Entan MingMicrosoft Contingent Staff, Moderator Thursday, May 24, 2012 7:50 AM