+ Start a Discussion
ron_reedron_reed 

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?

  

Message Edited by ron_reed on 02-04-2009 06:22 AM
Best Answer chosen by Admin (Salesforce Developers) 
JimRaeJimRae
The documentation says to use headervalue.

All Answers

JimRaeJimRae
The documentation says to use headervalue.
This was selected as the best answer
ron_reedron_reed

Thanks Jim - that worked!