
Anonymous
Hi Keith
In order to render each item as hyperlink to its own view page, you will want to first find out where the view page goes. You can construct another qListView connect to the list and right click on the list item’s “View Properties” menu, which typically opens up the dialog. Right click inside the dialog for “Properties” menu where you can copy the full URL address.
An example looks like the following when I connect to Web Part Catalog list:
http://sharepointsite/_catalogs/wp/Forms/DispForm.aspx?Source=http%3A%2F%2Fwin2k8r2%2Dxchen%3A80%2FSitePages%2Flistview%2Easpx%3FPageView%3DShared%26InitialTabId%3DRibbon%2EWebPartPage%26VisibilityContext%3DWSSWebPartPage&ID=1&RootFolder=%2F%5Fcatalogs%2Fwp&IsDlg=1
You want to rewrite the Custom Display body part to something like the following:
document.write("<a href='ModifiedURLString'><%Name%></a>");
Where ModifiedURLString is the entire string you captured earlier (recommend to use relative path though so remove http://sharepointsite
part) but you need to look into this string carefully and notice the part “ID=1” and replace it with “ID=<%ID%>”. This tells to build the hyperlink to use field expression to pass the right ID of the item you clicked. If you have multiple lists defined in this qListView, this might not work but as long as it is a single list, this URL shall always work. Also notice the part “IsDlg=1” won’t have any effect here as it will be open as a new page. To launch this window in a dialog, you would have to use SharePoint JavaScript dialog framework call to do that.
Hope this helps.