Answered Problems with migrated 2007/2010 Infopath browser based form

  • Wednesday, May 16, 2012 6:27 PM
     
     

    Hi Everyone,

    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

    1. Name1 - Holds a persons name
    2. User_Name1 - Holds the UserName() of Name1

    I have a form with the following fields.

    1. Name2 - Holds a person name
    2. User_Name2 - fills in UserName() for active user when form loads
    3. 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")

    Any ideas??


    LMP

All Replies

  • Thursday, May 17, 2012 9:38 AM
    Moderator
     
     Answered

    Hi ,

    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.aspx

    Thanks

    Entan Ming

    TechNet Community Support