-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List view does not render people display name on people field #340
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
I have a list with people field when render it with list view it returns ID, so I override the render of the field to a function that took the ID and return the Display name, the function correctly return the Display name but the list view return does not render it. |
Hi @Ameralajore, In order to display person fields, you have to query them explicitly and then set correctly ListView headers. First, in the query, specify them like this:
(Suppose that contoso is your tenant name and Mentor the person field) Then in your const viewFields: IViewField[] = [
{
name: 'Id',
displayName: 'ID',
maxWidth: 40,
sorting: true,
isResizable: true
},
{
name: 'Title',
linkPropertyName: 'Title',
maxWidth: 40,
sorting: true,
isResizable: true
},
{
name: 'Mentor.FirstName',
displayName: 'Mentor Name',
isResizable: true
},
,
{
name: 'Mentor.LastName',
displayName: 'Mentor Last Name',
isResizable: true
}
]; If you wish to have only one field, you can refer to the Hope that it helps. |
Closing as asnwered |
Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your
needs please complete the below template to ensure we have the details to help. Thanks!
Please check out the documentation to see if your question is already addressed there. This will help us ensure our documentation is up to date.
Category
[ ] Enhancement
[ ] Bug
[ ] Question
Version
Please specify what version of the library you are using: [ ]
If you are not using the latest release, please update and see if the issue is resolved before submitting an issue.
Expected / Desired Behavior / Question
If you are reporting an issue please describe the expected behavior. If you are suggesting an enhancement please
describe thoroughly the enhancement, how it can be achieved, and expected benefit. If you are asking a question, ask away!
Observed Behavior
If you are reporting an issue please describe the behavior you expected to occur when performing the action. If you are making a
suggestion or asking a question delete this section.
Steps to Reproduce
If you are reporting an issue please describe the steps to reproduce the bug in sufficient detail to allow testing. If you are making
a suggestion or asking a question delete this section.
Submission Guidelines
Delete this section after reading
Thanks!
The text was updated successfully, but these errors were encountered: