tags:

views:

1931

answers:

3

I have a Person field in my custom list. I want to have a view that will show multiple fields from that Person instead of the one I had to choose when creating the Person column.

So basically I want to have one column for Person and then in the view see Name, title, email, phone. All of those are valid choices but I can only pick one right now.

I really want to avoid typing in the username lookup for each column I choose to display.

This is SP 2007

+1  A: 

It sounds like you need to create a custom fieldtype (with a fieldcontrol) that inherits from the userfield but in viewmode renders out the different columns you need. Is that something along the lines you are looking for?

http://www.sharepointblogs.com/nicksevens/archive/2007/08/31/create-custom-field-types-for-sharepoint.aspx

Johan Leino
Unfortunately, the out of the box calculated field does not allow you to pick from a Person or Group field, so this is the best way.
Nat
It looks like this is going to be my cleanest approach.
AndyMcKenna
A: 

You probably want a Computed Field. Note that this is not a Calculated Column. A Computed Field is what is used to display the same data is different ways. In SharePoint there is a Title field, but there is also a "Title (linked to item with edit menu)" computed field as well as a "Title (linked to item)" computed field.

See midway down this link for more details. I'm not sure if it will have all of the power that you need, but if it does it is almost certainly what you are looking for if you don't mind getting into the Schema XML file a little.

Kirk Liemohn
A: 

Could you use a DataView web part for this? If it's just a question of viewing the data that might be suitable.

Andy Burns