Pre-populating a person picker with current user in a web form - InfoPath Dev
in

InfoPath Dev

Pre-populating a person picker with current user in a web form

Last post 11-10-2012 03:43 AM by Gennady Vanin (Геннадий Ванин, Новосибирск). 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 10-11-2012 07:17 PM

    Pre-populating a person picker with current user in a web form

    I have a web based form that *should* pre populate a people picker with the author name when the form is initially opened. Works great in the filler and in preview. Wondering if there are any commonly known issues with the person/group picker and populating it in a web form. It works by doing the following: -Data connection for GetUserProfileByName -Person / Group filler to be pre-populated has the following fields set on document load: --AccountID = Account Name (GetUserProfileByName 'Value' field filtered with Name = "AccountName" string) --DisplayName = Full user name (GetUserProfileByName 'Value' field filtered with Name = "PreferredName" string) --AccountType = "User" (No need to generate this as all accounts will be user accounts in this instance) When I run the design checker on the form I get the following error: "Data Connection contains parameterized query". When I publish the form and then open it in the browser I receive the following error after the form loads: "An error occurred while trying to connect to a Web service. An entry has been added to the Windows event log of the server. Log ID:5566 An error occurred querying a data source." Unfortunately I don't have access to the server, I'm a mere site collection administrator.
  • 10-24-2012 06:31 AM In reply to

    Re: Pre-populating a person picker with current user in a web form

    Just going to toss in a real quick response on this. Because I'm only a Site Collection Admin I don't have the ability to go into the farm and make the necessary permissions changes to allow access to the GetUserProfileByName web service. The back end modifications for this can be done, I just can't do them.

  • 11-10-2012 03:43 AM In reply to

    Re: Pre-populating a person picker with current user in a web form

     This can be due to many reasons depending on authentication mechanisms that you use on your server and you forgot to provide details for.
    Though it is easily searchable on the internet

    One of the most common is Loopback authentication Check (What every admin and developer should know) 

    Gennady Vanin (Novosibirsk) --- Геннадий Ванин (Новосибирск)
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.