Hello
My scenario: I'm on Sharepoint 2007 Portal Server. I have a custom
list, HRPolicy. In this list there is a lookup field - policy - that
lets the user select a document from a document library, HRPolicies.
On a page I have added a Data View Web Part to show the information
from the list HRPolicy. By default the value of the field policy is
formated as text only. I would like to have it as a hyperlink that
displays the document when click, exactly as if you were to add a list
directly as a web part. How can this be accomplished?
I have tried to use the ddwrt:URLLookup using the GUID of the list,
the field and the ID, but this doesn't work. In details I have the
exact same problem as this guy:
http://www.eggheadcafe.com/software/aspnet/29871868/data-form-web-part-ddwrt.aspx
Seems that this worked on Sharepoint 2003, but not 2007.
I would guess that it is really simply procedure, but somehow I cannot
figure out how to get it done. I currently only have the name of the
document, in the policy lookup field. If I could get the ID I could
make the link by going
http://server/HRPolicies/Forms/DispForm.aspx?ID={@ID}&RootFolder=*
(where {@ID} would be the ID, but I do not know how to get this.
Anybody? Thanks a lot!