- This topic is empty.
- 12/28/2011 at 10:08 am #4122
I am using Product Verion 5.4 (Build 2010.12.1) on SharePoint Server 2010 Enterprise.
I am using qListView to view a list of compay events. Each event includes a contact name field that was entered using a people picker. qListView, of course, shows the display name. (e.g. “Tom Hamill”)
Is there any way to make this field into a link to the user’s SharePoint Profile? I’ve tried adding the link to the field’s Link To property
(e.g. http://server/Person.aspx?accountname=<%ContactName%>), but that inserts the display name into the URL’s query string. To get the profile, I need the user id. Is there a way to pass the user ID into that URL?
For example, clicking on my name results in URL that ends with ?accountname=Tom%20Hamill when what I need is http://…/Person.aspx?accountname=DOMAIN/HamillT
- 12/28/2011 at 10:08 am #4907
Sorry for taking so long to get back to you.
LinkTo feature can only be used with fields that belong to the list you connect to and pass the value of the field using the format <%FileName%>.
Your env. is more complex than that and therefore you could try to write some custom code base on the sample code we provide with our product (check QWP installation folder pleCode folder). Usign that project (check the documentation for more details) you can write you code to get the userID and then use that to redirect users to your link).
You must be logged in to reply to this topic.