I have a SharePoint list containing a field type person and simple trying to add to the BrowseGallery to display it, using a label with text "ThisItem.'my field'.DisplayName and is getting this error. What am I doing wrong?
TIA!
Well that depends. A dropdown is a specific type of control. It is not text, so if you want text, then you need a text control.
Still this question remains - "So, does your person column definition allow for multiple selections??"
But, if you are going to display a table of records in a text control, then you need to use the Concat function to do so. The last question I had in the last post was what format did you want for that. So, use the Concat function and put in the format for the column and any separator.
There is no error... the person(people) name just shows up as a dropdown instead of text like the details screen... not sure if there is anything that can be done about this...
Yes - your original formula is generally correct. So what was the exact error message you were receiving?
The formula editor (in your picture) is showing the result of that formula as a Table. So, does your person column definition allow for multiple selections?? If so, then the question is really, how do you want to show multiple names in your label?
Actually I think that is due to I'm using a label vs. a combo box to display the person field?? Anyway I was able to use a combo box however the display shows combo box with the person's display name... which is not what I want, I just simply want to show a text field with the person's display name. Is there a way to do it?
There is nothing wrong and it is not an error. It is a message from the Formula Editor telling you that it cannot evaluate what "ThisItem" is.
How could it?? ThisItem refers to the current record in a table of records (your gallery), so how would it know which record to evaluate?
Anyway, the message you are seeing is completely normal and is not an error.
Are you actually experiencing an error or issue of some type?
I hope this is helpful for you.