URL link in a view column which has response docs only to open the parent document

Posted on 2007-10-02
Last Modified: 2013-12-18
Hi all

1) I have a view that stores response docs only.
2) view has 2 columns,
3) column1 has the description field which is found on response doc
4) column 2, i want to include a text "Click here" where when clicked it will open the associated parent document to this response doc
5) I have place the following behind column 2 to open the document, but it seems to take me back to the response doc instead of the parent

"<td align='left'><a href='test?opendocument&ParentUNID="+@Text(@DocumentUniqueID)+"'>Click Here </a></td>")

That's not working


Also not working

Your ideas on how to fix this is much appreciated


Question by:varvoura
    LVL 19

    Assisted Solution

    U should be using:
    "<td align='left'><a href=\"/"+"viewname/"+@Text(@DocumentUniqueID)+"?opendocument&ParentUNID="+@Text(@DocumentUniqueID)+"'>Click Here </a></td>")

    Give it a try.
    If possible try to build a URL and open the same on web and check.
    LVL 22

    Accepted Solution

    You're close, but if you want to open the parent document, then the URL must contain the parent document's UNID.  The UNID of a response document's parent is contained in the $REF field.  So the url you need to use should look like this...

    viewName := "Parents";
    "<a href=\"/"+ @WebDbName + "/" + viewName + "/"+@Text($REF)+"?OpenDocument\">Click Here</a>"

    If the current view contains the parents, then you could change the first line to...

    viewName := @ViewTitle[1];

    Author Comment


    I needed to add the square brackets to your formula and then it worked perfect.

    viewName := "Parents";
    "[<a href=\"/"+ @WebDbName + "/" + viewName + "/"+@Text($REF)+"?OpenDocument\">Click Here</a>]"


    Many thanks for trying to help, I am sure I'll be able to use your formula in various other scenarios



    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

      In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
    This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now