You need to sign in to do that
Don't have an account?
Getting a row header using apex:outputlink
I'm trying to show a filtered list of related opportunities on the product page and I've almost got it to work, except I dont know how to get row headers to appear when I use apex:outputlink. I want to be able to link to the associated Opportunity and Account from this list. Here is my code:
<apex:pageblock id="CustomList" title="High/Won Opportunities This Year"> <apex:pageBlockTable value="{!opps}" var="o" rendered="{!NOT(ISNULL(opps))}"> <apex:column ><apex:outputLink value="/{!o.Id}">{!o.name}</apex:outputLink></apex:column> <apex:column ><apex:outputLink value="/{!o.Account.Id}">{!o.Account.name}</apex:outputLink></apex:column> <apex:column value="{!o.StageName}"/> <apex:column value="{!o.Amount}"/> <apex:column value="{!o.CloseDate}"/> </apex:pageBlockTable> <apex:outputLabel value="No records to display" rendered="{!(ISNULL(opps))}" styleClass="noRowsHeader"></apex:outputLabel> </apex:pageblock>
I've tried using Title and HeaderTitle with no luck. Any ideas?
All Answers
Thanks Jim - that worked!