function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DiMDiM 

Hyperlinking related lists in Partner Portal

In development for our release of the partner portal, I thought that it would be pretty cool to be able to click on an item in the related list and have it take you to the page for that particular Contact/Opportunity or whatever your related list is.  I accomplished this by adding the following code in the "test for presence of any related Lists" section in the sObjectDetail.jsp file.

<c:if test="${colStatus.first}"><a href="<c:url value="/detail.do" ><c:param name="id" value="${map['Id']}" /></c:url>" Class="<c:out value="${thisRow}" />"></c:if>

This code was added right below the code that draws the related list table.

<c:if test="${colStatus.first}"><td class= "<c:out value="${thisRow}" />">&nbsp</td></c:if>

I'm not a java coder, so this may not be the best way to do this, but it works pretty well.  The downfall is that the link does not appear hot, or it is not an actionLink, so you have to train your users to know that it actually is.  If anyone can figure out how to make it an action link, please post it. 

 

Thanks

 

 

 

 

sbarstowsbarstow
Just curious how you got the table looking right with the code you added here?

My table grid layout goes to heck if I add the code in you suggest.

Do you have the snippet you can post in here to get this layout right?