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
Daljeet SinghDaljeet Singh 

Help is needed on the below code.

<apex:pageblockTable id="JobList1" value="{!searchResultsRows}" var="src" >
 
             <apex:repeat value="{!src.searchRow}" var="row">   
            <apex:column >
          
               <apex:facet name="header"><apex:outputLabel value="{!row.label}" /></apex:facet>
              
                <apex:outputText value="{!row.columnValue}"/>
               
               
            </apex:column>
           </apex:repeat> 
          
          </apex:pageblockTable>

 

 

 

The header value is not getting populated can anyone please help me on that ....

NareshKrishnaNareshKrishna

Can you post the controller code ?

 

Thanks.

Chamil MadusankaChamil Madusanka

Hi,

 

<apex:column headerValue="YourHeaderName">

 If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

aballardaballard

Column headers need to be independent of the row.  I suspect when the header value is being computed, src does not have a value (and hence row and row.label don't have a value).  I'd have expected some kind of error message, but maybe ity just uses an empty string in this situation.   Can you rework your controller to get at the column labels in a way that is not dependent on the row?