You need to sign in to do that
Don't have an account?
Andyux
visualforce turn field into link
I have a visualsforce page for custom object ssr with one related obejct, opportunity. I can display the related opportunity {!ssr__c.Opportunity__r.Name}. Note i just need to display, no inlined edit on this one.
How could i turn that display into a link back to the Opportunity?
Here is the beggining of VF page - only one Opportunity per page, this is not a list/colums.
How could i turn that display into a link back to the Opportunity?
Here is the beggining of VF page - only one Opportunity per page, this is not a list/colums.
<apex:page title="ssr" showHeader="True" sidebar="false" standardController="ssr__c" > <apex:form > <apex:pageBlock title="ssr" mode="inlineEdit"> <apex:pageBlockButtons > <apex:commandButton value="Save" action="{!save}" id="saveButton" style="display: none;" /> <apex:commandButton value="Cancel" action="{!cancel}" id="cancelButton" style="display: none;" /> </apex:pageBlockButtons> <table width="1200" border="0" align="center" cellpadding="4" cellspacing="0"> <tbody> <tr> <td width="150" bgcolor="#BDD7E7"><strong>Opportunity</strong></td> <td colspan="3" bgcolor="#C9D2E2"><strong>{!ssr__c.Opportunity__r.Name}</strong></td> etc
Best Answer chosen by Andyux
Andyux
<apex:outputLink value="/{!ssr__c.Opportunity__r.id}">{!StrategicSales__c.Opportunity__r.Name}</apex:outputLink>