Quantcast
Channel: SharePoint Legacy Versions - Using SharePoint Designer, InfoPath and Other Customizations Forum
Viewing all articles
Browse latest Browse all 2319

How to link value of lookup column to actual list item in data view?

$
0
0

Hi,

I have a DVWP that displays a certain list. One of the list columns does a lookup to another list.
Now I want to link the value of the lookup column to link to the actual list item of the second list, but can't seem to get this to work.
I have tried the following, but then each list item links to the same lookup list item (known bug I believe):

<a href="{ddwrt:URLLookup('{021ACE84-27B9-4C71-9A5F-46AA311F660A}', 'Project_x0020_No_x002e_', string(@ID))}"><xsl:value-of select="@Project_x0020_No_x002e_" /></a>

While searching online, I came across this solution.
However, all examples I can find (including this one) show how to do this for DispForm.aspx and based on a filter, while all I want is display all list items (i.e. no filter in the CAML) with the lookup column linked to the actual list item of the second list.

Anyone who can explain me how to achieve this? Thanks in advance!

 


Viewing all articles
Browse latest Browse all 2319

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>