The easiest way to create business applications for the Desktop and the Cloud
The Person Viewer and Person Picker controls were introduced in Visual Studio 2013 to support the Person data type which makes it easy to manage people-related data in your application. These controls depend on various components such as SharePoint, Lync, ActiveX and browser settings in order for them to display properly. Knowing a few simple settings in these components will help you understand how these controls work. This article presents tips and tricks for these controls in a “symptom-diagnosis-treatment” format to help you troubleshoot problems quickly.
For more information on the person type and controls please read: Using the Person Business Type
Person Picker and Person Viewer controls are not available in the Screen designers. Figure 1 shows a screenshot of the Screen designer where Person Viewer and Picker controls are not available for the Owner field, which is a property of type Person.
Person Viewer and Person Picker controls are available in SharePoint enabled apps and only in a LightSwitch HTML client. The Viewer and Picker controls are available after the app is SharePoint enabled:
Controls never resolve person(s) and appear disconnected from SharePoint. For instance, the Person Picker control doesn’t show any search results as you type:
Or the person viewer shows only the person’s email ID:
The Cross-domain library is unable to access your SharePoint data.
Controls resolve person(s), but Lync presence status is non-existent (the UI elements are missing).
You are using a browser or a device that does not support Lync presence. Only IE desktop, Chrome desktop and Firefox desktop are supported browsers.
None. The NameCtrl ActiveX control that provides this behavior only functions in these browsers.
Controls resolve person(s), but Lync status always shows disconnected (white).
Issue could be in one of the dependent components - Lync, browser, ActiveX, or Internet settings.
Controls work, but the My Site link is missing and/or Lync presence is not always correct.
The chosen person is not a direct member of the hosting SharePoint site or an indirect member that has visited the SharePoint site. An indirect member is a user who is a member of a group that was granted access to the SharePoint site.
Add the person explicitly as a member of the hosting SharePoint site. In case the person is indirectly a member of the hosting SharePoint site through a group that is a member of the hosting SharePoint site then that person should visit the SharePoint site at least once before using an app hosted on that site.
Controls work with the My Site link and correct Lync presence, but the picture is missing.
There simply isn’t a picture available.
Check your profile at My Site to confirm if a picture exists. Also note that a profile picture from Active Directory does not get imported to an On-Premises SharePoint server. You need to manually upload a picture to your profile.
Almost everything works great, only the picture is out of sync with the Lync contact card.
Change or confirm your Lync picture.
None. It might take some time before the new picture appears in Lync. When everything is set up correctly the controls will display properly showing the name, picture and title for each person type.
We hope you find these tips useful. In case you encounter any issues not discussed above then please post a question on the forums. We will be glad to help you troubleshoot there.
Nicole Haugen, Lead Software Engineer, Cloud Business Apps
Ravi Eda, Software Development Engineer in Test, Cloud Business Apps